-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
82 lines (75 loc) · 3.39 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
plugins {
id 'java'
id 'idea'
}
group 'com.github.fengye.starring.uranium'
version ''
archivesBaseName = 'Uranium'
repositories {
maven {
url "https://maven.aliyun.com/repository/public/"
}
mavenCentral()
maven {
url "https://libraries.minecraft.net/"
}
maven {
url "https://mvnrepository.com/artifact"
}
maven {
url "https://www.jitpack.io"
}
}
configurations {
addLib
}
dependencies {
implementation group: 'oshi-project', name: 'oshi-core', version: '1.1'
implementation group: 'net.java.dev.jna', name: 'jna', version: '3.4.0'
implementation group: 'net.java.dev.jna', name: 'platform', version: '3.4.0'
implementation group: 'com.ibm.icu', name: 'icu4j', version: '62.1'
implementation group: 'net.sf.jopt-simple', name: 'jopt-simple', version: '4.9'
implementation group: "com.paulscode", name: "codecjorbis", version: "20101023"
implementation group: "com.paulscode", name: "codecwav", version: "20101023"
implementation group: "com.paulscode", name: "libraryjavasound", version: "20101123"
implementation group: "com.paulscode", name: "librarylwjglopenal", version: "20100824"
implementation group: "com.paulscode", name: "soundsystem", version: "20120107"
implementation group: 'io.netty', name: 'netty-all', version: '4.0.23.Final'
implementation group: 'com.google.guava', name: 'guava', version: '17.0'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.8.1'
implementation group: 'commons-io', name: 'commons-io', version: '2.6'
implementation group: 'commons-codec', name: 'commons-codec', version: '1.11'
implementation group: 'net.java.jinput', name: 'jinput', version: '2.0.9'
implementation group: 'net.java.jutils', name: 'jutils', version: '1.0.0'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
implementation group: 'org.apache.commons', name: 'commons-compress', version: '1.18'
implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.6'
implementation group: 'commons-logging', name: 'commons-logging', version: '1.2'
implementation group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.4.10'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.0-beta9'
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.0-beta9'
implementation group: 'org.lwjgl.lwjgl', name: 'lwjgl', version: '2.9.3'
implementation group: 'org.lwjgl.lwjgl', name: 'lwjgl_util', version: '2.9.3'
implementation group: 'com.mojang', name: 'realms', version: '1.7.59'
implementation group: 'com.mojang', name: 'authlib', version: '1.5.21'
implementation group: 'tv.twitch', name: 'twitch', version: '6.5'
implementation fileTree(dir: 'libs', includes: ['*.jar'])
configurations.implementation.extendsFrom(configurations.addLib)
}
jar {
duplicatesStrategy = 'warn' // 警告模式,不中断构建但会输出警告
from {
configurations.addLib.collect {
if (!it.isDirectory()) {
zipTree(it)
}
}
}
from {
def libsFolder = file('libs')
configurations.runtimeClasspath.findAll { it.name.endsWith('.jar') && it.parentFile == libsFolder}.collect { zipTree(it) }
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}