-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
46 lines (40 loc) · 1.14 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
plugins {
id 'java'
id 'application'
}
group = 'com.github.krystianmuchla'
repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'org.xerial:sqlite-jdbc:3.46.1.3'
implementation 'ch.qos.logback:logback-classic:1.5.15'
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.4'
testImplementation 'org.assertj:assertj-core:3.27.2'
}
application {
def localPath = projectDir.toPath().resolve('home-local')
def databaseLocation = localPath.resolve('home.db').toString()
def driveLocation = localPath.resolve('drive').toString()
applicationDefaultJvmArgs = [
'-Dhttp.port=8080',
"-Ddatabase.url=jdbc:sqlite:$databaseLocation",
"-Ddrive.location=$driveLocation"
]
mainClass = 'com.github.krystianmuchla.home.App'
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes(
'Main-Class': 'com.github.krystianmuchla.home.App'
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
test {
useJUnitPlatform()
}