Repository for GregTech 6
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.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. buildscript {
  2. repositories {
  3. mavenCentral()
  4. maven {
  5. name = "forge"
  6. url = "http://files.minecraftforge.net/maven"
  7. }
  8. maven {
  9. name = "sonatype"
  10. url = "https://oss.sonatype.org/content/repositories/snapshots/"
  11. }
  12. }
  13. dependencies {
  14. classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
  15. }
  16. }
  17. apply plugin: 'forge'
  18. group= "com.gregoriust.gregtech"
  19. archivesBaseName = "gregtech_1.7.10"
  20. version = "6.08.05"
  21. minecraft {
  22. version = "1.7.10-10.13.4.1492-1.7.10"
  23. runDir = "assets"
  24. }
  25. dependencies {
  26. compile fileTree(dir: 'lib', include: '*.jar')
  27. }
  28. repositories {
  29. maven {
  30. name = "gt"
  31. url = "http://gregtech.overminddl1.com/"
  32. }
  33. maven {
  34. name = "forge"
  35. url = "http://files.minecraftforge.net/maven"
  36. }
  37. maven {
  38. name = "ic2"
  39. url = "http://maven.ic2.player.to/"
  40. }
  41. }
  42. processResources {
  43. from(sourceSets.main.resources.srcDirs) {
  44. include 'mcmod.info'
  45. include 'pack.mcmeta'
  46. include 'LICENSE'
  47. include 'COPYING'
  48. include 'COPYING.LESSER'
  49. expand 'version':project.version, 'mcversion':project.minecraft.version
  50. }
  51. from(sourceSets.main.resources.srcDirs) {
  52. exclude 'mcmod.info'
  53. exclude 'pack.mcmeta'
  54. exclude 'LICENSE'
  55. exclude 'COPYING'
  56. exclude 'COPYING.LESSER'
  57. }
  58. }
  59. task wrapper(type: Wrapper) {
  60. gradleVersion = '2.13'
  61. }
  62. task sourceJar(type: Jar) {
  63. manifest {}
  64. classifier = 'sources'
  65. from sourceSets.main.allSource
  66. include 'gregapi/**'
  67. }
  68. task devJar(type: Jar) {
  69. manifest {}
  70. classifier = 'dev'
  71. from sourceSets.main.output
  72. }
  73. task coreJar(type: Jar) {
  74. dependsOn jar
  75. manifest {}
  76. classifier = 'core'
  77. from sourceSets.main.output
  78. exclude('gregtech/**')
  79. }
  80. reobf {
  81. reobf(coreJar) {
  82. spec -> spec.classpath = sourceSets.main.compileClasspath
  83. }
  84. }
  85. artifacts {
  86. archives devJar, sourceJar, coreJar
  87. }
  88. uploadArchives {
  89. repositories {
  90. mavenDeployer {
  91. repository(url: "http://maven.gregtech.overminddl1.com/upload") {
  92. authentication(userName: mavenUsername, password: mavenPassword)
  93. }
  94. pom*.whenConfigured {
  95. pom -> pom.dependencies.clear()
  96. }
  97. }
  98. }
  99. }