-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
60 lines (51 loc) · 1.57 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'java'
}
group = 'com.hamusuke.threadr'
version = '5.0.0'
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
javadoc.options.encoding = 'UTF-8'
repositories {
mavenCentral()
maven {
url "https://libraries.minecraft.net"
}
}
dependencies {
implementation 'io.netty:netty-all:4.1.111.Final'
implementation 'com.google.guava:guava:33.0.0-jre'
implementation 'org.apache.logging.log4j:log4j-core:2.19.0'
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'it.unimi.dsi:fastutil:8.5.9'
implementation 'com.mojang:brigadier:1.0.18'
implementation 'com.google.code.gson:gson:2.10.1'
}
tasks.register('buildClient', ShadowJar) {
setGroup("shadow")
archiveClassifier = "client"
from sourceSets.main.output
from sourceSets.main.compileClasspath
from "LICENSE"
from "README.md"
from "SIL_Open_Font_License_1.1.txt"
manifest {
attributes "Main-Class": "com.hamusuke.threadr.client.MainClient"
attributes "Multi-Release": true
}
}
tasks.register('buildServer', ShadowJar) {
setGroup("shadow")
archiveClassifier = "server"
from sourceSets.main.output
from sourceSets.main.compileClasspath
from "LICENSE"
from "README.md"
from "SIL_Open_Font_License_1.1.txt"
manifest {
attributes "Main-Class": "com.hamusuke.threadr.server.MainServer"
attributes "Multi-Release": true
}
}