File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -177,12 +177,12 @@ subprojects {
177177 }
178178
179179 task javadocJar(type : Jar , dependsOn : ' javadoc' ) {
180- classifier = ' javadoc'
180+ archiveClassifier . set( ' javadoc' )
181181 from javadoc. destinationDir
182182 }
183183
184184 task sourcesJar(type : Jar , dependsOn : ' classes' ) {
185- classifier = ' sources'
185+ archiveClassifier . set( ' sources' )
186186 from sourceSets. main. allSource
187187 }
188188
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ bootJar {
3434 launchScript {
3535 script = file(' src/main/resources/launch.script' )
3636 }
37- classifier = ' exec'
37+ archiveClassifier . set( ' exec' )
3838 mainClassName = ' com.linecorp.bot.cli.Application'
3939}
4040
@@ -48,6 +48,8 @@ bootJar.dependsOn jar
4848signArchives. dependsOn bootJar
4949
5050// Add exec jar into archives to be uploaded.
51- artifacts. add(' archives' , file(" $buildDir /libs/${ project.name} -${ project.version} -${ bootJar.classifier} .jar" )) {
52- classifier = bootJar. classifier
51+ artifacts. add(
52+ ' archives' ,
53+ file(" $buildDir /libs/${ project.name} -${ project.version} -${ bootJar.archiveClassifier.get()} .jar" )) {
54+ classifier = bootJar. archiveClassifier. get()
5355}
You can’t perform that action at this time.
0 commit comments