@@ -83,7 +83,10 @@ mixin {
8383
8484tasks.named<Jar >(" jar" ) {
8585 manifest.attributes(mapOf (
86- " MixinConfigs" to " modernfix-modernfix.mixins.json"
86+ " MixinConfigs" to " modernfix-modernfix.mixins.json" ,
87+ " Specification-Version" to " 1" ,
88+ " Implementation-Title" to project.name,
89+ " Implementation-Version" to version
8790 ))
8891}
8992
@@ -127,8 +130,15 @@ repositories {
127130 }
128131}
129132
133+ val embed by configurations.creating {
134+ isCanBeConsumed = false
135+ isCanBeResolved = true
136+ isTransitive = true
137+ }
138+
130139dependencies {
131140 implementation(project(" :annotations" ))
141+ embed(project(" :annotations" ))
132142 " additionalRuntimeClasspath" (project(" :annotations" ))
133143 annotationProcessor(project(path = " :annotation-processor" , configuration = " shadow" ))
134144
@@ -151,6 +161,10 @@ dependencies {
151161 modCompileOnly(" curse.maven:kubejs-238086:5853326" )
152162}
153163
164+ tasks.named<Jar >(" jar" ) {
165+ from(embed.map { if (it.isDirectory) it else zipTree(it) })
166+ }
167+
154168// For the AP
155169tasks.withType<JavaCompile >().configureEach {
156170 if (! name.lowercase().contains(" test" )) {
@@ -186,7 +200,7 @@ val finalJarTask = "reobfJar"
186200tasks.register<Copy >(" copyJarNameConsistent" ) {
187201 from(tasks.named<Jar >(finalJarTask).get().outputs.files)
188202 into(project.file(" build/libs" ))
189- rename { name -> " modernfix-" + project.name + " -latest.jar" }
203+ rename { _ -> " modernfix-" + project.name + " -latest.jar" }
190204}
191205
192206tasks.register<Copy >(" copyJarToBin" ) {
0 commit comments