File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,24 +11,22 @@ repositories {
1111}
1212
1313jar {
14- if (layout. projectDirectory. file(" LICENSE" ). asFile. exists()) {
15- def projectName = project. name
16- from(layout. projectDirectory. file(" LICENSE" )) {
17- rename { " ${ it} _${ projectName} " }
18- }
19- } else if (rootProject. layout. projectDirectory. file(" LICENSE" ). asFile. exists()) {
20- def projectName = rootProject. name
21- from(rootProject. layout. projectDirectory. file(" LICENSE" )) {
14+ def projectName = rootProject. name
15+ [file(" ${ projectDir} /LICENSE" ), file(" ${ rootDir} /LICENSE" )]. find { it. exists() }?. with { licenseFile ->
16+ from(licenseFile) {
2217 rename { " ${ it} _${ projectName} " }
2318 }
2419 }
2520}
2621
2722tasks. withType(JavaCompile ). configureEach {
28- it . options. encoding = " UTF-8"
23+ options. encoding = " UTF-8"
2924}
3025
3126tasks. withType(Javadoc ). configureEach {
32- it. options. encoding = " UTF-8"
33- it. options. addStringOption(" Xdoclint:none" , " -quiet" )
27+ options {
28+ encoding = " UTF-8"
29+ addBooleanOption(" Xdoclint:none" , true )
30+ quiet()
31+ }
3432}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ plugins {
55idea {
66 module {
77 [" run" ]. each {
8- excludeDirs << layout . projectDirectory . file(" $it " ). asFile
8+ excludeDirs + = file(" ${ projectDir } / $ it " )
99 }
1010 }
1111}
You can’t perform that action at this time.
0 commit comments