-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
71 lines (63 loc) · 1.89 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
buildscript {
ext {
springBootVersion = '1.4.1.RELEASE'
springCloudVersion = 'Brixton.SR1'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath('se.transmode.gradle:gradle-docker:1.2')
}
}
apply plugin: 'java'
apply plugin: 'docker'
apply plugin: 'eclipse'
apply plugin: 'spring-boot'
jar {
baseName = 'spring-boot-camel-example'
version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile('com.opencsv:opencsv:3.8')
compile('io.dropwizard.metrics:metrics-core')
compile('io.dropwizard.metrics:metrics-graphite')
compile('org.apache.camel:camel-jackson-starter:2.18.0')
compile('org.apache.camel:camel-metrics-starter:2.18.0')
compile('org.apache.camel:camel-spring-boot-starter:2.18.0')
compile('org.apache.camel:camel-spring-redis-starter:2.18.0')
compile('org.apache.camel:camel-stream-starter:2.18.0')
compile('org.apache.camel:camel-websocket-starter:2.18.0')
compile('org.jolokia:jolokia-core')
compile('org.projectlombok:lombok')
compile('org.springframework.boot:spring-boot-actuator')
compile('org.springframework.boot:spring-boot-starter-jetty')
compile("org.springframework.boot:spring-boot-starter-web") {
exclude module: 'spring-boot-starter-tomcat'
}
compile('org.springframework.cloud:spring-cloud-starter-config')
compile('org.jolokia:jolokia-core')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-starter-parent:${springCloudVersion}"
}
}
task buildDocker(type: Docker, dependsOn: build) {
// push = true
applicationName = jar.baseName
dockerfile = file('src/main/docker/Dockerfile')
doFirst {
copy {
from jar
into stageDir
}
}
}