Advertisement
akSource

1.8.8で動いたやつ

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