-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
49 lines (41 loc) · 1.1 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
apply plugin: 'java'
apply plugin: 'application'
group 'radar'
version '1.0-SNAPSHOT'
mainClassName = 'com.thoughtworks.radar.Main'
repositories {
mavenCentral()
}
dependencies {
implementation 'com.fasterxml.jackson.core:jackson-core:2.14.0',
'com.fasterxml.jackson.core:jackson-databind:2.14.0',
'commons-io:commons-io:2.11.0',
'com.j256.ormlite:ormlite-jdbc:6.1'
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.0',
'org.junit.platform:junit-platform-launcher:1.9.0'
runtime 'com.h2database:h2:2.1.214'
}
sourceSets {
test {
java {
srcDirs = ['src/test']
}
}
main {
java {
srcDirs = ['src/main']
}
}
}
test {
useJUnitPlatform()
}
task createDB(type:JavaExec, dependsOn:classes) {
mainClass = 'com.thoughtworks.radar.Database.Main'
classpath = sourceSets.main.runtimeClasspath
args 'data', "jdbc:h2:$projectDir/database"
}
task sql(type:JavaExec, dependsOn:classes) {
mainClass = 'org.h2.tools.Console'
classpath = sourceSets.main.runtimeClasspath
}