forked from yanghaa/BiliBiliTask_rebase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
62 lines (54 loc) · 1.13 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
55
56
57
58
59
60
61
62
plugins {
id 'java'
id "io.freefair.lombok" version '5.3.0'
id 'com.github.johnrengelman.shadow' version '6.1.0'
}
group = 'top.srcrs'
version = '1.0.9'
sourceCompatibility = JavaVersion.VERSION_1_8
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
maven {
url 'https://maven.aliyun.com/repository/public/'
}
mavenLocal()
mavenCentral()
}
List alibaba = [
'com.alibaba:fastjson:latest.release'
]
List apache = [
'org.apache.httpcomponents:httpclient:latest.release'
]
List logback = [
'ch.qos.logback:logback-classic:latest.release'
]
List junit = [
'org.junit.jupiter:junit-jupiter-engine:latest.release'
]
List yaml = [
'org.yaml:snakeyaml:latest.release'
]
dependencies {
implementation logback,alibaba,apache,yaml
testImplementation junit
}
jar {
manifest {
attributes("Main-Class": "top.srcrs.BiliStart")
}
}
artifacts {
archives shadowJar
}
test {
useJUnitPlatform()
}
task runMain (type: JavaExec) {
main = 'top.srcrs.BiliStart'
classpath = sourceSets.main.runtimeClasspath
}