@@ -129,7 +129,7 @@ tasks.configureEach {
129129tasks. register(' agentJar' , Jar ). configure {
130130 from sourceSets. api. output
131131 from sourceSets. agent. output
132- classifier ' agent'
132+ archiveClassifier . set ' agent'
133133 group ' build'
134134 description ' Builds the agent JAR'
135135
@@ -164,7 +164,7 @@ tasks.register('copyAgentJar', Copy) {
164164
165165tasks. register(' selfUpdateJar' , Jar ). configure {
166166 from sourceSets. selfupdate. output
167- classifier ' selfupdate'
167+ archiveClassifier . set ' selfupdate'
168168 group ' build'
169169 description ' Builds the selfupdate JAR'
170170 manifest. attributes(makeManifestAttributes(' Main-Class' , ' com.mcmoddev.relauncher.selfupdate.SelfUpdate' ))
@@ -195,7 +195,7 @@ tasks.named('shadowJar', ShadowJar).configure {
195195 project. configurations. shade,
196196 project. configurations. logback
197197 ]
198- classifier ' all'
198+ archiveClassifier . set ' all'
199199 group ' build'
200200 description ' Builds the whole project with its dependencies.'
201201}
@@ -219,7 +219,7 @@ tasks.named(JavaPlugin.JAR_TASK_NAME, Jar).configure {
219219tasks. register(' apiJar' , Jar ). configure {
220220 from sourceSets. api. output
221221 manifest. attributes(makeManifestAttributes(" " , " " ))
222- classifier ' api'
222+ archiveClassifier . set ' api'
223223 description ' Builds the api jar.'
224224 dependsOn tasks. named(' updateLicenses' )
225225 group ' build'
@@ -229,15 +229,15 @@ tasks.register('sourcesJar', Jar).configure {
229229 dependsOn ' launcherClasses'
230230 from sourceSets. api. allSource
231231 from sourceSets. launcher. allSource
232- classifier ' sources'
232+ archiveClassifier . set ' sources'
233233 group ' build'
234234 description ' Builds the sources jar'
235235}
236236
237237tasks. register(' apiSourcesJar' , Jar ). configure {
238238 dependsOn ' apiClasses'
239239 from sourceSets. api. allSource
240- classifier ' api-sources'
240+ archiveClassifier . set ' api-sources'
241241 group ' build'
242242 description ' Builds the api sources jar'
243243}
0 commit comments