From 21ca764e26fdbb903ce380874cc2798f17de9034 Mon Sep 17 00:00:00 2001 From: nea Date: Wed, 1 Nov 2023 21:11:09 +0100 Subject: Make MJL package the agent --- agent/build.gradle.kts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'agent') 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) +} -- cgit