forked from Coloryr/ColorMirai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
38 lines (34 loc) · 948 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '6.0.0'
}
group 'Color_yr.ColorMirai'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
jcenter()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.13.3'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.13.3'
// compile 'com.google.code.gson:gson:2.8.6'
compile 'com.alibaba:fastjson:1.2.73'
compile "net.mamoe:mirai-core-qqandroid:1.1.3"
// compile fileTree(dir:'lib',include:['*.jar'])
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
task copyToLib(type: Copy) {
into "$buildDir/libs"
from configurations.compile
}
jar {
manifest {
attributes(
"Implementation-Title": "Gradle",
'Main-Class': 'Color_yr.ColorMirai.Start'
)
}
}