-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.gradle
59 lines (47 loc) · 1.77 KB
/
common.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
//
// This file is to be applied to every subproject.
//
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'org.springframework.boot'
apply plugin: "ua.eshepelyuk.gradle.jaxrsAnalyzer"
String mavenGroupId = 'com.cxplonka'
String mavenVersion = '1.0-snapshot'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
repositories {
mavenCentral();
// vaadin4spring
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
}
// Adding dependencies here will add the dependencies to each subproject.
dependencies {
// Spring Boot
compile("org.springframework.boot:spring-boot-starter-data-jpa:${springBootVersion}")
compile("org.springframework.boot:spring-boot-starter-web:${springBootVersion}")
// compile("org.springframework.boot:spring-boot-starter-security:${springBootVersion}")
// SpringBoot-Actuator (metrics) & Hawtio
compile("org.springframework.boot:spring-boot-starter-actuator:${springBootVersion}")
// Apache Camel
compile("org.apache.camel:camel-spring-boot-starter:2.18.1")
compile("org.apache.camel:camel-stream-starter:2.18.1")
// javax.validation
compile group: 'javax.validation', name: 'validation-api', version: '1.1.0.Final'
compile group: 'org.hibernate', name: 'hibernate-validator', version: '5.2.4.Final'
// JUnit 5
testCompile("org.junit.jupiter:junit-jupiter-api:5.0.0-M2")
testRuntime("org.junit.jupiter:junit-jupiter-engine:5.0.0-M2")
}
String mavenArtifactId = name
group = mavenGroupId
version = mavenVersion
configure(install.repositories.mavenInstaller) {
pom.project {
groupId = mavenGroupId
artifactId = mavenArtifactId
version = mavenVersion
}
}