This repository has been archived by the owner on Apr 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
128 lines (109 loc) · 4.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
/*============================================================================*
* Copyright (c) 2018 - Prevo-System AG and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the Eclipse
* Public License, v. 2.0 are satisfied: GNU General Public License, version 3
* with the GNU Classpath Exception which is
* available at https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-3.0 WITH Classpath-exception-2.0
*
* Contributors:
* Prevo-System AG - initial API and implementation
* Michael Kalt <[email protected]> - initial contribution
* Markus Tiede <[email protected]> - initial contribution
*===========================================================================*/
buildscript {
ext {
springBootVersion = '2.0.3.RELEASE'
gradleDockerVersion = '0.20.1'
gradleDockerComposeVersion = '0.8.0'
shadowPluginVersion = '2.0.4'
gradleReleasePluginVersion = '2.6.0'
springfoxSwaggerVersion = '2.9.2'
}
repositories {
jcenter()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("gradle.plugin.com.palantir.gradle.docker:gradle-docker:${gradleDockerVersion}")
classpath("com.avast.gradle:gradle-docker-compose-plugin:${gradleDockerComposeVersion}")
classpath("com.github.jengelman.gradle.plugins:shadow:${shadowPluginVersion}")
classpath("net.researchgate:gradle-release:${gradleReleasePluginVersion}")
}
}
allprojects { project ->
project.apply plugin: 'base'
project.apply plugin: 'idea'
project.apply plugin: 'eclipse'
project.group = 'ch.prevo.open'
project.version = version
}
subprojects { project ->
repositories {
mavenCentral()
}
project.apply plugin: 'io.spring.dependency-management'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
plugins.withType(JavaPlugin) {
project.sourceCompatibility = 1.8
project.targetCompatibility = 1.8
}
dependencyManagement {
imports {
mavenBom("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
}
dependencies {
dependency("commons-io:commons-io:2.6")
dependency("javax.inject:javax.inject:1")
dependency("org.modelmapper:modelmapper:2.1.0")
dependency("org.testcontainers:testcontainers:1.8.0")
dependency("org.hibernate:hibernate-validator:6.0.10.Final")
dependency("xerces:xerces:2.4.0")
dependency("commons-io:commons-io:2.6")
dependency("io.springfox:springfox-swagger2:${springfoxSwaggerVersion}")
dependency("io.springfox:springfox-swagger-ui:${springfoxSwaggerVersion}")
dependency("io.springfox:springfox-bean-validators:${springfoxSwaggerVersion}")
dependencySet(group: "org.apache.poi", version: "3.17") {
entry("poi")
entry("poi-ooxml")
entry("poi-ooxml-schemas")
}
}
}
}
build.dependsOn subprojects.findResults { it.tasks.findByName('build') }
project.apply plugin: 'net.researchgate.release'
release {
preTagCommitMessage = '[OpenPrevo Release] - set current release version to: '
tagCommitMessage = '[OpenPrevo Release] - create tag for release: '
newVersionCommitMessage = '[OpenPrevo Release] - set new snapshot version to: '
tagTemplate = 'v${version}'
versionPropertyFile = 'gradle.properties'
buildTasks = ['build']
}
assemble.dependsOn ':doc:publishDocumentation'
defaultTasks 'assemble'
/**
* Hook for integration tests on Travis.
* Integration tests will be executed only on Travis by default.
*/
task ciIntegrationTest(type: GradleBuild) {
tasks = ['integrationTest']
onlyIf {
System.getenv("TRAVIS") == "true"
}
}
check.finalizedBy ciIntegrationTest