Skip to content

Commit

Permalink
[publish]
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyfaria committed Jul 12, 2024
1 parent c58f14a commit 30d0154
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
if: contains(github.event.head_commit.message, '[publish]')
runs-on: ubuntu-22.04
container:
image: mcr.microsoft.com/openjdk/jdk:21-ubuntu
image: mcr.microsoft.com/openjdk/jdk:17-ubuntu
options: --user root
steps:
- uses: actions/checkout@v4
Expand Down
16 changes: 1 addition & 15 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -212,27 +212,13 @@ tasks.named('jar', Jar).configure {
'Implementation-Timestamp': new Date().format('yyyy-MM-dd\'T\'HH:mm:ssZ')
])
}
finalizedBy 'reobfJar'
}

tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
}

tasks.jarJar {
archiveClassifier = ''
}

reobf {
jarJar {}
}

afterEvaluate {
jar.finalizedBy reobfJar
tasks.jarJar.finalizedBy reobfJarJar
reobfJar.dependsOn 'addMixinsToJar'
reobfJarJar.dependsOn 'addMixinsToJarJar'
}

publishing {
publications {
register('mavenJava', MavenPublication) {
Expand Down

0 comments on commit 30d0154

Please sign in to comment.