@@ -62,8 +62,9 @@ minecraft {
62
62
63
63
configurations {
64
64
jarLibs
65
+ onlyJarLibs
65
66
// Force choosing the correct nightly build because Mac OS chooses an invalid one
66
- all {
67
+ configureEach {
67
68
resolutionStrategy {
68
69
force ' org.lwjgl.lwjgl:lwjgl-platform:2.9.4-nightly-20150209'
69
70
}
@@ -113,7 +114,7 @@ dependencies {
113
114
implementation(' cabaletta:baritone-deobf-unoptimized-mcp-dev:1.2' ). setChanging(true )
114
115
115
116
// 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 )
117
118
118
119
// Add everything in jarLibs to implementation (compile)
119
120
implementation configurations. jarLibs
@@ -138,23 +139,23 @@ processResources {
138
139
}
139
140
}
140
141
141
- task buildApiSource ( type : Jar ) { // Generate sources
142
+ tasks . register( ' buildApiSource ' , Jar ) { // Generate sources
142
143
group ' build'
143
144
description ' Assemble API library source archive'
144
145
145
146
archiveClassifier. set ' api-source'
146
147
from sourceSets. main. allSource
147
148
}
148
149
149
- task buildApi ( type : Jar ) {
150
+ tasks . register( ' buildApi ' , Jar ) {
150
151
group ' build'
151
152
description ' Assemble API library archive'
152
153
153
154
archiveClassifier. set ' api'
154
155
from sourceSets. main. output
155
156
}
156
157
157
- task buildAll {
158
+ tasks . register( ' buildAll' ) {
158
159
group ' build'
159
160
description ' Assemble all jars'
160
161
@@ -185,7 +186,7 @@ shadowJar {
185
186
' kotlin/**/*.kotlin_metadata' ,
186
187
' kotlin/**/*.kotlin_builtins' ,
187
188
' META-INF/*.version'
188
- configurations = [project. configurations. jarLibs]
189
+ configurations = [project. configurations. jarLibs, project . configurations . onlyJarLibs ]
189
190
relocate ' kotlin' , ' com.lambda.shadow.kotlin'
190
191
relocate ' kotlinx' , ' com.lambda.shadow.kotlinx'
191
192
finalizedBy ' configureReobfTaskForReobfShadowJar' , ' reobfShadowJar'
0 commit comments