-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
54 lines (43 loc) · 1.31 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
plugins {
id 'java'
}
group = 'quick-sched'
version = '1.0.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
// https://mvnrepository.com/artifact/com.google.code.gson/gson
implementation 'com.google.code.gson:gson:2.10.1'
// https://mvnrepository.com/artifact/com.google.api-client/google-api-client
implementation 'com.google.api-client:google-api-client:2.6.0'
implementation 'com.google.oauth-client:google-oauth-client-jetty:1.34.1'
implementation 'com.google.apis:google-api-services-calendar:v3-rev20220715-2.0.0'
// https://mvnrepository.com/artifact/org.dhatim/fastexcel
implementation 'org.dhatim:fastexcel:0.18.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.2'
}
test {
useJUnitPlatform()
}
jar {
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
manifest {
attributes 'Main-Class' : 'com.planner.ui.TUI'
}
from {
configurations.runtimeClasspath.collect {it.isDirectory() ? it : zipTree(it)}
}
}
// Define the 'run' task
tasks.register('run') {
dependsOn['jar']
doLast {
javaexec {
main = 'com.planner.ui.TUI'
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
}
}
}