forked from rundeck-plugins/ansible-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
54 lines (45 loc) · 1.53 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
group 'com.batix.rundeck'
version = System.env.TRAVIS_TAG ?: "SNAPSHOT"
ext.rundeckPluginVersion = '1.2'
ext.pluginClassNames = [
'com.batix.rundeck.plugins.AnsibleResourceModelSourceFactory',
'com.batix.rundeck.plugins.AnsibleNodeExecutor',
'com.batix.rundeck.plugins.AnsibleFileCopier',
'com.batix.rundeck.plugins.AnsiblePlaybookWorkflowStep',
'com.batix.rundeck.plugins.AnsiblePlaybookInlineWorkflowStep',
'com.batix.rundeck.plugins.AnsibleModuleWorkflowStep',
'com.batix.rundeck.plugins.AnsiblePlaybookWorflowNodeStep',
'com.batix.rundeck.plugins.AnsiblePlaybookInlineWorkflowNodeStep'
].join(',')
apply plugin: 'java'
sourceCompatibility = '1.7'
repositories {
mavenCentral()
}
configurations {
pluginLibs
compile {
extendsFrom pluginLibs
}
}
dependencies {
pluginLibs 'com.google.code.gson:gson:2.8.5'
compile 'org.rundeck:rundeck-core:3.0.1-20180803'
}
task copyToLib(type: Copy) {
into "$buildDir/output/lib"
from configurations.pluginLibs
}
jar {
from "$buildDir/output"
manifest {
def libList = configurations.pluginLibs.collect{'lib/' + it.name}.join(' ')
attributes 'Rundeck-Plugin-Classnames': pluginClassNames
attributes 'Rundeck-Plugin-File-Version': version
attributes 'Rundeck-Plugin-Version': rundeckPluginVersion
attributes 'Rundeck-Plugin-Archive': 'true'
attributes 'Rundeck-Plugin-Libs': "${libList}"
attributes 'Rundeck-Plugin-URL': 'https://github.com/Batix/rundeck-ansible-plugin'
}
dependsOn(copyToLib)
}