This repository was archived by the owner on Feb 23, 2024. It is now read-only.
forked from cdc12345/PridePlus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
174 lines (136 loc) · 4.28 KB
/
build.gradle
File metadata and controls
174 lines (136 loc) · 4.28 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
version = "Dev Build"
group = "PridePluscn.cf"
subprojects {
version = "Dev Build"
group = "PridePluscn.cf"
}
buildscript {
// The current Gradle version 4.9 is not compatible with the Kotlin Gradle plugin.
// ext.kotlin_version = '1.4.21'
ext.kotlin_version = '1.3.72'
repositories {
jcenter()
mavenLocal()
mavenCentral()
maven { url 'https://maven.minecraftforge.net/' }
maven { url 'https://plugins.gradle.org/m2' }
maven { url 'https://repo.spongepowered.org/maven' }
}
dependencies {
classpath group: 'org.jetbrains.kotlin', name: 'kotlin-gradle-plugin', version: kotlin_version
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
classpath "gradle.plugin.com.matthewprenger:CurseGradle:1.0.10"
classpath "org.spongepowered:mixingradle:0.6-SNAPSHOT"
classpath group: 'com.github.jengelman.gradle.plugins', name: 'shadow', version: '4.0.4'
}
}
// Languages
apply plugin: 'java'
apply plugin: 'kotlin'
// IDE
apply plugin: 'idea'
// Minecraft
apply plugin: "net.minecraftforge.gradle.forge"
apply plugin: "org.spongepowered.mixin"
// Jar packaging
apply plugin: 'com.github.johnrengelman.shadow'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
compileJava.options.encoding = 'UTF-8'
sourceSets {
main.java.srcDirs += 'src/main/java'
// main.java.srcDirs += '../shared/main/java'
main.resources.srcDirs += 'src/main/resources'
}
compileKotlin {
kotlinOptions {
jvmTarget = '1.8'
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = '1.8'
}
}
idea {
module {
inheritOutputDirs = true
}
}
archivesBaseName = 'PridePlus'
minecraft {
version = "1.12.2-14.23.5.2768"
runDir = 'run'
mappings = "snapshot_20171003"
makeObfSourceJar = true
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url 'https://jitpack.io' }
maven { url 'https://repo.spongepowered.org/maven/' }
}
dependencies {
compile("org.spongepowered:mixin:0.8") {
exclude module: "launchwrapper"
}
compile 'com.jagrosh:DiscordIPC:0.4'
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version: kotlin_version
implementation group: 'org.yaml', name: 'snakeyaml', version: '2.2'
implementation('commons-io:commons-io') {
version {build
strictly '2.5'
}
}
compile fileTree(include: ['*.jar'], dir: 'libs')
}
processResources {
inputs.property 'version', project.version
inputs.property 'mcversion', project.minecraft.version
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
expand 'version':project.version, 'mcversion':project.minecraft.version
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
rename '(.+_at.cfg)', 'META-INF/$1'
}
mixin {
add sourceSets.main, 'liquidbounce.mixins.refmap.json'
}
jar {
manifest.attributes(
'MixinConfigs': 'liquidbounce.forge.mixins.json',
'tweakClass': 'org.spongepowered.asm.launch.MixinTweaker',
'TweakOrder': 0,
'FMLCorePluginContainsFMLMod': 'net.ccbluex.liquidbounce.injection.forge.MixinLoader',
'FMLCorePlugin': 'net.ccbluex.liquidbounce.injection.forge.TransformerLoader',
'FMLAT': 'liquidbounce_at.cfg',
'Manifest-Version': 1.0,
'Main-Class': 'net.ccbluex.liquidinstruction.LiquidInstructionKt'
)
}
shadowJar {
dependencies {
include(dependency('org.spongepowered:mixin'))
include(dependency('com.jagrosh:DiscordIPC'))
include(dependency('org.slf4j:slf4j-api'))
include(dependency('log4j:log4j:2.0'))
include(dependency('org.scijava:native-lib-loader'))
include(dependency('com.kohlschutter.junixsocket:junixsocket-common'))
include(dependency('com.kohlschutter.junixsocket:junixsocket-native-common'))
include(dependency('org.jetbrains.kotlin:kotlin-stdlib'))
}
exclude 'dummyThing'
exclude 'LICENSE.txt'
classifier = ''
}
reobf { shadowJar { mappingType = 'SEARGE' } }
tasks.reobfShadowJar.mustRunAfter shadowJar
configurations {
external
compile.extendsFrom external
}
build.dependsOn shadowJar