@@ -62,8 +62,9 @@ minecraft {
6262
6363configurations {
6464 jarLibs
65+ onlyJarLibs
6566 // Force choosing the correct nightly build because Mac OS chooses an invalid one
66- all {
67+ configureEach {
6768 resolutionStrategy {
6869 force ' org.lwjgl.lwjgl:lwjgl-platform:2.9.4-nightly-20150209'
6970 }
@@ -113,7 +114,7 @@ dependencies {
113114 implementation(' cabaletta:baritone-deobf-unoptimized-mcp-dev:1.2' ). setChanging(true )
114115
115116 // This Baritone WILL be included in the jar
116- jarLibs (' cabaletta:baritone-api:1.2' ). setChanging(true )
117+ onlyJarLibs (' cabaletta:baritone-api:1.2' ). setChanging(true )
117118
118119 // Add everything in jarLibs to implementation (compile)
119120 implementation configurations. jarLibs
@@ -138,23 +139,23 @@ processResources {
138139 }
139140}
140141
141- task buildApiSource ( type : Jar ) { // Generate sources
142+ tasks . register( ' buildApiSource ' , Jar ) { // Generate sources
142143 group ' build'
143144 description ' Assemble API library source archive'
144145
145146 archiveClassifier. set ' api-source'
146147 from sourceSets. main. allSource
147148}
148149
149- task buildApi ( type : Jar ) {
150+ tasks . register( ' buildApi ' , Jar ) {
150151 group ' build'
151152 description ' Assemble API library archive'
152153
153154 archiveClassifier. set ' api'
154155 from sourceSets. main. output
155156}
156157
157- task buildAll {
158+ tasks . register( ' buildAll' ) {
158159 group ' build'
159160 description ' Assemble all jars'
160161
@@ -185,7 +186,7 @@ shadowJar {
185186 ' kotlin/**/*.kotlin_metadata' ,
186187 ' kotlin/**/*.kotlin_builtins' ,
187188 ' META-INF/*.version'
188- configurations = [project. configurations. jarLibs]
189+ configurations = [project. configurations. jarLibs, project . configurations . onlyJarLibs ]
189190 relocate ' kotlin' , ' com.lambda.shadow.kotlin'
190191 relocate ' kotlinx' , ' com.lambda.shadow.kotlinx'
191192 finalizedBy ' configureReobfTaskForReobfShadowJar' , ' reobfShadowJar'
0 commit comments