Commit 2eb8b547 authored by Marco MC's avatar Marco MC

Update build.gradle

parent d1aab4e7
Pipeline #25 failed with stages
buildscript {
repositories {
jcenter()
mavenLocal()
......@@ -14,33 +15,30 @@ buildscript {
}
maven {
name = 'SpongePowered'
name = "SpongePowered"
url = 'http://repo.spongepowered.org/maven'
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
classpath "net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT"
classpath "gradle.plugin.com.matthewprenger:CurseGradle:1.0.10"
classpath "org.spongepowered:mixingradle:0.6-SNAPSHOT"
classpath "com.github.jengelman.gradle.plugins:shadow:1.2.3"
classpath "com.github.jengelman.gradle.plugins:shadow:4.0.4"
}
}
apply plugin: "net.minecraftforge.gradle.forge"
apply plugin: "org.spongepowered.mixin"
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: "java"
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven {
name "Mods"
url "http://dl.tsr.me/artifactory/libs-release/"
}
maven {
name = 'spongepowered-repo'
url = 'http://repo.spongepowered.org/maven/'
......@@ -48,7 +46,7 @@ repositories {
}
version = "b1"
group="net.ccbluex"
group = "net.ccbluex"
archivesBaseName = "LiquidBase"
sourceCompatibility = JavaVersion.VERSION_1_8
......@@ -63,7 +61,7 @@ minecraft {
}
dependencies {
compile("org.spongepowered:mixin:0.6.4-SNAPSHOT") {
compile("org.spongepowered:mixin:0.7.10-SNAPSHOT") {
exclude module: "launchwrapper"
}
}
......@@ -71,7 +69,7 @@ dependencies {
processResources {
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
......@@ -81,41 +79,48 @@ processResources {
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
rename '(.+_at.cfg)', 'META-INF/$1'
}
mixin {
add sourceSets.main, "mixins.liquidbase.refmap.json"
}
shadowJar {
dependencies {
include(dependency('org.spongepowered:mixin'))
}
classifier = 'full'
}
build.dependsOn(shadowJar)
jar {
manifest.attributes(
"MixinConfigs": 'mixins.liquidbase.json',
"tweakClass": 'org.spongepowered.asm.launch.MixinTweaker',
"MixinConfigs": "mixins.liquidbase.json",
"tweakClass": "org.spongepowered.asm.launch.MixinTweaker",
"TweakOrder": 0,
"FMLCorePluginContainsFMLMod": 'net.ccbluex.liquidbase.injection.MixinLoader'
"FMLCorePluginContainsFMLMod": "net.ccbluex.liquidbase.injection.MixinLoader"
)
}
configurations {
mods
shade
compile.extendsFrom shade
}
apply plugin: "idea"
idea {
module {
inheritOutputDirs = true
}
}
\ No newline at end of file
}
shadowJar {
dependencies {
include(dependency('org.spongepowered:mixin'))
}
exclude 'dummyThing'
exclude 'LICENSE.txt'
classifier = ""
}
reobf { shadowJar { mappingType = "SEARGE" } }
tasks.reobfShadowJar.mustRunAfter shadowJar
configurations {
external
compile.extendsFrom external
}
build.dependsOn shadowJar
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment