This repository was archived by the owner on Apr 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
64 lines (52 loc) · 2.04 KB
/
build.gradle
File metadata and controls
64 lines (52 loc) · 2.04 KB
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
plugins {
id 'org.springframework.boot' version '2.1.5.RELEASE'
id 'java'
}
apply plugin: 'io.spring.dependency-management'
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
repositories {
jcenter()
}
ext['assertj.version'] = '3.10.0'
dependencies {
compile "org.springframework.boot:spring-boot-starter-web"
compile "org.springframework.boot:spring-boot-starter-thymeleaf"
compile "org.springframework.boot:spring-boot-starter-actuator"
compile "org.springframework.boot:spring-boot-devtools"
compile "org.springframework.boot:spring-boot-starter-security"
compile "org.apache.maven.wagon:wagon-http:3.3.3"
compile "org.apache.httpcomponents:httpclient"
compile "io.vavr:vavr:0.9.2"
compile "com.google.guava:guava:${guavaVersion}"
compile "org.mitre:openid-connect-client:1.3.3"
compile "javax.activation:activation:1.1.1"
testCompile "org.assertj:assertj-vavr:0.0.1"
testCompile "org.springframework.boot:spring-boot-starter-test"
}
task sourcesJar(type: Jar, dependsOn: classes, description: 'Builds a sources jar artifact suitable for maven deployment.') {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc, description: 'Builds a javadoc jar artifact suitable for maven deployment.') {
classifier = 'javadoc'
from javadoc.destinationDir
}
task testJar(type: Jar, dependsOn: testClasses, description: 'Builds a tests jar artifact suitable for maven deployment.') {
classifier = 'tests'
from sourceSets.test.output
}
tasks.withType(Jar) {
manifest {
attributes 'Implementation-Title': project.name
attributes 'Implementation-Version': project.version
attributes 'Implementation-Vendor': "Red Bull Media House GmbH"
attributes 'Build-Date': new Date().format("yyyy-MM-dd HH:mm:ss")
}
}
bootRun {
if (project.hasProperty('applicationProperties')) {
systemProperty 'spring.config.location', "file:${applicationProperties}"
}
}
wrapper.gradleVersion = '5.4.1'