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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. }
  55. }
  56. task wrapper(type: Wrapper) {
  57. gradleVersion = '2.13'
  58. }
  59. task sourceJar(type: Jar) {
  60. manifest {}
  61. classifier = 'sources'
  62. from sourceSets.main.allSource
  63. include 'gregapi/**'
  64. }
  65. task devJar(type: Jar) {
  66. manifest {}
  67. classifier = 'dev'
  68. from sourceSets.main.output
  69. }
  70. task coreJar(type: Jar) {
  71. dependsOn jar
  72. manifest {}
  73. classifier = 'core'
  74. from sourceSets.main.output
  75. exclude('gregtech/**')
  76. }
  77. reobf {
  78. reobf(coreJar) {
  79. spec -> spec.classpath = sourceSets.main.compileClasspath
  80. }
  81. }
  82. artifacts {
  83. archives devJar, sourceJar, coreJar
  84. }
  85. uploadArchives {
  86. repositories {
  87. mavenDeployer {
  88. repository(url: "http://maven.gregtech.overminddl1.com/upload") {
  89. authentication(userName: mavenUsername, password: mavenPassword)
  90. }
  91. pom*.whenConfigured {
  92. pom -> pom.dependencies.clear()
  93. }
  94. }
  95. }
  96. }