@@ -2,7 +2,7 @@ plugins {
22 id ' java-library'
33 id ' maven-publish'
44 id ' idea'
5- id ' net.neoforged.moddev' version ' 2.0.121 '
5+ id ' net.neoforged.moddev' version ' 2.0.137 '
66}
77
88version = mod_version
@@ -21,21 +21,12 @@ base {
2121 archivesName = mod_id
2222}
2323
24- java. toolchain. languageVersion = JavaLanguageVersion . of(21 )
24+ java. toolchain. languageVersion = JavaLanguageVersion . of(25 )
2525
2626sourceSets {
2727 main {
2828 java. srcDir ' src/main/java'
2929 }
30- java22 {
31- java. srcDir ' src/java22'
32- compileClasspath + = sourceSets. main. output + sourceSets. main. compileClasspath
33- runtimeClasspath + = sourceSets. main. output + sourceSets. main. runtimeClasspath
34- }
35- }
36-
37- tasks. withType(JavaCompile ). configureEach {
38- options. release = 21
3930}
4031
4132tasks. named(' compileJava' , JavaCompile ) {
@@ -44,28 +35,6 @@ tasks.named('compileJava', JavaCompile) {
4435 ]
4536}
4637
47- tasks. register(' compileJava22' , JavaCompile ) {
48- javaCompiler = javaToolchains. compilerFor {
49- languageVersion = JavaLanguageVersion . of(22 )
50- }
51- source = sourceSets. java22. java
52- classpath = sourceSets. main. output + sourceSets. java22. compileClasspath
53- destinationDirectory = layout. buildDirectory. dir(' classes-java22' )
54- options. release = 22
55- }
56-
57- tasks. named(' jar' , Jar ) {
58- dependsOn tasks. named(' compileJava22' )
59- manifest {
60- attributes(
61- ' Multi-Release' : ' true'
62- )
63- }
64- from(tasks. named(' compileJava22' )) {
65- into ' META-INF/versions/22'
66- }
67- }
68-
6938neoForge {
7039 version = project. neo_version
7140
@@ -140,30 +109,15 @@ dependencies {
140109 // compileOnly "mezz.jei:jei-${mc_version}-forge-api:${jei_version}"
141110 // runtimeOnly "mezz.jei:jei-${mc_version}-forge:${jei_version}"
142111
143- implementation(" cn.ussshenzhou:t88:+" ) {
144- exclude group : " curse.maven" , module : " irisshaders-455508"
145- exclude group : " org.sinytra.forgified-fabric-api" , module : " fabric-renderer-api-v1"
146- exclude group : " org.sinytra.forgified-fabric-api" , module : " fabric-api-base"
147- exclude group : " org.sinytra.forgified-fabric-api" , module : " fabric-rendering-data-attachment-v1"
148- exclude group : " org.sinytra.forgified-fabric-api" , module : " fabric-block-view-api-v2"
149- }
150- annotationProcessor(" cn.ussshenzhou:t88:+" ) {
151- exclude group : " curse.maven" , module : " irisshaders-455508"
152- exclude group : " org.sinytra.forgified-fabric-api" , module : " fabric-renderer-api-v1"
153- exclude group : " org.sinytra.forgified-fabric-api" , module : " fabric-api-base"
154- exclude group : " org.sinytra.forgified-fabric-api" , module : " fabric-rendering-data-attachment-v1"
155- exclude group : " org.sinytra.forgified-fabric-api" , module : " fabric-block-view-api-v2"
156- }
112+ implementation(annotationProcessor(" cn.ussshenzhou:t88:26.+" ))
113+
157114 implementation ' io.github.jaredmdobson:concentus:1.0.2'
158- additionalRuntimeClasspath ' io.github.jaredmdobson:concentus:1.0.2'
159115 jarJar ' io.github.jaredmdobson:concentus:1.0.2'
160116
161- compileOnly(group : " dev.onvoid.webrtc" , name : " webrtc-java" , version : " 0.14.0" )
162- additionalRuntimeClasspath(group : " dev.onvoid.webrtc" , name : " webrtc-java" , version : " 0.14.0" )
117+ implementation(group : " dev.onvoid.webrtc" , name : " webrtc-java" , version : " 0.14.0" )
163118 jarJar(group : " dev.onvoid.webrtc" , name : " webrtc-java" , version : " 0.14.0" )
164119
165120 implementation group : " dev.onvoid.webrtc" , name : " webrtc-java" , version : " 0.14.0" , classifier : " windows-x86_64"
166- additionalRuntimeClasspath group : " dev.onvoid.webrtc" , name : " webrtc-java" , version : " 0.14.0" , classifier : " windows-x86_64"
167121 jarJar(group : " dev.onvoid.webrtc" , name : " webrtc-java" , version : " 0.14.0" , classifier : " windows-x86_64" )
168122 // Example mod dependency using a mod jar from ./libs with a flat dir repository
169123 // This maps to ./libs/coolmod-${mc_version}-${coolmod_version}.jar
0 commit comments