11import java.net.URI
22
33plugins {
4- kotlin(" jvm" ) version " 1.8.21 "
4+ kotlin(" jvm" ) version " 1.9.23 "
55 `java- gradle- plugin`
66 `maven- publish`
77}
88
9- version = if (project.hasProperty(" version_snapshot" )) project.properties[ " version " ] as String + " -SNAPSHOT" else project.properties[ " version " ] as String
10- group = project.properties[" maven_group" ] as String
9+ version = " ${project.properties[ " version " ]} " + if (project.hasProperty(" version_snapshot" )) " -SNAPSHOT" else " "
10+ group = " ${ project.properties[" maven_group" ]} "
1111
12- base {
13- archivesName.set(project.properties[" archives_base_name" ] as String )
14- }
12+ base.archivesName = " ${project.properties[" archives_base_name" ]} "
1513
16- val installer by sourceSets.creating
14+ val main: SourceSet by sourceSets.getting
15+ val installer: SourceSet by sourceSets.creating
16+ val installerImplementation: Configuration by configurations.getting
1717
1818sourceSets {
1919 main {
@@ -25,13 +25,12 @@ sourceSets {
2525repositories {
2626 maven(" https://maven.wagyourtail.xyz/releases" )
2727 maven(" https://maven.wagyourtail.xyz/snapshots" )
28- maven(" https://maven.jemnetworks.com/snapshots" )
2928 mavenCentral()
3029}
3130
3231configurations {
3332 implementation {
34- extendsFrom(configurations.named( " installerImplementation" ).get() )
33+ extendsFrom(installerImplementation)
3534 }
3635}
3736
@@ -40,13 +39,13 @@ dependencies {
4039
4140 runtimeOnly(gradleApi())
4241
43- implementation(" xyz.wagyourtail.unimined:unimined:1.3.9 " )
44- " installerImplementation" (" io.github.java-diff-utils:java-diff-utils:4.12 " )
45- " installerImplementation" (" net.neoforged.installertools:binarypatcher:3.0.2 " )
46- " installerImplementation" (" org.ow2.asm:asm:9.7 " )
47- " installerImplementation" (" org.ow2.asm:asm-tree:9.7 " )
48- " installerImplementation" (" org.jetbrains:annotations:24 .0.1" )
49- " installerImplementation" (" com.nothome:javaxdelta:2.0.1" )
42+ implementation(" xyz.wagyourtail.unimined:unimined:1.3.15 " )
43+ installerImplementation(" io.github.java-diff-utils:java-diff-utils:4.16 " )
44+ installerImplementation(" net.neoforged.installertools:binarypatcher:3.0.13 " )
45+ installerImplementation(" org.ow2.asm:asm:9.8 " )
46+ installerImplementation(" org.ow2.asm:asm-tree:9.8 " )
47+ installerImplementation(" org.jetbrains:annotations:26 .0.2- 1" )
48+ installerImplementation(" com.nothome:javaxdelta:2.0.1" )
5049}
5150
5251gradlePlugin {
@@ -68,7 +67,7 @@ gradlePlugin {
6867}
6968
7069tasks.jar {
71- from(sourceSets. main.get() .output, installer.output)
70+ from(main.output, installer.output)
7271
7372 manifest {
7473 attributes(
0 commit comments