Guest User

Untitled

a guest
Oct 5th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.23 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. apply plugin: 'net.minecraftforge.gradle.forge'
  11. //Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
  12.  
  13.  
  14. version = "1.0.0"
  15. group = "doryanb.isotopestudio.wirelessic2.WirelessIC2" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  16. archivesBaseName = "wirelessic2"
  17.  
  18. sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
  19. compileJava {
  20. sourceCompatibility = targetCompatibility = '1.8'
  21. }
  22.  
  23. minecraft {
  24. version = "1.12.2-14.23.5.2768"
  25. runDir = "run"
  26.  
  27. // the mappings can be changed at any time, and must be in the following format.
  28. // snapshot_YYYYMMDD snapshot are built nightly.
  29. // stable_# stables are built at the discretion of the MCP team.
  30. // Use non-default mappings at your own risk. they may not always work.
  31. // simply re-run your setup task after changing the mappings to update your workspace.
  32. mappings = "snapshot_20171003"
  33. // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
  34. }
  35.  
  36. repositories {
  37. maven {
  38. name = "ic2"
  39. url = "http://maven.ic2.player.to/"
  40. }
  41. }
  42.  
  43. dependencies {
  44. // you may put jars on which you depend on in ./libs
  45. // or you may define them like so..
  46. //compile "some.group:artifact:version:classifier"
  47. //compile "some.group:artifact:version"
  48. compile 'net.industrial-craft:industrialcraft-2:2.1.470-experimental:api'
  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. }
  67.  
  68. processResources {
  69. // this will ensure that this task is redone when the versions change.
  70. inputs.property "version", project.version
  71. inputs.property "mcversion", project.minecraft.version
  72.  
  73. // replace stuff in mcmod.info, nothing else
  74. from(sourceSets.main.resources.srcDirs) {
  75. include 'mcmod.info'
  76.  
  77. // replace version and mcversion
  78. expand 'version':project.version, 'mcversion':project.minecraft.version
  79. }
  80.  
  81. // copy everything else except the mcmod.info
  82. from(sourceSets.main.resources.srcDirs) {
  83. exclude 'mcmod.info'
  84. }
  85. }
  86.  
Add Comment
Please, Sign In to add comment