-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
83 lines (72 loc) · 2.46 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
83
plugins {
id('java')
id('com.github.johnrengelman.shadow') version('8.1.1')
}
sourceCompatibility = targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
mavenLocal()
maven {
name = 'NeuralNexus'
url = 'https://maven.neuralnexus.dev/releases'
}
maven {
name = 'NeuralNexusSnapshots'
url = 'https://maven.neuralnexus.dev/snapshots'
}
}
dependencies {
compileOnly("dev.neuralnexus:taterlib-api:${taterlib_version}")
compileOnly("dev.neuralnexus:entrypoint-spoof:0.1.4")
compileOnly('org.spongepowered:configurate-hocon:4.1.2')
compileOnly('com.google.code.gson:gson:2.10.1')
compileOnly('com.google.guava:guava:33.0.0-jre')
}
tasks.withType(ProcessResources).configureEach {
filesMatching([
'plugin.yml',
'bungee.yml',
'fabric.mod.json',
'META-INF/mods.toml', 'mcmod.info', 'pack.mcmeta',
'META-INF/sponge_plugins.json',
'velocity-plugin.json'
]) {
expand project.properties
}
}
shadowJar {
dependencies {
exclude('META-INF/maven/**')
exclude('META-INF/proguard/**')
exclude('META-INF/services/**')
exclude('META-INF/versions/**')
exclude('META-INF/*LICENSE*')
exclude('META-INF/*NOTICE*')
exclude('META-INF/*kotlin_module')
}
// TaterLib bundled dependencies
relocate('org.spongepowered.configurate', 'dev.neuralnexus.taterlib.lib.configurate')
relocate('com.typesafe.config', 'dev.neuralnexus.taterlib.lib.typesafe.config')
relocate('io.leangen.geantyref', 'dev.neuralnexus.taterlib.lib.geantyref')
relocate('com.google.gson', 'dev.neuralnexus.taterlib.lib.gson')
relocate('com.google.common', 'dev.neuralnexus.taterlib.lib.guava')
relocate('com.google.thirdparty', 'dev.neuralnexus.taterlib.lib.google.thirdparty')
archiveFileName = "${project_id}-${version}.jar"
manifest {
attributes 'Specification-Title': "${project_name}",
'Specification-Version': version,
'Specification-Vendor': 'NeuralNexus',
'Implementation-Version': version,
'Implementation-Vendor': 'NeuralNexus',
'Implementation-Timestamp': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
}
from(["README.md", "LICENSE", "LICENSE-API"]) {
into("META-INF")
}
}
artifacts {
archives(shadowJar)
}