-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
67 lines (58 loc) · 1.64 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'gradle.plugin.com.palantir.gradle.docker:gradle-docker:0.19.2'
classpath 'org.yaml:snakeyaml:1.21'
}
}
plugins {
id 'org.springframework.boot' version '2.0.1.RELEASE'
id 'net.ltgt.apt' version '0.10'
id 'io.franzbecker.gradle-lombok' version '1.11'
}
apply plugin: 'java'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'eclipse'
apply plugin: 'com.palantir.docker'
sourceCompatibility = '1.9'
targetCompatibility = '1.9'
def profile = project.hasProperty('production') ? 'production' : ''
def applicationConfig = new org.yaml.snakeyaml.Yaml().load(("src/main/resources/application-${profile ? profile : 'default'}.yml" as File).text)
def awsProfile = project.hasProperty('awsProfile') ? awsProfile : 'default'
springBoot {
mainClassName = 'com.gigops.miyako.BlankApplication'
}
bootJar {
excludeDevtools = true
}
bootRun {
systemProperties = [
'spring.profiles.active': profile
]
}
repositories {
jcenter()
}
dependencies {
compile 'org.springframework.boot:spring-boot-starter-web:2.0.1.RELEASE'
compile 'org.springframework.boot:spring-boot-starter-logging:2.0.1.RELEASE'
compile 'org.springframework.boot:spring-boot-starter-actuator:2.0.1.RELEASE'
compileOnly 'org.projectlombok:lombok:1.16.20'
apt 'org.projectlombok:lombok:1.16.20'
testCompile 'org.springframework.boot:spring-boot-starter-test:2.0.2.RELEASE';
}
lombok {
version = '1.16.20'
sha256 = ''
}
docker {
dependsOn build
name 'secureds/dummy-service'
files bootJar.archivePath
buildArgs([
'PROFILE': profile,
'JAR_FILE': bootJar.archiveName
])
}