forked from Apisium/PaperShelled
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
56 lines (47 loc) · 2 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
import java.text.SimpleDateFormat
//file:noinspection GroovyUnusedAssignment
//file:noinspection GrUnresolvedAccess
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '6.1.0'
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
group 'cn.apisium.papershelled'
def psVersion = version = System.getenv('RELEASE_VERSION') ?: '0.0.0-DEV'
repositories {
mavenCentral()
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url 'https://repo.spongepowered.org/repository/maven-public/' }
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT'
implementation 'org.spongepowered:mixin:0.8.4'
implementation 'com.google.guava:guava:30.1.1-jre'
implementation 'org.jetbrains:annotations:22.0.0'
implementation "org.ow2.asm:asm:${project.asm_version}"
implementation "org.ow2.asm:asm-analysis:${project.asm_version}"
implementation "org.ow2.asm:asm-commons:${project.asm_version}"
implementation "org.ow2.asm:asm-tree:${project.asm_version}"
implementation "org.ow2.asm:asm-util:${project.asm_version}"
implementation "org.apache.commons:commons-lang3:3.10"
}
jar {
manifest {
def sdf = new SimpleDateFormat('EEE, MMM d, yyyy hh:mm:ss a z', Locale.US)
sdf.setTimeZone(TimeZone.getTimeZone('GMT'))
attributes 'Implementation-Title': 'PaperShelled'
attributes 'Implementation-Version': psVersion
attributes 'Implementation-Vendor': sdf.format(new Date())
attributes 'Can-Redefine-Classes': 'true'
attributes 'Can-Retransform-Classes': 'true'
attributes 'Agent-Class': 'cn.apisium.papershelled.PaperShelledAgent'
attributes 'Premain-Class': 'cn.apisium.papershelled.PaperShelledAgent'
attributes 'Main-Class': 'cn.apisium.papershelled.launcher.Launcher'
}
}
shadowJar {
relocate 'com.google.common', 'cn.apisium.papershelled.guava'
archiveClassifier.set('')
}
build.dependsOn(shadowJar)