Skip to content

Commit 2349c5d

Browse files
authored
Merge pull request #13 from rundeck/fix-gradle-template-deps
fixing build.gradle template for dependencies
2 parents c1a6b60 + 3ed247e commit 2349c5d

8 files changed

Lines changed: 38 additions & 0 deletions

File tree

src/main/resources/templates/java-plugin/logfilter/build.gradle.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jar {
6565
attributes 'Rundeck-Plugin-Libs': "\${libList}"
6666

6767
}
68+
dependsOn(copyToLib)
6869
}
6970

7071
wrapper {

src/main/resources/templates/java-plugin/nodeexecutor/build.gradle.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jar {
6767
attributes 'Rundeck-Plugin-Libs': "\${libList}"
6868

6969
}
70+
dependsOn(copyToLib)
7071
}
7172

7273
wrapper {

src/main/resources/templates/java-plugin/notification/build.gradle.template

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ dependencies {
4040
testCompile "org.spockframework:spock-core:1.0-groovy-2.4"
4141
}
4242

43+
// task to copy plugin libs to output/lib dir
44+
task copyToLib(type: Copy) {
45+
into "\$buildDir/output/lib"
46+
from configurations.pluginLibs
47+
}
48+
4349
jar {
4450
from "\$buildDir/output"
4551
manifest {
@@ -59,6 +65,7 @@ jar {
5965
attributes 'Rundeck-Plugin-Libs': "\${libList}"
6066

6167
}
68+
dependsOn(copyToLib)
6269
}
6370

6471
wrapper {

src/main/resources/templates/java-plugin/option/build.gradle.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jar {
6161
attributes 'Rundeck-Plugin-Libs': "\${libList}"
6262

6363
}
64+
dependsOn(copyToLib)
6465
}
6566

6667
wrapper {

src/main/resources/templates/java-plugin/orchestrator/build.gradle.template

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ dependencies {
4040
testCompile "org.spockframework:spock-core:1.0-groovy-2.4"
4141
}
4242

43+
// task to copy plugin libs to output/lib dir
44+
task copyToLib(type: Copy) {
45+
into "\$buildDir/output/lib"
46+
from configurations.pluginLibs
47+
}
48+
4349
jar {
4450
from "\$buildDir/output"
4551
manifest {
@@ -59,6 +65,7 @@ jar {
5965
attributes 'Rundeck-Plugin-Libs': "\${libList}"
6066

6167
}
68+
dependsOn(copyToLib)
6269
}
6370

6471
wrapper {

src/main/resources/templates/java-plugin/resourcemodelsource/build.gradle.template

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ dependencies {
4040
testCompile "org.spockframework:spock-core:1.0-groovy-2.4"
4141
}
4242

43+
// task to copy plugin libs to output/lib dir
44+
task copyToLib(type: Copy) {
45+
into "\$buildDir/output/lib"
46+
from configurations.pluginLibs
47+
}
48+
4349
jar {
4450
from "\$buildDir/output"
4551
manifest {
@@ -59,6 +65,7 @@ jar {
5965
attributes 'Rundeck-Plugin-Libs': "\${libList}"
6066

6167
}
68+
dependsOn(copyToLib)
6269
}
6370

6471
wrapper {

src/main/resources/templates/java-plugin/workflownodestep/build.gradle.template

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ dependencies {
4040
testCompile "org.spockframework:spock-core:1.0-groovy-2.4"
4141
}
4242

43+
// task to copy plugin libs to output/lib dir
44+
task copyToLib(type: Copy) {
45+
into "\$buildDir/output/lib"
46+
from configurations.pluginLibs
47+
}
48+
4349
jar {
4450
from "\$buildDir/output"
4551
manifest {
@@ -59,6 +65,7 @@ jar {
5965
attributes 'Rundeck-Plugin-Libs': "\${libList}"
6066

6167
}
68+
dependsOn(copyToLib)
6269
}
6370

6471
wrapper {

src/main/resources/templates/java-plugin/workflowstep/build.gradle.template

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ dependencies {
4040
testCompile "org.spockframework:spock-core:1.0-groovy-2.4"
4141
}
4242

43+
// task to copy plugin libs to output/lib dir
44+
task copyToLib(type: Copy) {
45+
into "\$buildDir/output/lib"
46+
from configurations.pluginLibs
47+
}
48+
4349
jar {
4450
from "\$buildDir/output"
4551
manifest {
@@ -59,6 +65,7 @@ jar {
5965
attributes 'Rundeck-Plugin-Libs': "\${libList}"
6066

6167
}
68+
dependsOn(copyToLib)
6269
}
6370

6471
wrapper {

0 commit comments

Comments
 (0)