Skip to content

Commit 00cee43

Browse files
committed
add shared build script
1 parent 92d8846 commit 00cee43

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

buildSrc/shared.gradle

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
group = 'de.komoot.photon'
2+
version = '0.5.0'
3+
4+
distZip.enabled = false
5+
distTar.enabled = false
6+
shadowDistZip.enabled = false
7+
shadowDistTar.enabled = false
8+
9+
application {
10+
mainClass = 'de.komoot.photon.App';
11+
}
12+
13+
java {
14+
sourceCompatibility = JavaVersion.VERSION_11
15+
targetCompatibility = JavaVersion.VERSION_11
16+
}
17+
18+
repositories {
19+
maven { url "https://www.datanucleus.org/downloads/maven2/" }
20+
mavenCentral()
21+
}
22+
23+
sourceSets {
24+
main {
25+
java {
26+
srcDir rootProject.file('src/main/java')
27+
}
28+
resources {
29+
srcDir rootProject.file('src/main/resources')
30+
}
31+
}
32+
test {
33+
java {
34+
srcDir rootProject.file('src/test/java/')
35+
}
36+
resources {
37+
srcDir rootProject.file('src/test/resources')
38+
}
39+
}
40+
}
41+
42+
dependencies {
43+
implementation 'org.apache.logging.log4j:log4j-core:2.23.1'
44+
implementation 'org.apache.logging.log4j:log4j-api:2.23.1'
45+
implementation 'org.postgresql:postgresql:42.7.2'
46+
implementation 'org.slf4j:slf4j-api:2.0.13'
47+
implementation 'org.apache.logging.log4j:log4j-slf4j2-impl:2.23.1'
48+
implementation 'com.beust:jcommander:1.82'
49+
implementation 'org.apache.commons:commons-lang3:3.14.0'
50+
implementation 'org.springframework:spring-jdbc:5.3.32'
51+
implementation ('org.apache.commons:commons-dbcp2:2.12.0') {
52+
exclude(module: 'commons-logging')
53+
}
54+
implementation 'org.locationtech.jts:jts-core:1.19.0'
55+
implementation 'com.sparkjava:spark-core:2.9.4'
56+
implementation 'net.postgis:postgis-jdbc:2023.1.0'
57+
implementation 'org.json:json:20240303'
58+
59+
testImplementation(platform("org.junit:junit-bom:5.10.2"))
60+
testImplementation 'com.h2database:h2:2.2.224'
61+
testImplementation 'org.junit.jupiter:junit-jupiter'
62+
testImplementation 'org.mockito:mockito-core:5.11.0'
63+
64+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
65+
}
66+
67+
tasks.named('test') {
68+
useJUnitPlatform()
69+
}

0 commit comments

Comments
 (0)