Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.97 KB | None | 0 0
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. maven { url = "http://files.minecraftforge.net/maven" }
  5. maven { url "https://plugins.gradle.org/m2/" }
  6. }
  7. dependencies {
  8. classpath "com.wynprice.cursemaven:CurseMaven:1.2.3"
  9. classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
  10. }
  11. }
  12. apply plugin: "com.wynprice.cursemaven"
  13. apply plugin: 'net.minecraftforge.gradle.forge'
  14.  
  15. version = "0.1"
  16. group = "wolforce.pristeel"
  17. // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  18. archivesBaseName = "pristeel"
  19.  
  20. sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
  21. compileJava {
  22. sourceCompatibility = targetCompatibility = '1.8'
  23. }
  24.  
  25. minecraft {
  26. version = "1.12.2-14.23.5.2816"
  27. runDir = "run"
  28.  
  29. // the mappings can be changed at any time, and must be in the following format.
  30. // snapshot_YYYYMMDD snapshot are built nightly.
  31. // stable_# stables are built at the discretion of the MCP team.
  32. // Use non-default mappings at your own risk. they may not always work.
  33. // simply re-run your setup task after changing the mappings to update your workspace.
  34. mappings = "snapshot_20171003"
  35. // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
  36. }
  37.  
  38. repositories {
  39. maven { url "http://dvs1.progwml6.com/files/maven" }
  40. maven { url 'http://maven.blamejared.com' }
  41. maven { url 'https://jitpack.io' }
  42. }
  43.  
  44. dependencies {
  45.  
  46. deobfCompile curse.resolve("mechanics-crafting-ways", 2739922)
  47. //deobfCompile 'com.github.wolforcept:mechanics:mechanics'
  48.  
  49. //compile 'cofhcore:CoFHCore-1.10.2:release:universal'
  50. //compile 'mechanics-crafting-ways:mechanics-0.2.1'
  51.  
  52. //compileOnly name: 'mechanics-0.2.1'
  53.  
  54. //compile files('C:/agames/mavenrepo/mechanics-0.2.1/mechanics-0.2.1-.jar')
  55.  
  56. //deobfCompile "astral-sorcery:AstralSorcery:1.12.2:1.10.20"
  57. //deobfCompile "mechanics-crafting-ways:mechanics:0.2.1"
  58.  
  59. //provided "mechanics-crafting-ways:mechanics:1.12.2:0.2.1"
  60. //deobfCompile "mechanics-crafting-ways:mechanics:1.12.2:0.2.1"
  61.  
  62. deobfCompile "mezz.jei:jei_1.12.2:+"
  63. deobfCompile "CraftTweaker2:CraftTweaker2-MC1120-Main:1.12-4.+"
  64.  
  65. // you may put jars on which you depend on in ./libs
  66. // or you may define them like so..
  67. //compile "some.group:artifact:version:classifier"
  68. //compile "some.group:artifact:version"
  69.  
  70. // real examples
  71. //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
  72. //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
  73.  
  74. // the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
  75. //provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  76.  
  77. // the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided,
  78. // except that these dependencies get remapped to your current MCP mappings
  79. //deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  80. //deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
  81.  
  82. // for more info...
  83. // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
  84. // http://www.gradle.org/docs/current/userguide/dependency_management.html
  85.  
  86. }
  87.  
  88. processResources {
  89. // this will ensure that this task is redone when the versions change.
  90. inputs.property "version", project.version
  91. inputs.property "mcversion", project.minecraft.version
  92.  
  93. // replace stuff in mcmod.info, nothing else
  94. from(sourceSets.main.resources.srcDirs) {
  95. include 'mcmod.info'
  96.  
  97. // replace version and mcversion
  98. expand 'version':project.version, 'mcversion':project.minecraft.version
  99. }
  100.  
  101. // copy everything else except the mcmod.info
  102. from(sourceSets.main.resources.srcDirs) {
  103. exclude 'mcmod.info'
  104. }
  105. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement