Orbis is a new tool and platform being developed by Gilded Games. It will allow both us and the community to develop structures with procedurally generated elements much easier, and implement them into our projects.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. buildscript {
  2. repositories {
  3. jcenter()
  4. maven {
  5. name = "forge"
  6. url = "http://files.minecraftforge.net/maven"
  7. }
  8. }
  9. dependencies {
  10. classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
  11. }
  12. }
  13. apply plugin: 'net.minecraftforge.gradle.forge'
  14. allprojects {
  15. sourceCompatibility = 1.8
  16. targetCompatibility = 1.8
  17. }
  18. version = "${mod_version}"
  19. group = "com.gildedgames"
  20. archivesBaseName = "orbis"
  21. repositories {
  22. mavenCentral()
  23. maven {
  24. url "http://dvs1.progwml6.com/files/maven"
  25. }
  26. }
  27. dependencies {
  28. deobfProvided "mezz.jei:jei_1.12.2:4.14.4.257:api"
  29. runtime "mezz.jei:jei_1.12.2:4.14.4.257"
  30. compile project(":OrbisLib")
  31. }
  32. jar {
  33. dependsOn(':OrbisLib:build')
  34. from sourceSets.main.output
  35. manifest {
  36. attributes 'ContainedDeps': "${project(":OrbisLib").mod_name}-${project(":OrbisLib").mod_version}.jar"
  37. }
  38. from("OrbisLib/build/libs") {
  39. include("${project(":OrbisLib").mod_name}-${project(":OrbisLib").mod_version}.jar")
  40. }
  41. classifier = 'universal'
  42. }
  43. minecraft {
  44. version = forge_version
  45. mappings = forge_mappings
  46. runDir = "run"
  47. }
  48. processResources {
  49. inputs.property "version", project.version
  50. inputs.property "mcversion", project.minecraft.version
  51. from (sourceSets.main.resources.srcDirs) {
  52. include 'mcmod.info'
  53. expand 'version': project.version, 'mcversion': project.minecraft.version
  54. }
  55. from (sourceSets.main.resources.srcDirs) {
  56. exclude 'mcmod.info'
  57. }
  58. }
  59. idea {
  60. module {
  61. inheritOutputDirs = true
  62. }
  63. }
  64. // We disable this because Gradle will fail to build otherwise for some reason.
  65. // See https://github.com/MinecraftForge/Srg2Source/issues/10
  66. minecraft {
  67. makeObfSourceJar = false
  68. }
  69. task jarNoEmbed(type: Jar) {
  70. dependsOn(':OrbisLib:build')
  71. from sourceSets.main.output
  72. classifier = 'noembed'
  73. }
  74. artifacts {
  75. archives jar
  76. archives jarNoEmbed
  77. }
  78. task signJar(type: SignJar, dependsOn: reobfJar) {
  79. keyStore = System.getenv('GG_SIGN_KEYSTORE')
  80. alias = System.getenv('GG_SIGN_ALIAS')
  81. storePass = System.getenv('GG_SIGN_STORE_PASS')
  82. keyPass = System.getenv('GG_SIGN_KEY_PASS')
  83. inputFile = jar.archivePath
  84. outputFile = jar.archivePath
  85. }
  86. if (System.getenv("GRADLE_BUILD_SIGNED") == 'true') {
  87. build.dependsOn signJar
  88. }