Advertisement
Gamebuster

Untitled

Dec 2nd, 2018
517
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. maven { url = "http://files.minecraftforge.net/maven" }
  5. }
  6. dependencies {
  7. classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
  8. }
  9. }
  10. allprojects {
  11. repositories {
  12. mavenLocal()
  13. jcenter()
  14. maven { url "https://jitpack.io" }
  15. }
  16. }
  17.  
  18. apply plugin: 'net.minecraftforge.gradle.forge'
  19. //Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
  20.  
  21.  
  22. version = "0.8.0.0"
  23. group = "com.gamebuster19901.minejoy" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  24. archivesBaseName = "minejoy"
  25.  
  26. sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
  27. compileJava {
  28. sourceCompatibility = targetCompatibility = '1.8'
  29. }
  30.  
  31. minecraft {
  32. version = "1.12.2-14.23.5.2769"
  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 always work.
  39. // simply re-run your setup task after changing the mappings to update your workspace.
  40. mappings = "stable_39"
  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.  
  66. compile 'com.github.williamahartman:Jamepad:1.3'
  67. }
  68.  
  69. processResources {
  70. // this will ensure that this task is redone when the versions change.
  71. inputs.property "version", project.version
  72. inputs.property "mcversion", project.minecraft.version
  73.  
  74. // replace stuff in mcmod.info, nothing else
  75. from(sourceSets.main.resources.srcDirs) {
  76. include 'mcmod.info'
  77.  
  78. // replace version and mcversion
  79. expand 'version':project.version, 'mcversion':project.minecraft.version
  80. }
  81.  
  82. // copy everything else except the mcmod.info
  83. from(sourceSets.main.resources.srcDirs) {
  84. exclude 'mcmod.info'
  85. }
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement