summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2015-04-23 19:56:39 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2015-04-23 19:56:39 +0100
commit4c3486bbb0663f30f521ec72bbcc9379978e2dad (patch)
treeb71fd2c18a3cf9f287b59f8bd6a38b0d2f8eeca2 /build.gradle
parent86944c5f99a2388c4b05a2769d757ec077028d88 (diff)
downloadkinniutils-4c3486bbb0663f30f521ec72bbcc9379978e2dad.tar.bz2
Initial bits
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle63
1 files changed, 63 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..1e64259
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,63 @@
+buildscript {
+ repositories {
+ mavenCentral()
+ maven {
+ name = "forge"
+ url = "http://files.minecraftforge.net/maven"
+ }
+ maven {
+ name = "sonatype"
+ url = "https://oss.sonatype.org/content/repositories/snapshots/"
+ }
+ }
+ dependencies {
+ classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
+ }
+}
+
+apply plugin: 'forge'
+
+version = "1.7.10-0.0.1"
+group= "net.flarn.antipp"
+archivesBaseName = "antipp"
+
+minecraft {
+ version = "1.7.10-10.13.2.1230"
+ runDir = "eclipse"
+}
+
+dependencies {
+ // you may put jars on which you depend on in ./libs
+ // or you may define them like so..
+ //compile "some.group:artifact:version:classifier"
+ //compile "some.group:artifact:version"
+
+ // real examples
+ //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
+ //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
+
+ // for more info...
+ // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
+ // http://www.gradle.org/docs/current/userguide/dependency_management.html
+
+}
+
+processResources
+{
+ // this will ensure that this task is redone when the versions change.
+ inputs.property "version", project.version
+ inputs.property "mcversion", project.minecraft.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
+ }
+
+ // copy everything else, thats not the mcmod.info
+ from(sourceSets.main.resources.srcDirs) {
+ exclude 'mcmod.info'
+ }
+}