-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
186 lines (160 loc) · 8.28 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
buildscript {
repositories {
mavenLocal()
jcenter()
maven { url 'http://repo.spring.io/plugins-release' }
maven { url 'http://repo.spring.io/milestone' }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath group: 'org.sonarqube.gradle', name: 'gradle-sonarqube-plugin', version: '1.0'
classpath group: 'net.ltgt.gradle', name: 'gradle-apt-plugin', version: '0.4'
classpath group: 'org.springframework.boot', name: 'spring-boot-gradle-plugin', version: spring_boot_version
classpath group: 'org.springframework.build.gradle', name: 'propdeps-plugin', version: '0.0.7'
classpath group: 'com.moowork.gradle', name: 'gradle-node-plugin', version: '0.11'
classpath group: 'com.moowork.gradle', name: 'gradle-grunt-plugin', version: '0.11'
}
}
apply plugin: 'java'
sourceCompatibility=1.8
targetCompatibility=1.8
apply plugin: 'maven'
apply plugin: 'spring-boot'
apply plugin: 'war'
apply plugin: 'propdeps'
defaultTasks 'bootRun'
bootRepackage {
mainClass = 'de.ingenhaag.tinkerwstation.Application'
}
springBoot {
mainClass = 'de.ingenhaag.tinkerwstation.Application'
executable = true
}
bootRun {
addResources = false
}
test {
println 'Starting the Unit and Integration test'
include '**/*UnitTest*'
include '**/*IntTest*'
}
task cucumberTest(type: Test) {
include '**/CucumberTest*'
}
test.finalizedBy(cucumberTest)
apply from: 'yeoman.gradle'
apply from: 'sonar.gradle'
apply from: 'liquibase.gradle'
apply from: 'gatling.gradle'
apply from: 'mapstruct.gradle'
if (project.hasProperty('prod')) {
apply from: 'profile_prod.gradle'
} else if (project.hasProperty('fast')) {
apply from: 'profile_fast.gradle'
} else {
apply from: 'profile_dev.gradle'
}
group = 'de.ingenhaag.tinkerwstation'
version = '1.0.0-SNAPSHOT'
description = ''
configurations {
providedRuntime
}
repositories {
maven { url 'http://repo.spring.io/milestone' }
maven { url 'http://repo.spring.io/snapshot' }
maven { url 'https://repository.jboss.org/nexus/content/repositories/releases' }
maven { url 'https://oss.sonatype.org/content/repositories/releases' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'http://repo.maven.apache.org/maven2' }
}
dependencies {
compile("com.tinkerforge:tinkerforge:2.1.6")
compile("joda-time:joda-time")
compile("org.jadira.usertype:usertype.jodatime:2.0.1")
compile group: 'io.dropwizard.metrics', name: 'metrics-core'
compile group: 'io.dropwizard.metrics', name: 'metrics-annotation', version: dropwizard_metrics_version
compile group: 'io.dropwizard.metrics', name: 'metrics-ehcache', version: dropwizard_metrics_version
compile group: 'io.dropwizard.metrics', name: 'metrics-graphite', version: dropwizard_metrics_version
compile group: 'io.dropwizard.metrics', name: 'metrics-healthchecks', version: dropwizard_metrics_version
compile group: 'io.dropwizard.metrics', name: 'metrics-jvm', version: dropwizard_metrics_version
compile group: 'io.dropwizard.metrics', name: 'metrics-servlet', version: dropwizard_metrics_version
compile group: 'io.dropwizard.metrics', name: 'metrics-json', version: dropwizard_metrics_version
compile (group: 'io.dropwizard.metrics', name: 'metrics-servlets', version: dropwizard_metrics_version) {
exclude(module: 'metrics-healthchecks')
}
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-json-org', version: jackson_version
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-hppc', version: jackson_version
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: jackson_version
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-hibernate4', version: jackson_version
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: jackson_version
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: jackson_version
compile (group: 'com.ryantenney.metrics', name: 'metrics-spring', version: metrics_spring_version) {
exclude(module: 'metrics-core')
exclude(module: 'metrics-healthchecks')
}
compile(group: 'com.zaxxer', name: 'HikariCP', version: HikariCP_version) {
exclude(module: 'tools')
}
compile group: 'commons-lang', name: 'commons-lang', version: commons_lang_version
compile group: 'commons-io', name: 'commons-io', version: commons_io_version
compile group: 'javax.inject', name: 'javax.inject', version: javax_inject_version
compile group: 'javax.transaction', name: 'javax.transaction-api'
compile group: 'org.apache.geronimo.javamail', name: 'geronimo-javamail_1.4_mail', version: geronimo_javamail_1_4_mail_version
compile group: 'org.hibernate', name: 'hibernate-core', version: hibernate_entitymanager_version
compile (group: 'org.hibernate', name: 'hibernate-ehcache') {
exclude(module: 'ehcache-core')
}
compile group: 'org.hibernate', name: 'hibernate-envers'
compile group: 'org.hibernate', name: 'hibernate-validator'
compile (group: 'org.liquibase', name: 'liquibase-core', version: liquibase_core_version) {
exclude(module: 'jetty-servlet')
}
compile group: 'com.mattbertolini', name: 'liquibase-slf4j', version: liquibase_slf4j_version
compile group: 'org.springframework.boot', name: 'spring-boot-actuator'
compile group: 'org.springframework.boot', name: 'spring-boot-autoconfigure'
compile group: 'org.springframework.boot', name: 'spring-boot-loader-tools'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-logging'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-aop'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-security'
compile(group: 'org.springframework.boot', name: 'spring-boot-starter-web') {
exclude module: 'spring-boot-starter-tomcat'
}
compile group: 'org.springframework.boot', name: 'spring-boot-starter-thymeleaf'
compile group: 'org.springframework.cloud', name: 'spring-cloud-cloudfoundry-connector'
compile group: 'org.springframework.cloud', name: 'spring-cloud-spring-service-connector'
compile group: 'org.springframework.cloud', name: 'spring-cloud-localconfig-connector'
compile(group: 'org.springframework', name: 'spring-context-support') {
exclude(module: 'quartz')
}
compile group: 'org.springframework.security', name: 'spring-security-config', version: spring_security_version
compile group: 'org.springframework.security', name: 'spring-security-data', version: spring_security_version
compile group: 'org.springframework.security', name: 'spring-security-web', version: spring_security_version
compile(group: 'io.springfox', name: 'springfox-swagger2', version: springfox_version){
exclude module: 'mapstruct'
}
compile group: 'mysql', name: 'mysql-connector-java'
compile group: 'com.h2database', name: 'h2'
compile group: 'fr.ippon.spark.metrics', name: 'metrics-spark-reporter', version: metrics_spark_reporter_version
compile group: 'org.mapstruct', name: 'mapstruct-jdk8', version: mapstruct_version
testCompile group: 'com.jayway.awaitility', name: 'awaitility', version: awaility_version
testCompile group: 'com.jayway.jsonpath', name: 'json-path'
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test'
testCompile group: 'org.assertj', name: 'assertj-core', version: assertj_core_version
testCompile group: 'junit', name: 'junit'
testCompile group: 'org.mockito', name: 'mockito-core'
testCompile group: 'com.mattbertolini', name: 'liquibase-slf4j', version: liquibase_slf4j_version
testCompile group: 'org.hamcrest', name: 'hamcrest-library'
testCompile group: 'io.gatling.highcharts', name: 'gatling-charts-highcharts', version: gatling_version
optional group: 'org.springframework.boot', name:'spring-boot-configuration-processor', version: spring_boot_version
}
compileJava.dependsOn(processResources)
clean {
delete "target"
}
task wrapper(type: Wrapper) {
gradleVersion = '2.9'
}
task stage(dependsOn: 'bootRepackage') {
}