-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
104 lines (88 loc) · 2.4 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import com.github.jk1.license.render.*
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'com.github.jk1.dependency-license-report'
repositories {
if (project.hasProperty('local')) {
mavenLocal()
}
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
maven { url 'http://repository.activeeon.com/content/groups/proactive/'}
}
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
maven {
url "http://repository.activeeon.com/content/groups/proactive/"
}
}
dependencies {
classpath 'com.github.jk1:gradle-license-report:1.7'
}
}
group = 'org.ow2.proactive'
version = version
configurations {
localDeps
}
dependencies {
localDeps "org.ow2.proactive_grid_cloud_portal:rest-smartproxy:$version"
compile configurations.localDeps
}
clean.doFirst {
delete "${rootDir}/dist/"
delete "${rootDir}/env/"
delete "${rootDir}/proactive.egg-info"
delete "${rootDir}/__pycache__"
delete "${rootDir}/proactive/java/lib/"
delete "${rootDir}/docs/_build/"
}
licenseReport {
configurations = ['runtime']
renderers = [new InventoryHtmlReportRenderer()]
}
task setup(type: Copy) {
from configurations.localDeps
into "./proactive/java/lib"
}
task buildfinal(type:Exec) {
if ( project.hasProperty("proactive_url") && project.hasProperty("username") && project.hasProperty("password") ) {
commandLine "./build.sh", "${proactive_url}", "${username}", "${password}"
} else {
commandLine "./build.sh", "", "", ""
}
}
task buildlocal(type:Exec) {
commandLine "./buildlocal.sh"
}
task installlocal(type:Exec) {
commandLine "./installlocal.sh"
}
task testlocal(type:Exec) {
if ( project.hasProperty("proactive_url") && project.hasProperty("username") && project.hasProperty("password") ) {
commandLine "./testlocal.sh", "${proactive_url}", "${username}", "${password}"
} else {
commandLine "./testlocal.sh", "", "", ""
}
}
task publish(type:Exec) {
ignoreExitValue true
try {
commandLine './publish.sh'
} catch (all) {
println 'the archive probably already exist so no need to publish twice'
}
}
task install(overwrite: true) {
}
setup.dependsOn clean
buildfinal.dependsOn setup
buildlocal.dependsOn setup
build.dependsOn buildfinal
publish.dependsOn build
install.dependsOn publish