-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
109 lines (94 loc) · 3.35 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
plugins {
id 'java'
id 'checkstyle'
id 'maven-publish'
id 'com.jayanslow.gradle.semver-ci' version '0.3.1'
id 'com.bmuschko.docker-java-application' version '3.0.12'
}
apply plugin: 'java'
apply plugin: 'application'
sourceSets {
testSupport {
java {
compileClasspath += main.output
runtimeClasspath += main.output
}
}
test {
java {
compileClasspath += testSupport.output
runtimeClasspath += testSupport.output
}
}
testIntegration {
java {
compileClasspath += testSupport.output
runtimeClasspath += testSupport.output
}
}
}
checkstyle {
toolVersion = '6.5'
configFile = file('tools/checkstyle.xml')
}
repositories {
// CoreFiling internal repositories required until sort out upload of
// the instance service API client to maven central.
maven {
url "https://artifacts.int.corefiling.com/cfl-default"
}
mavenCentral()
ivy {
url "https://artifacts.int.corefiling.com/cfl-snapshots-ivy"
layout "pattern", {
artifact "[organisation]/[module]/[revision]/jars/[artifact].[ext]"
ivy "[organisation]/[module]/[revision]/ivys/ivy-[revision].xml"
}
}
}
group = property('group.maven')
mainClassName = property('java.main')
ext {
springBootVersion = '1.5.3.RELEASE'
keycloakVersion = '2.5.5.Final'
}
task wrapper(type: Wrapper) {
gradleVersion = '4.1'
}
task testIntegration(type: Test) {
testClassesDirs = sourceSets.testIntegration.output.classesDirs
classpath = sourceSets.testIntegration.runtimeClasspath
systemProperties = [
'service.url': System.getProperty("service.url")
]
}
dependencies {
def hamcrestVersion = '2.0.0.0'
def jacksonVersion = '2.8.8'
compile group: 'com.corefiling.platform', name: 'instance-service-jersey', version: '1.5.1'
compile group: 'com.google.guava', name: 'guava', version: '21.0'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: springBootVersion
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jdk8', version: jacksonVersion
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: jacksonVersion
compile group: 'commons-io', name: 'commons-io', version: '2.5'
testSupportCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: springBootVersion
testSupportCompile group: 'org.hamcrest', name: 'java-hamcrest', version: hamcrestVersion
testSupportCompile group: 'junit', name: 'junit', version: '4.12'
testSupportCompile group: 'pl.pragmatists', name: 'JUnitParams', version: '1.1.0'
testSupportCompile group: 'com.github.npathai', name: 'hamcrest-optional', version: '2.0.0'
testSupportCompile group: 'org.apache.oltu.oauth2', name: 'org.apache.oltu.oauth2.client', version: '1.0.2'
testSupportCompile group: 'com.corefiling.labs', name: 'digit-frequency-analysis-service', version: '1.0.0'
testSupportCompile group: 'org.keycloak', name: 'keycloak-authz-client', version: '2.5.5.Final'
testSupportCompile configurations.compile
testCompile configurations.testSupportCompile
testIntegrationCompile configurations.testSupportCompile
}
docker {
javaApplication {
baseImage = 'openjdk:8-alpine'
maintainer = 'CoreFiling'
ports = [80]
tag = "artifacts.int.corefiling.com:5000/${property('group.name')}/$name:$version"
}
}
publish.dependsOn dockerPushImage