-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
109 lines (93 loc) · 3 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
import com.bmuschko.gradle.docker.tasks.image.*
import com.bmuschko.gradle.docker.tasks.container.*
plugins {
id 'java'
id 'org.springframework.boot' version '3.2.5'
id 'io.spring.dependency-management' version '1.1.5'
id 'com.diffplug.spotless' version '6.25.0'
id 'com.bmuschko.docker-spring-boot-application' version '9.4.0'
id 'com.adarshr.test-logger' version '4.0.0'
}
group = 'to.wetransform.hale'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
repositories {
// mavenLocal() //XXX for testing
maven {
// wetransform release repository (hale releases and Eclipse dependencies)
url 'https://artifactory.wetransform.to/artifactory/local'
}
// this needs to be defined before jcenter/MavenCentral for retrieving JAI
maven {
url 'https://repo.osgeo.org/repository/release/'
}
mavenCentral()
}
project.ext {
haleVersion = '5.1.0'
cliVersion = '5.1.0'
groovyVersion = '2.5.23'
logbackVersion = '1.5.6'
}
dependencies {
// Spring
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-quartz'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-amqp'
implementation 'org.apache.httpcomponents.client5:httpclient5:5.3.1'
// S3 API
implementation 'software.amazon.awssdk:s3:2.25.49'
// hale
implementation 'eu.esdihumboldt.unpuzzled:org.eclipse.equinox.nonosgi.registry:1.0.0'
implementation "to.wetransform:hale-cli:$cliVersion", {
/*
* XXX The dependencies introduced by the schematron bundle cause some problems.
*/
exclude group: 'eu.esdihumboldt.hale', module: 'eu.esdihumboldt.hale.io.schematron'
}
implementation "eu.esdihumboldt.hale:eu.esdihumboldt.hale.app.cli.commands:$haleVersion"
implementation "org.codehaus.groovy:groovy-all:$groovyVersion"
implementation 'org.json:json:20240303'
implementation 'org.slf4j:jul-to-slf4j:2.0.13'
implementation 'org.apache.httpcomponents:httpmime:4.5.14'
//developmentOnly 'org.springframework.boot:spring-boot-docker-compose'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
// Logging
testRuntimeOnly "ch.qos.logback:logback-core:$logbackVersion"
testRuntimeOnly "ch.qos.logback:logback-classic:$logbackVersion"
}
configurations.all {
// ensure SNAPSHOTs are updated every time if needed
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
tasks.named('test') {
useJUnitPlatform()
}
spotless {
java {
palantirJavaFormat()
importOrder('java', 'javax', '')
removeUnusedImports()
indentWithSpaces(4)
trimTrailingWhitespace()
endWithNewline()
target 'src/*/java/**/*.java'
}
groovyGradle {
target '*.gradle' // default target of groovyGradle
}
}
task buildImage(type: DockerBuildImage) {
inputDir = project.projectDir
images = ["harbor.develop.diplanung.de/diplan-develop/diplan-hale-transformer:latest"]
}
/*
* Gradle wrapper
*/
wrapper {
gradleVersion = '8.9'
}