Advertisement
Guest User

Untitled

a guest
Feb 18th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 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.1"
  15. group = "com.TheRPGAdventurer.ROTD" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  16. archivesBaseName = "Realm Of The Dragons 1.12 version 1.2 (TheRPGAdventurer)"
  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-14.21.1.2443"
  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_20170624"
  33. // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
  34. }
  35.  
  36. repositories {
  37. maven {
  38. url "https://maven.mcmoddev.com/"
  39. }
  40. }
  41.  
  42. dependencies {
  43. compile "net.ilexiconn:llibrary:1.7.9-1.12:dev"
  44. }
  45.  
  46. processResources {
  47. // this will ensure that this task is redone when the versions change.
  48. inputs.property "version", project.version
  49. inputs.property "mcversion", project.minecraft.version
  50.  
  51. // replace stuff in mcmod.info, nothing else
  52. from(sourceSets.main.resources.srcDirs) {
  53. include 'mcmod.info'
  54.  
  55. // replace version and mcversion
  56. expand 'version':project.version, 'mcversion':project.minecraft.version
  57. }
  58.  
  59. // copy everything else except the mcmod.info
  60. from(sourceSets.main.resources.srcDirs) {
  61. exclude 'mcmod.info'
  62. }
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement