forked from OctoSplash01/ClientBase
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
146 lines (122 loc) · 3.93 KB
/
Copy pathbuild.gradle
File metadata and controls
146 lines (122 loc) · 3.93 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
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
maven {
name = "forge"
url = "https://maven.minecraftforge.net/"
}
maven {
name = "jitpack"
url = "https://jitpack.io/"
}
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://repo.sk1er.club/repository/maven-public" }
}
dependencies {
classpath "com.github.asbyth:ForgeGradle:6f53277"
classpath "com.github.jengelman.gradle.plugins:shadow:6.1.0"
classpath "com.github.xcfrg:MixinGradle:0.6-SNAPSHOT"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0-RC"
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: "kotlin"
apply plugin: 'org.spongepowered.mixin'
version = "1.0.0"
group = "me.octo.client"
archivesBaseName = "ClientBase"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
compileJava.options.encoding = 'UTF-8'
sourceSets {
main {
output.resourcesDir = java.outputDir
}
test {
java {
srcDirs = ["src/test"]
}
}
}
minecraft {
version = "1.8.9-11.15.1.2318-1.8.9"
runDir = "run"
mappings = "stable_22"
makeObfSourceJar = false
replace "@VERSION@": project.version
clientRunArgs += "--mixin mixins.base.json"
clientRunArgs += '--tweakClass gg.essential.loader.stage0.EssentialSetupTweaker'
}
configurations {
embed
implementation.extendsFrom(embed)
}
repositories {
mavenCentral()
maven { url = "https://repo.sk1er.club/repository/maven-public/" }
maven { url = "https://jitpack.io/" }
maven { url = "https://repo.spongepowered.org/repository/maven-public/" }
}
dependencies {
implementation('org.spongepowered:mixin:0.7.11-SNAPSHOT')
annotationProcessor('org.spongepowered:mixin:0.7.11-SNAPSHOT')
implementation 'net.objecthunter:exp4j:0.4.8'
implementation "gg.essential:loader-launchwrapper:1.1.3"
implementation "gg.essential:essential-1.8.9-forge:2666"
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-gradle-plugin', version: '1.8.20'
compileOnly 'org.projectlombok:lombok:1.18.26'
annotationProcessor 'org.projectlombok:lombok:1.18.26'
testCompileOnly 'org.projectlombok:lombok:1.18.26'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.26'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
}
mixin {
add sourceSets.main, "mixins.base.refmap.json"
defaultObfuscationEnv searge
}
jar {
manifest {
attributes(
"FMLCorePluginContainsFMLMod" : true,
"FMLCorePlugin" : "me.octo.client.mixins.MixinLoader",
"ForceLoadAsMod": true,
"ModSide": "CLIENT",
"TweakClass": "gg.essential.loader.stage0.EssentialSetupTweaker",
"TweakOrder": "0",
"MixinConfigs": "mixins.base.json"
)
}
}
shadowJar {
dependencies {
include(dependency("gg.essential:loader-launchwrapper:1.1.3"))
include(dependency("net.objecthunter:exp4j:0.4.8"))
}
archiveFileName = "bin.jar"
}
reobfJar.dependsOn tasks.shadowJar
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'
}
from(file("LICENSE"))
}
reobf {
shadowJar {
classpath = sourceSets.main.compileClasspath
mappingType = 'SEARGE'
}
}
sourceSets { main { output.resourcesDir = java.classesDirectory } }
test {
useJUnitPlatform()
}