mirror of
https://github.com/Motschen/Blur.git
synced 2025-12-15 19:25:09 +01:00
55 lines
1.4 KiB
Groovy
55 lines
1.4 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url = "http://files.minecraftforge.net/maven" }
|
|
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
|
|
}
|
|
dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT' }
|
|
}
|
|
|
|
apply plugin: 'net.minecraftforge.gradle.forge'
|
|
|
|
group = 'com.tterrag.blurbg'
|
|
archivesBaseName = "BlurBG"
|
|
version = "MC${minecraft_version}-${mod_version}-${System.getenv().BUILD_NUMBER}"
|
|
|
|
sourceCompatibility = '1.8'
|
|
targetCompatibility = '1.8'
|
|
|
|
minecraft {
|
|
version = "${minecraft_version}-${forge_version}"
|
|
mappings = 'stable_29'
|
|
|
|
runDir = 'run'
|
|
|
|
clientJvmArgs += '-Dfml.coreMods.load=com.tterrag.blur.BlurPlugin'
|
|
|
|
replace "@VERSION@", project.version
|
|
}
|
|
|
|
processResources {
|
|
inputs.property "version", project.version
|
|
inputs.property "mcversion", project.minecraft.version
|
|
|
|
// replace stuff in mcmod.info, nothing else
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
include '**/*.info'
|
|
include '**/*.properties'
|
|
|
|
// replace version and mcversion
|
|
expand 'version': project.version, 'mcversion': project.minecraft.version
|
|
}
|
|
|
|
// copy everything else, thats not the mcmod.info
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
exclude '**/*.info'
|
|
exclude '**/*.properties'
|
|
}
|
|
}
|
|
|
|
jar.manifest {
|
|
attributes 'FMLCorePlugin': 'com.tterrag.blur.BlurPlugin'
|
|
attributes 'FMLCorePluginContainsFMLMod': 'true'
|
|
}
|
|
|