File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,16 @@ repositories {
1111}
1212
1313jar {
14- var projectName = project. name
15- from(" LICENSE" ) {
16- rename { " ${ it} _${ projectName} " }
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" )) {
22+ rename { " ${ it} _${ projectName} " }
23+ }
1724 }
1825}
1926
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ plugins {
55idea {
66 module {
77 [" run" ]. each {
8- excludeDirs << file(" $it " )
8+ excludeDirs << layout . projectDirectory . file(" $it " ). asFile
99 }
1010 }
1111}
You can’t perform that action at this time.
0 commit comments