-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
100 lines (89 loc) · 3.59 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
buildscript {
ext.kotlin_version = '1.3.72'
repositories {
mavenCentral()
maven { url = 'https://maven.minecraftforge.net/' }
maven { url = "http://repo.spongepowered.org/maven" }
maven { url = "https://dist.creeper.host/Sponge/maven" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:3.+'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.1"
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
}
}
def mixinLoader = 'org.spongepowered.asm.launch.MixinTweaker'
//def mixinLoader = 'inc.bbra.exploit.mixin.BBraMixinLoader'
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'kotlin'
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'org.spongepowered.mixin'
apply plugin: 'com.github.johnrengelman.shadow'
version = '0.3'
group = 'inc.bbra.exploit'
archivesBaseName = 'BBraExploit'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
minecraft {
mappings channel: 'stable', version: "39-1.12"
runs {
client {
workingDirectory project.file('run')
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
args '--tweakClass', mixinLoader, '--mixin', 'mixins.bbra.json'
}
server {
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
args '--tweakClass', mixinLoader, '--mixin', 'mixins.bbra.json'
}
}
}
dependencies {
minecraft 'net.minecraftforge:forge:1.12.2-14.23.5.2860'
implementation 'org.spongepowered:mixin:0.8.5'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.1"
////////////////////JSON
implementation "com.googlecode.json-simple:json-simple:1.1.1"
implementation "com.google.code.gson:gson:2.7"
//////////////////// Discord rpc
implementation 'club.minnced:java-discord-rpc:2.0.2'
}
sourceSets {
main {
refMap = "mixins.bbra.refmap.json"
}
}
jar {
manifest {
attributes([
"Implementation-Title" : project.name,
"Implementation-Version" : project.version,
"TweakClass" : mixinLoader,
"MixinConfigs" : "mixins.bbra.json", // Конфигурации миксинов, через зяпятую если их несколько
"FMLCorePluginContainsFMLMod": "true", // Не забываем указать эти два флага,
"ForceLoadAsMod" : "true", // чтобы Forge нормально загрузил и мод, и миксины
"Implementation-Timestamp" : new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
repositories {
maven { url = 'https://maven.minecraftforge.net/' }
maven { url = "http://repo.spongepowered.org/maven" }
maven { url = "https://dist.creeper.host/Sponge/maven" }
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}