This repository has been archived by the owner on Oct 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
109 lines (79 loc) · 2.55 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
buildscript {
repositories {
jcenter()
maven {
name = 'forge'
url = 'https://files.minecraftforge.net/maven'
}
maven {
url = 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.2"
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
classpath 'gradle.plugin.org.spongepowered:spongegradle:0.8.1'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'org.spongepowered.plugin'
apply plugin: 'com.github.johnrengelman.shadow'
group = 'games.synx'
version = '1.0-SNAPSHOT'
archivesBaseName = 'SpongeblockSquarepants'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
dependencies {
// SPONGE API
provided 'org.spongepowered:spongeforge:1.12.2-2838-7.1.8:dev'
// AIKAR ANNOTATION COMMAND FRAMEWORK
shadow "co.aikar:acf-sponge:0.5.0-SNAPSHOT"
// CONFIGURATE 4.0
shadow 'org.spongepowered:configurate-gson:4.0.0'
// NUCLEUS API
compileOnly 'io.github.nucleuspowered:nucleus-api:1.14.2-S7.1'
annotationProcessor 'io.github.nucleuspowered:nucleus-api:1.14.2-S7.1'
// LOCAL PLUGINS
// Basically shit which is unsupported but I need
apiCompile fileTree(dir: 'libs', include: '*.jar')
}
minecraft {
version = '1.12.2-14.23.1.2555'
runDir = 'run'
mappings = 'stable_39'
}
repositories {
mavenCentral()
// AIKAR ANNOTATION COMMAND FRAMEWORK
maven { url = "https://repo.aikar.co/content/groups/aikar/" }
// NUCLEUS POWERED
maven { url = "http://repo.drnaylor.co.uk/artifactory/list/minecraft" }
}
configurations {
provided
compile.extendsFrom provided
compileJava.options.encoding = "UTF-8"
jar.archiveName = rootProject.name + '.jar'
compileJava.options.fork = true
}
shadowJar {
configurations = [project.configurations.shadow]
relocate 'co.aikar.commands', 'games.synx.libs.acf'
relocate 'co.aikar.locales', 'games.synx.libs.locales'
relocate ("org.spongepowered.configurate", "games.synx.libs.configurate")
relocate 'io.leangen.geantyref', 'games.synx.libs.geantyref'
relocate 'org.checkerframework', 'games.synx.libs.checkerframework'
exclude('com.google.code.gson:2.8.0')
classifier '' // Replace the default JAR
}
configurations {
provided
compile.extendsFrom provided
compileJava.options.encoding = "UTF-8"
jar.archiveName = rootProject.name + '.jar'
}
reobf {
shadowJar {}
}
jar.finalizedBy('reobfJar')
sponge.plugin.id = 'spongysb'