-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
142 lines (120 loc) · 3.86 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
buildscript {
ext {
kotlinVersion = '1.0.5-2'
slf4jVersion = '1.7.20'
spekVersion = '1.0.25'
}
repositories {
jcenter()
mavenCentral()
maven {
url "http://repository.jetbrains.com/all"
}
}
dependencies {
classpath "nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
repositories {
flatDir {
dirs 'lib'
}
jcenter()
mavenCentral()
maven {
url "http://repository.jetbrains.com/all"
}
}
apply plugin: 'application'
apply plugin: 'kotlin'
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: "com.github.hierynomus.license"
license {
skipExistingHeaders = true
header rootProject.file('LICENSE')
includes(["**/*.java", "**/*.kt", "**/*.groovy"])
mapping {
java = 'SLASHSTAR_STYLE'
kt = 'SLASHSTAR_STYLE'
groovy = 'SLASHSTAR_STYLE'
}
}
group = 'de.qaware.oss.cloud'
version = '1.1.0'
mainClassName = 'de.qaware.oss.cloud.control.CloudControlApplication'
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
compile 'io.fabric8:kubernetes-api:2.3.7'
compile 'io.fabric8:kubernetes-model:1.1.4'
compile 'io.fabric8:kubernetes-client:2.6.3'
compile 'io.fabric8:openshift-client:2.6.3'
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
compile 'com.moandjiezana.toml:toml4j:0.7.1'
compile "org.slf4j:slf4j-api:$slf4jVersion"
compile 'org.apache.deltaspike.cdictrl:deltaspike-cdictrl-api:1.5.4'
compile 'org.apache.deltaspike.core:deltaspike-core-api:1.5.4'
compile 'javax.enterprise:cdi-api:2.0-EDR1'
runtime "org.slf4j:jcl-over-slf4j:$slf4jVersion"
runtime "org.slf4j:jul-to-slf4j:$slf4jVersion"
runtime 'org.apache.logging.log4j:log4j-slf4j-impl:2.5'
runtime 'org.apache.logging.log4j:log4j-core:2.5'
runtime 'org.apache.deltaspike.cdictrl:deltaspike-cdictrl-weld:1.5.4'
runtime 'org.apache.deltaspike.core:deltaspike-core-impl:1.5.4'
runtime 'org.jboss.weld.se:weld-se-core:2.3.3.Final'
runtime 'org.jboss:jandex:2.0.2.Final'
testCompile 'junit:junit:4.12'
testCompile "com.github.tomakehurst:wiremock:2.1.9"
testCompile 'org.spockframework:spock-core:1.0-groovy-2.4'
testCompile 'org.hamcrest:hamcrest-library:1.3'
testRuntime 'cglib:cglib-nodep:3.1'
testRuntime 'org.objenesis:objenesis:2.1'
}
sourceSets {
test {
// if you truly want to override the defaults
output.resourcesDir = 'build/classes/test'
}
main {
// if you truly want to override the defaults
output.resourcesDir = 'build/classes/main'
}
}
test {
// exclude the technology integration tests
exclude '**/*IT.class'
reports {
junitXml.enabled = false
html.enabled = true
}
}
distributions {
main {
contents {
from("lib") {
into "lib"
}
}
}
}
task createK8sControlStartScripts(type: CreateStartScripts) {
outputDir = file('build/scripts')
mainClassName = 'de.qaware.oss.cloud.control.CloudControlApplication'
applicationName = 'k8s-control'
defaultJvmOpts = ['-Dcluster.orchestrator=kubernetes']
classpath = startScripts.classpath
}
startScripts.dependsOn createK8sControlStartScripts
task createOcControlStartScripts(type: CreateStartScripts) {
outputDir = file('build/scripts')
mainClassName = 'de.qaware.oss.cloud.control.CloudControlApplication'
applicationName = 'oc-control'
defaultJvmOpts = ['-Dcluster.orchestrator=openshift']
classpath = startScripts.classpath
}
startScripts.dependsOn createOcControlStartScripts