-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
59 lines (45 loc) · 1.75 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
plugins {
id 'groovy'
id 'org.springframework.boot' version '2.1.3.RELEASE'
id 'com.palantir.docker' version '0.21.0'
}
apply plugin: 'groovy'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'com.palantir.docker'
version 'latest'
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
compileOnly "gradle.plugin.com.palantir.gradle.docker:gradle-docker:0.21.0"
compile("org.springframework.boot:spring-boot-starter-actuator")
compile 'org.codehaus.groovy:groovy-all:2.5.6'
compile 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.8'
compile 'org.apache.commons:commons-lang3:3.4'
implementation 'org.apache.httpcomponents:httpclient'
implementation 'org.springframework.boot:spring-boot-starter-web:2.1.3.RELEASE'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa:2.1.3.RELEASE'
// Documentation
compile 'io.springfox:springfox-swagger2:2.9.2'
compile 'io.springfox:springfox-swagger-ui:2.9.2'
// Database
compile 'com.h2database:h2:1.4.198'
// Tests
testCompile 'org.spockframework:spock-core:1.2-groovy-2.4'
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile group: 'org.spockframework', name: 'spock-spring', version: '1.2-groovy-2.4'
}
bootJar {
baseName = 'tng-vnv-executor'
mainClassName = 'app.Application'
archiveName = 'tng-vnv-executor.jar'
}
docker {
name "${dockerTag}"
dockerfile file('src/main/docker/Dockerfile')
files tasks.bootJar.outputs, 'src/main/resources/application.properties', 'src/main/docker/wait_for.sh', 'src/main/docker/dockerComposeUp.sh', 'src/main/docker/dockerComposeDown.sh'
dependsOn tasks.bootJar
}