Advertisement
Guest User

build.gradle

a guest
Aug 31st, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 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. }
  11. dependencies {
  12. classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
  13. }
  14. }
  15. apply plugin: 'net.minecraftforge.gradle.forge'
  16.  
  17. /*
  18. // for people who want stable - not yet functional for MC 1.8.8 - we require the forgegradle 2.1 snapshot
  19. plugins {
  20. id "net.minecraftforge.gradle.forge" version "2.0.2"
  21. }
  22. */
  23. version = "1.0"
  24. group= "ajb.rituality" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  25. archivesBaseName = "rituality"
  26.  
  27. minecraft {
  28. version = "1.10.2-12.18.1.2011"
  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_20160518"
  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. }
  83. repositories {
  84. maven {
  85. url "http://maven.ilexiconn.net/"
  86. }
  87. }
  88.  
  89. dependencies {
  90. compile "net.ilexiconn:llibrary:1.5.1-1.10.2:dev"
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement