Advertisement
supersaiyansubtlety

cuisine-build.gradle

Dec 30th, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  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.  
  14. allprojects {
  15. repositories {
  16. jcenter() {
  17. url = 'http://jcenter.bintray.com/'
  18. }
  19. maven {
  20. url 'http://repository.jboss.org/nexus/content/groups/public'
  21. }
  22. }
  23. }
  24.  
  25. apply plugin: 'idea'
  26. apply plugin: 'net.minecraftforge.gradle.forge'
  27. //apply plugin: 'net.minecraftforge.gradle'
  28.  
  29.  
  30. version = "${version_major}.${version_minor}.${version_patch}"
  31. group = "snownee.cuisine"
  32. archivesBaseName = "Cuisine"
  33.  
  34. if (System.getenv().BUILD_NUMBER != null) {
  35. version += "-build${System.getenv().BUILD_NUMBER}"
  36. }
  37.  
  38. sourceCompatibility = targetCompatibility = '1.8'
  39.  
  40. [compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
  41.  
  42. repositories {
  43. maven {
  44. name = "jei"
  45. url = "https://dvs1.progwml6.com/files/maven"
  46. }
  47. maven {
  48. name = 'tterrag maven'
  49. url = "https://maven.tterrag.com/"
  50. }
  51. maven {
  52. name = "jared"
  53. url = "https://maven.blamejared.com"
  54. }
  55. maven {
  56. name = "tehnut"
  57. url = "https://tehnut.info/maven"
  58. }
  59.  
  60. flatDir {
  61. dirs 'libs'
  62. }
  63. }
  64.  
  65. minecraft {
  66. version = "${minecraft_version}-${forge_version}"
  67. runDir = "run"
  68.  
  69. mappings = mapping_version
  70. useDepAts = true // TODO Actually it could be bad practice
  71.  
  72. replace "@VERSION_INJECT@", project.version
  73. }
  74.  
  75. dependencies {
  76. // Why not deobfCompile? Since JEI 4.13.1, JEI uses stable_39 mapping, so we are on the same MCP version now.
  77. compile "mezz.jei:jei_${minecraft_version}:${jei_version}"
  78.  
  79. deobfCompile "vazkii.patchouli:Patchouli:${patchi_version}"
  80. deobfCompile("CraftTweaker2:CraftTweaker2-MC1120-Main:1.12-${ct_version}") {
  81. exclude group: 'org.ow2.asm'
  82. }
  83. deobfCompile "CraftTweaker2:CraftTweaker2-API:${ct_version}"
  84. deobfCompile "CraftTweaker2:ZenScript:${ct_version}"
  85. deobfCompile "mcp.mobius.waila:Hwyla:1.8.26-B41_1.12.2"
  86. deobfCompile("mcjty.theoneprobe:TheOneProbe-1.12:${top_version}") {
  87. exclude group: 'cofh'
  88. }
  89. deobfCompile "blusunrize:ImmersiveEngineering:0.12-92-559"
  90. compile files(
  91. 'Kiwi-1.12.2-0.5.1-deobf.jar',
  92. 'Nutrition-1.12.2-3.5.0.jar',
  93. 'Baubles-1.12-1.5.2.jar',
  94. 'Carry+On+MC1.12.2+v1.10.jar',
  95. 'ToughAsNails-1.12.2-3.1.0.129-api.jar'
  96. )
  97. }
  98.  
  99. processResources {
  100. inputs.property "version", project.version
  101. inputs.property "mcversion", project.minecraft.version
  102.  
  103. from(sourceSets.main.resources.srcDirs) {
  104. include 'mcmod.info'
  105. expand 'version':project.version
  106. }
  107.  
  108. from(sourceSets.main.resources.srcDirs) {
  109. exclude 'mcmod.info'
  110. }
  111. }
  112.  
  113. jar {
  114. exclude "**/*.bat"
  115. exclude "**/*.psd"
  116. exclude "**/*.d"
  117. exclude "**/*.exe"
  118. exclude "**/*.e"
  119. exclude "**/*.txt"
  120. manifest {
  121. attributes 'FMLAT': 'cuisine_at.cfg'
  122. attributes 'Maven-Artifact': "${project.group}:${project.archivesBaseName}:${project.version}"
  123. attributes 'Timestamp': System.currentTimeMillis()
  124. }
  125. }
  126.  
  127. javadoc {
  128. options.encoding = "UTF-8"
  129. options.charSet = "UTF-8"
  130. options.links = [
  131. 'https://docs.oracle.com/javase/8/docs/api/'
  132. ]
  133. options.tags = [
  134. "implSpec:a:Implementation Specification",
  135. "implNote:a:Implementation Note"
  136. ]
  137. }
  138.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement