daily pastebin goal
63%
SHARE
TWEET

build.gradle

a guest Dec 25th, 2014 152 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. buildscript {
  2.     repositories {
  3.         mavenCentral()
  4.         maven {
  5.             name = "forge"
  6.             url = "http://files.minecraftforge.net/maven"
  7.         }
  8.         maven {
  9.             name = "sonatype"
  10.             url = "https://oss.sonatype.org/content/repositories/snapshots/"
  11.         }
  12.     }
  13.     dependencies {
  14.         classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
  15.     }
  16. }
  17.  
  18. apply plugin: 'forge'
  19.  
  20. version = "1.0"
  21. group= "firstetestmod.firsttestmodmain" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  22. archivesBaseName = "FTM"
  23.  
  24. minecraft {
  25.     version = "1.7.10-10.13.2.1230"
  26.     runDir = "eclipse"
  27. }
  28.  
  29. dependencies {
  30.     // you may put jars on which you depend on in ./libs
  31.     // or you may define them like so..
  32.     //compile "some.group:artifact:version:classifier"
  33.     //compile "some.group:artifact:version"
  34.      
  35.     // real examples
  36.     //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev'  // adds buildcraft to the dev env
  37.     //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
  38.  
  39.     // for more info...
  40.     // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
  41.     // http://www.gradle.org/docs/current/userguide/dependency_management.html
  42.  
  43. }
  44.  
  45. processResources
  46. {
  47.     // this will ensure that this task is redone when the versions change.
  48.     inputs.property "version", project.version
  49.     inputs.property "mcversion", project.minecraft.version
  50.  
  51.     // replace stuff in mcmod.info, nothing else
  52.     from(sourceSets.main.resources.srcDirs) {
  53.         include 'mcmod.info'
  54.                
  55.         // replace version and mcversion
  56.         expand 'version':project.version, 'mcversion':project.minecraft.version
  57.     }
  58.        
  59.     // copy everything else, thats not the mcmod.info
  60.     from(sourceSets.main.resources.srcDirs) {
  61.         exclude 'mcmod.info'
  62.     }
  63. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top