Skip to content

Commit

Permalink
[1.7.2] Use shadowed jars instead of dev jars, fixes #83, fixes #85
Browse files Browse the repository at this point in the history
  • Loading branch information
3arthqu4ke committed Jul 23, 2023
1 parent 57ec6de commit 7afbe4e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,13 @@ allprojects {
}
}

jar {
classifier 'dev'
}

shadowJar {
configurations = [project.configurations.jarLibs, project.configurations.jarLibsApi]
classifier 'release'
classifier ''
}

jar.finalizedBy(shadowJar)
Expand Down Expand Up @@ -208,13 +212,13 @@ tasks.register('jacocoRootReport', JacocoReport) {
}

tasks.register('copyJars', Copy) {
dependsOn subprojects.jar
from(subprojects.jar)
dependsOn subprojects.shadowJar
from(subprojects.shadowJar)
into project.file(System.getProperty('hmc.jar.dir', 'build/libs'))
}

jar {
dependsOn(subprojects.jar)
build {
dependsOn(subprojects.shadowJar)
finalizedBy(copyJars)
}

Expand Down
2 changes: 1 addition & 1 deletion headlessmc-lwjgl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ tasks.register('testAgent', Test) {
}

jvmArgs = [
"-javaagent:$projectDir/build/libs/headlessmc-lwjgl-${rootProject.version}-release.jar",
"-javaagent:$projectDir/build/libs/headlessmc-lwjgl-${rootProject.version}.jar",
'-Dhmc.lwjgl.agenttest=true'
]

Expand Down

0 comments on commit 7afbe4e

Please sign in to comment.