|
@@ -1,25 +1,34 @@
|
|
buildscript {
|
|
buildscript {
|
|
repositories {
|
|
repositories {
|
|
maven { url = 'https://files.minecraftforge.net/maven' }
|
|
maven { url = 'https://files.minecraftforge.net/maven' }
|
|
|
|
+ maven { url = 'https://repo.spongepowered.org/maven' }
|
|
jcenter()
|
|
jcenter()
|
|
mavenCentral()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
dependencies {
|
|
dependencies {
|
|
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
|
|
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
|
|
|
|
+ classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
apply plugin: 'net.minecraftforge.gradle'
|
|
apply plugin: 'net.minecraftforge.gradle'
|
|
-// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
|
|
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'maven-publish'
|
|
apply plugin: 'maven-publish'
|
|
|
|
+apply plugin: 'org.spongepowered.mixin'
|
|
|
|
+
|
|
|
|
|
|
-version = '2.0.0'
|
|
|
|
|
|
+version = '2.0.1'
|
|
group = 'mod.adrenix.oldswing' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
|
group = 'mod.adrenix.oldswing' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
|
archivesBaseName = 'oldswing'
|
|
archivesBaseName = 'oldswing'
|
|
|
|
|
|
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
|
|
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
|
|
|
|
|
|
println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
|
|
println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
|
|
|
|
+
|
|
|
|
+mixin {
|
|
|
|
+ add sourceSets.main, "oldswing.refmap.json"
|
|
|
|
+}
|
|
|
|
+
|
|
minecraft {
|
|
minecraft {
|
|
// The mappings can be changed at any time, and must be in the following format.
|
|
// The mappings can be changed at any time, and must be in the following format.
|
|
// snapshot_YYYYMMDD Snapshot are built nightly.
|
|
// snapshot_YYYYMMDD Snapshot are built nightly.
|
|
@@ -36,6 +45,7 @@ minecraft {
|
|
runs {
|
|
runs {
|
|
client {
|
|
client {
|
|
workingDirectory project.file('run')
|
|
workingDirectory project.file('run')
|
|
|
|
+ arg '-mixin.config=oldswing.mixins.json'
|
|
|
|
|
|
// Recommended logging data for a userdev environment
|
|
// Recommended logging data for a userdev environment
|
|
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
|
|
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
|
|
@@ -118,18 +128,21 @@ jar {
|
|
attributes([
|
|
attributes([
|
|
"Specification-Title": "oldswing",
|
|
"Specification-Title": "oldswing",
|
|
"Specification-Vendor": "mod.adrenix.oldswing",
|
|
"Specification-Vendor": "mod.adrenix.oldswing",
|
|
- "Specification-Version": "2.0.0", // We are version 1 of ourselves
|
|
|
|
|
|
+ "Specification-Version": "2.0.0",
|
|
"Implementation-Title": project.name,
|
|
"Implementation-Title": project.name,
|
|
"Implementation-Version": "${version}",
|
|
"Implementation-Version": "${version}",
|
|
"Implementation-Vendor" :"mod.adrenix.oldswing",
|
|
"Implementation-Vendor" :"mod.adrenix.oldswing",
|
|
- "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
|
|
|
|
|
|
+ "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
|
|
|
|
+ "TweakClass": "org.spongepowered.asm.launch.MixinTweaker",
|
|
|
|
+ "MixinConfigs": "oldswing.mixins.json",
|
|
|
|
+ "FMLCorePluginContainsFMLMod": "true",
|
|
])
|
|
])
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
// Example configuration to allow publishing using the maven-publish task
|
|
// Example configuration to allow publishing using the maven-publish task
|
|
// This is the preferred method to reobfuscate your jar file
|
|
// This is the preferred method to reobfuscate your jar file
|
|
-jar.finalizedBy('reobfJar')
|
|
|
|
|
|
+jar.finalizedBy('reobfJar')
|
|
// However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing
|
|
// However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing
|
|
//publish.dependsOn('reobfJar')
|
|
//publish.dependsOn('reobfJar')
|
|
|
|
|