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.

112 lines
2.2 KiB

  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. // location of a maven mirror for JEI files, as a fallback
  25. name = "ModMaven"
  26. url = "https://modmaven.k-4u.nl"
  27. }
  28. }
  29. dependencies {
  30. deobfProvided "mezz.jei:jei_1.12.2:4.15.0.292:api"
  31. runtime "mezz.jei:jei_1.12.2:4.15.0.292"
  32. compile project(":OrbisLib")
  33. }
  34. jar {
  35. dependsOn(':OrbisLib:build')
  36. from sourceSets.main.output
  37. manifest {
  38. attributes 'ContainedDeps': "${project(":OrbisLib").mod_name}-${project(":OrbisLib").mod_version}.jar"
  39. }
  40. from("OrbisLib/build/libs") {
  41. include("${project(":OrbisLib").mod_name}-${project(":OrbisLib").mod_version}.jar")
  42. }
  43. classifier = 'universal'
  44. }
  45. minecraft {
  46. version = forge_version
  47. mappings = forge_mappings
  48. runDir = "run"
  49. }
  50. processResources {
  51. inputs.property "version", project.version
  52. inputs.property "mcversion", project.minecraft.version
  53. from (sourceSets.main.resources.srcDirs) {
  54. include 'mcmod.info'
  55. expand 'version': project.version, 'mcversion': project.minecraft.version
  56. }
  57. from (sourceSets.main.resources.srcDirs) {
  58. exclude 'mcmod.info'
  59. }
  60. }
  61. idea {
  62. module {
  63. inheritOutputDirs = true
  64. }
  65. }
  66. // We disable this because Gradle will fail to build otherwise for some reason.
  67. // See https://github.com/MinecraftForge/Srg2Source/issues/10
  68. minecraft {
  69. makeObfSourceJar = false
  70. }
  71. task jarNoEmbed(type: Jar) {
  72. dependsOn(':OrbisLib:build')
  73. from sourceSets.main.output
  74. classifier = 'noembed'
  75. }
  76. artifacts {
  77. archives jar
  78. archives jarNoEmbed
  79. }
  80. task signJar(type: SignJar, dependsOn: reobfJar) {
  81. keyStore = System.getenv('GG_SIGN_KEYSTORE')
  82. alias = System.getenv('GG_SIGN_ALIAS')
  83. storePass = System.getenv('GG_SIGN_STORE_PASS')
  84. keyPass = System.getenv('GG_SIGN_KEY_PASS')
  85. inputFile = jar.archivePath
  86. outputFile = jar.archivePath
  87. }
  88. if (System.getenv("GRADLE_BUILD_SIGNED") == 'true') {
  89. build.dependsOn signJar
  90. }