updating build.gradle
This commit is contained in:
@@ -2,24 +2,41 @@ buildscript {
|
||||
repositories {
|
||||
jcenter()
|
||||
maven { url = "http://files.minecraftforge.net/maven" }
|
||||
|
||||
}
|
||||
dependencies {
|
||||
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
repositories {
|
||||
|
||||
maven {
|
||||
|
||||
name = "primal"
|
||||
|
||||
url "http://maven.nmd.so"
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
apply plugin: 'net.minecraftforge.gradle.forge'
|
||||
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
|
||||
|
||||
|
||||
version = "1.0"
|
||||
group = "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
archivesBaseName = "modid"
|
||||
|
||||
sourceCompatibility = targetCompatibility = "1.6" // Need this here so eclipse task generates correctly.
|
||||
sourceCompatibility = targetCompatibility = "1.8" // Need this here so eclipse task generates correctly.
|
||||
compileJava {
|
||||
sourceCompatibility = targetCompatibility = "1.6"
|
||||
sourceCompatibility = targetCompatibility = "1.8"
|
||||
}
|
||||
|
||||
group = "${mod_group}"
|
||||
|
||||
version = "${mod_version}"
|
||||
|
||||
archivesBaseName = "${mod_name}"
|
||||
|
||||
minecraft {
|
||||
version = "1.11-13.19.1.2199"
|
||||
runDir = "run"
|
||||
@@ -55,23 +72,44 @@ dependencies {
|
||||
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
|
||||
// http://www.gradle.org/docs/current/userguide/dependency_management.html
|
||||
|
||||
deobfCompile "nmd.primal.core:PrimalCore:${primal_version}:dev"
|
||||
|
||||
runtime "nmd.primal.core:PrimalCore:${primal_version}"
|
||||
|
||||
}
|
||||
|
||||
processResources {
|
||||
|
||||
// this will ensure that this task is redone when the versions change.
|
||||
inputs.property "version", project.version
|
||||
inputs.property "mcversion", project.minecraft.version
|
||||
|
||||
inputs.property "version", "${mod_version}"
|
||||
|
||||
inputs.property "mcversion", "${mc_version}"
|
||||
|
||||
|
||||
|
||||
// replace stuff in mcmod.info, nothing else
|
||||
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
|
||||
include 'mcmod.info'
|
||||
|
||||
|
||||
|
||||
|
||||
// replace version and mcversion
|
||||
expand 'version':project.version, 'mcversion':project.minecraft.version
|
||||
|
||||
expand 'version':"${mod_version}", 'mcversion':"${mc_version}"
|
||||
|
||||
}
|
||||
|
||||
// copy everything else except the mcmod.info
|
||||
|
||||
|
||||
|
||||
// copy everything else, thats not the mcmod.info
|
||||
|
||||
from(sourceSets.main.resources.srcDirs) {
|
||||
|
||||
exclude 'mcmod.info'
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user