Advertisement
Guest User

Untitled

a guest
Sep 20th, 2016
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.32 KB | None | 0 0
  1.  
  2. // For those who want the bleeding edge
  3. buildscript {
  4.     repositories {
  5.         jcenter()
  6.         maven {
  7.             name = "forge"
  8.             url = "http://files.minecraftforge.net/maven"
  9.         }
  10.         maven{
  11.             name "Mobius Repo"
  12.             url "http://mobiusstrip.eu/maven"
  13.         }
  14.     }
  15.     dependencies {
  16.         classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
  17.     }
  18. }
  19. apply plugin: 'net.minecraftforge.gradle.forge'
  20.  
  21. /*
  22. // for people who want stable - not yet functional for MC 1.8.8 - we require the forgegradle 2.1 snapshot
  23. plugins {
  24.     id "net.minecraftforge.gradle.forge" version "2.0.2"
  25. }
  26. */
  27. version = "1.0"
  28. group= "com.TankCMod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  29. archivesBaseName = "TankCMod"
  30.  
  31. minecraft {
  32.     version = "1.10.2 - 12.18.1.2092"
  33.     runDir = "run"
  34.  
  35.     // the mappings can be changed at any time, and must be in the following format.
  36.     // snapshot_YYYYMMDD   snapshot are built nightly.
  37.     // stable_#            stables are built at the discretion of the MCP team.
  38.     // Use non-default mappings at your own risk. they may not allways work.
  39.     // simply re-run your setup task after changing the mappings to update your workspace.
  40.     mappings = "snapshot_20160918"
  41.     // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
  42. }
  43.  
  44. dependencies {
  45.     // you may put jars on which you depend on in ./libs
  46.     // or you may define them like so..
  47.     //compile "some.group:artifact:version:classifier"
  48.     //compile "some.group:artifact:version"
  49.  
  50.     // real examples
  51.     //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev'  // adds buildcraft to the dev env
  52.     //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
  53.  
  54.     // the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
  55.     //provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  56.  
  57.     // the deobf configurations:  'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided,
  58.     // except that these dependencies get remapped to your current MCP mappings
  59.     //deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  60.     //deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  61.  
  62.     // for more info...
  63.     // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
  64.     // http://www.gradle.org/docs/current/userguide/dependency_management.html
  65.     deobfCompile "mcp.mobius.waila:Waila:1.7.0-B3_1.9.4"
  66.     deobfCompile "mezz.jei:jei_1.10.2:3.7.8.234"
  67. }
  68.  
  69. processResources
  70.         {
  71.             // this will ensure that this task is redone when the versions change.
  72.             inputs.property "version", project.version
  73.             inputs.property "mcversion", project.minecraft.version
  74.  
  75.             // replace stuff in mcmod.info, nothing else
  76.             from(sourceSets.main.resources.srcDirs) {
  77.                 include 'mcmod.info'
  78.  
  79.                 // replace version and mcversion
  80.                 expand 'version':project.version, 'mcversion':project.minecraft.version
  81.             }
  82.  
  83.             // copy everything else, thats not the mcmod.info
  84.             from(sourceSets.main.resources.srcDirs) {
  85.                 exclude 'mcmod.info'
  86.             }
  87.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement