Advertisement
Guest User

Untitled

a guest
Nov 4th, 2015
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  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= "org.kwantakosta.shopmod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  22. archivesBaseName = "shopmod"
  23.  
  24. minecraft {
  25. version = "1.8-11.14.3.1450"
  26. runDir = "eclipse"
  27.  
  28. // the mappings can be changed at any time, and must be in the following format.
  29. // snapshot_YYYYMMDD snapshot are built nightly.
  30. // stable_# stables are built at the discretion of the MCP team.
  31. // Use non-default mappings at your own risk. they may not allways work.
  32. // simply re-run your setup task after changing the mappings to update your workspace.
  33. mappings = "snapshot_20141130"
  34. }
  35.  
  36. dependencies {
  37. // you may put jars on which you depend on in ./libs
  38. // or you may define them like so..
  39. //compile "some.group:artifact:version:classifier"
  40. //compile "some.group:artifact:version"
  41.  
  42. // real examples
  43. //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
  44. //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
  45.  
  46. // for more info...
  47. // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
  48. // http://www.gradle.org/docs/current/userguide/dependency_management.html
  49.  
  50. }
  51.  
  52. processResources
  53. {
  54. // this will ensure that this task is redone when the versions change.
  55. inputs.property "version", project.version
  56. inputs.property "mcversion", project.minecraft.version
  57.  
  58. // replace stuff in mcmod.info, nothing else
  59. from(sourceSets.main.resources.srcDirs) {
  60. include 'mcmod.info'
  61.  
  62. // replace version and mcversion
  63. expand 'version':project.version, 'mcversion':project.minecraft.version
  64. }
  65.  
  66. // copy everything else, thats not the mcmod.info
  67. from(sourceSets.main.resources.srcDirs) {
  68. exclude 'mcmod.info'
  69. }
  70. }
  71. idea { module { inheritOutputDirs = true } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement