diff options
author | nea <nea@nea.moe> | 2023-11-01 21:11:09 +0100 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-11-01 21:11:09 +0100 |
commit | 21ca764e26fdbb903ce380874cc2798f17de9034 (patch) | |
tree | 52931b66e52120a22d20354d0fe1adb26876cded /agent | |
parent | 297cb01f220a617dd08096467978b2fccbc27695 (diff) | |
download | ModernJavaLauncher-21ca764e26fdbb903ce380874cc2798f17de9034.tar.gz ModernJavaLauncher-21ca764e26fdbb903ce380874cc2798f17de9034.tar.bz2 ModernJavaLauncher-21ca764e26fdbb903ce380874cc2798f17de9034.zip |
Make MJL package the agent
Diffstat (limited to 'agent')
-rw-r--r-- | agent/build.gradle.kts | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/agent/build.gradle.kts b/agent/build.gradle.kts index 983f917..c85be22 100644 --- a/agent/build.gradle.kts +++ b/agent/build.gradle.kts @@ -9,15 +9,13 @@ java { val shadowOnly: Configuration by configurations.creating { - attributes { - this.attribute(org.gradle.api.attributes.java.TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 11) - } } dependencies { shadowOnly(implementation("org.ow2.asm:asm:9.4")!!) shadowOnly(implementation("org.ow2.asm:asm-commons:9.4")!!) shadowOnly("dev.architectury:architectury-pack200:0.1.3") + shadowOnly("org.apache.commons:commons-lang3:3.13.0") } tasks.withType(Jar::class) { manifest { @@ -36,4 +34,9 @@ tasks.shadowJar { tasks.jar { archiveClassifier.set("thin") } -tasks.assemble.get().dependsOn(tasks.shadowJar)
\ No newline at end of file +tasks.assemble.get().dependsOn(tasks.shadowJar) + +configurations.create("agentShadow") +artifacts { + add("agentShadow", tasks.shadowJar) +} |