forensicscience

git clone git://archive.git.mtrnord.blog/MTRNord/forensicscience.git
Log | Files | Refs | README

build.gradle (1633B)


      1 buildscript {
      2     repositories {
      3         jcenter()
      4         maven {
      5             name = "forge"
      6             url = "https://files.minecraftforge.net/maven"
      7         }
      8     }
      9     dependencies {
     10         classpath "net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT"
     11     }
     12 }
     13 
     14 apply plugin: "net.minecraftforge.gradle.forge"
     15 
     16 version = modVersion
     17 group = modGroup
     18 archivesBaseName = modBaseName
     19 
     20 minecraft {
     21     version = project.forgeVersion
     22     runDir = "run"
     23 
     24     // the mappings can be changed at any time, and must be in the following format.
     25     // snapshot_YYYYMMDD   snapshot are built nightly.
     26     // stable_#            stables are built at the discretion of the MCP team.
     27     // Use non-default mappings at your own risk. they may not always work.
     28     // simply re-run your setup task after changing the mappings to update your workspace.
     29     mappings = project.mcpVersion
     30     // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
     31 }
     32 
     33 repositories {
     34     mavenCentral()
     35 }
     36 
     37 dependencies {
     38 }
     39 
     40 processResources {
     41     // this will ensure that this task is redone when the versions change.
     42     inputs.property "version", project.version
     43     inputs.property "mcversion", project.minecraft.version
     44 
     45     // replace stuff in mcmod.info, nothing else
     46     from(sourceSets.main.resources.srcDirs) {
     47         include "mcmod.info"
     48 
     49         // replace version and mcversion
     50         expand "version": project.version, "mcversion": project.minecraft.version
     51     }
     52 
     53     // copy everything else, thats not the mcmod.info
     54     from(sourceSets.main.resources.srcDirs) {
     55         exclude "mcmod.info"
     56     }
     57 }