-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
42 lines (34 loc) · 871 Bytes
/
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
plugins {
id 'java'
id 'application'
}
group 'top.werls'
version '1.0-SNAPSHOT'
sourceCompatibility = '17'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.xerial:sqlite-jdbc:3.44.1.0'
implementation 'org.slf4j:slf4j-log4j12:2.0.0'
implementation 'com.alibaba:fastjson:2.0.45'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.2'
}
test {
useJUnitPlatform()
}
application {
mainClassName = "top.werls.wallpaper.App"
}
jar {
from {
configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
}
duplicatesStrategy = 'exclude' // 或者 'fail',具体取决于你的需求
manifest {
attributes(
'Main-Class': 'top.werls.wallpaper.App'
)
}
}