-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
99 lines (83 loc) · 2.99 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
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.2.2.RELEASE")
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.9.2'
}
}
plugins {
id 'io.franzbecker.gradle-lombok' version '1.14'
id "io.spring.dependency-management" version "1.0.8.RELEASE"
id "com.github.kt3k.coveralls" version "2.8.1"
id "org.owasp.dependencycheck" version "3.1.2"
id "org.asciidoctor.convert" version "1.5.3"
}
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
jar {
baseName = 'template'
version = System.getenv('version')
}
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
configurations {
all*.exclude module : 'spring-boot-starter-logging'
}
lombok {
version = '1.18.10'
sha256 = ""
}
if (project.hasProperty('travis')) {
println 'Using travis profile for building ' + project.getName()
apply from: 'gradle/profile-travis.gradle'
} else if (project.hasProperty('release') || project.hasProperty('clean-release')) {
println 'Using release profile for building ' + project.getName()
apply from: 'gradle/profile-release.gradle'
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-rest")
implementation("edu.kit.datamanager:service-base:0.1.2")
//Enable dependency if messaging is needed, otherwise reduce size by skipping it
//implementation("edu.kit.datamanager:generic-message-consumer:0.1")
//Java 11 Support
implementation 'javax.xml.bind:jaxb-api:2.3.1'
implementation 'com.sun.xml.bind:jaxb-core:2.3.0.1'
implementation 'com.sun.xml.bind:jaxb-impl:2.3.0.1'
implementation('javax.activation:activation:1.1.1')
implementation('org.javassist:javassist:3.23.1-GA')
//Java 11 Support
testImplementation("org.mockito:mockito-core:2.18.0")
testImplementation("org.powermock:powermock-module-junit4:2.0.0-beta.5")
testImplementation("org.powermock:powermock-api-mockito2:2.0.0-beta.5")
testImplementation('org.springframework.restdocs:spring-restdocs-mockmvc:2.0.4.RELEASE')
testImplementation('org.asciidoctor:asciidoctor-gradle-plugin:1.5.9.2')
asciidoctor('org.springframework.restdocs:spring-restdocs-asciidoctor:2.0.4.RELEASE')
asciidoctor('com.github.allati.asciidoctor.monotree:asciidoctor-extension-monotree:0.0.1')
}
bootJar {
manifest {
attributes 'Main-Class': 'org.springframework.boot.loader.PropertiesLauncher'
}
dependsOn asciidoctor
from ("${asciidoctor.outputDir}/html5") {
into 'static/docs'
}
launchScript()
}
test {
testLogging {
outputs.upToDateWhen {false}
showStandardStreams = true
}
}