-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
53 lines (43 loc) · 1.17 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
plugins {
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'java'
id("java-library")
}
repositories {
mavenCentral()
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
dependencies {
implementation 'junit:junit:4.13.1'
testImplementation('org.junit.jupiter:junit-jupiter:5.6.0')
testImplementation 'junit:junit:4.13.1'
shadow 'junit:junit:3.8.2'
// https://mvnrepository.com/artifact/mysql/mysql-connector-java
implementation group: 'mysql', name: 'mysql-connector-java', version: '8.0.31'
// https://mvnrepository.com/artifact/com.github.lgooddatepicker/LGoodDatePicker
implementation group: 'com.github.lgooddatepicker', name: 'LGoodDatePicker', version: '11.2.1'
}
test {
useJUnitPlatform()
useJUnit()
testLogging {
events "passed", "skipped", "failed"
}
}
shadowJar {
archiveBaseName.set('BillGates')
archiveClassifier.set('')
archiveVersion.set('1.0.0')
}
jar {
manifest {
attributes(
'Class-Path': configurations.runtimeClasspath.files.collect { it.getName() }.join(' '),
'Main-Class': "billgates.Main"
)
}
}