-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
46 lines (37 loc) · 1.12 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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
id 'org.springframework.boot' version '3.0.0'
id 'io.spring.dependency-management' version '1.1.0'
}
group = 'net.meixxi.service.preview'
if (project.hasProperty('projectVersion')) {
version = project.projectVersion
} else {
version = 'DEV'
}
sourceCompatibility = '17'
processResources {
filesMatching(['**/*.xml', '**/*.html', '**/*.yml']) {
filter(ReplaceTokens, tokens: [
'version': project.properties['version'],
'appname': project.properties['name'],
'buildtime': new Date().format("yyyy-MM-dd HH:mm:ss'Z'", TimeZone.getTimeZone("GMT"))
])
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.0'
implementation 'org.cip4.lib.xjdf:xJdfLib:+'
implementation 'org.apache.pdfbox:pdfbox:3.+'
implementation 'org.apache.pdfbox:io:3.+'
implementation 'net.logstash.logback:logstash-logback-encoder:+'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
tasks.named('test') {
useJUnitPlatform()
}