Advertisement
EmanhMC

Untitled

Feb 18th, 2018
694
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.75 KB | None | 0 0
  1. /*
  2. * Hypixel Community Client, Client optimized for Hypixel Network
  3. * Copyright (C) 2018 HCC Dev Team
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU Affero General Public License as published
  7. * by the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU Affero General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Affero General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18.  
  19. // For those who want the bleeding edge
  20. buildscript {
  21. ext.kotlin_version = '1.2.21'
  22. repositories {
  23. mavenCentral()
  24. jcenter()
  25. maven {
  26. name = "forge"
  27. url = "http://files.minecraftforge.net/maven"
  28. }
  29. maven {
  30. name = 'sponge'
  31. url = 'https://repo.spongepowered.org/maven'
  32. }
  33. maven {
  34. url "https://plugins.gradle.org/m2/"
  35. }
  36. maven {
  37. url 'https://jitpack.io'
  38. }
  39.  
  40. }
  41. dependencies {
  42. classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
  43. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  44. classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.9.15"
  45. classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
  46. // classpath "com.github.jengelman.gradle.plugins:shadow:2.0.0"
  47. }
  48. }
  49.  
  50. configurations {
  51. embed
  52. compile.extendsFrom(embed)
  53. }
  54.  
  55. apply plugin: 'net.minecraftforge.gradle.tweaker-client'
  56. apply plugin: 'org.spongepowered.mixin'
  57. apply plugin: 'kotlin'
  58. apply plugin: 'java'
  59. // apply plugin: 'com.github.johnrengelman.shadow'
  60. apply plugin: 'maven-publish'
  61.  
  62.  
  63. sourceCompatibility = 1.8
  64. targetCompatibility = 1.8
  65. compileJava.options.encoding = 'UTF-8'
  66.  
  67. version = "1.0"
  68. group = "com.hcc"
  69. archivesBaseName = "HCC"
  70.  
  71. minecraft {
  72. version = "1.8.9"
  73. tweakClass = "com.hcc.launch.HCCTweaker"
  74. mappings = "stable_20"
  75. runDir = 'run'
  76. makeObfSourceJar = true
  77. }
  78.  
  79. dependencies {
  80.  
  81. embed('org.spongepowered:mixin:0.6.4-SNAPSHOT') {
  82. exclude module: 'launchwrapper'
  83. exclude module: 'guava'
  84. exclude module: 'gson'
  85. exclude module: 'commons-io'
  86. exclude module: 'log4j-core'
  87. }
  88. embed "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
  89. embed 'com.github.jagrosh:DiscordIPC:master-SNAPSHOT'
  90. embed('com.esotericsoftware:reflectasm:1.11.3') {
  91. exclude module: 'asm'
  92. }
  93.  
  94. embed group: 'com.google.guava', name: 'guava', version: '17.0'
  95. embed group: 'com.google.code.gson', name: 'gson', version: '2.8.2'
  96.  
  97. embed 'com.squareup.okhttp3:okhttp:3.9.0'
  98.  
  99. embed group: 'org.slick2d', name: 'slick2d-core', version: '1.0.2'
  100. }
  101.  
  102.  
  103. mixin {
  104. // Specify "notch" or "searge" here
  105. defaultObfuscationEnv notch
  106. add sourceSets.main, "mixin.hcc.refmap.json"
  107. }
  108.  
  109. repositories {
  110. maven { url "https://jitpack.io" }
  111. maven {
  112. name = 'sponge'
  113. url = 'https://repo.spongepowered.org/maven/'
  114. }
  115. mavenCentral()
  116. jcenter()
  117. }
  118.  
  119. jar {
  120. manifest.attributes(
  121. "MixinConfigs": 'mixins.hcc.json',
  122. "TweakClass": 'com.hcc.launch.HCCTweaker',
  123. "TweakOrder": 0,
  124. "Manifest-Version": 1.0,
  125. 'Main-Class': 'com.hcc.installer.InstallerMain'
  126. )
  127. from configurations.embed.collect { it.isDirectory() ? it : zipTree(it) }
  128. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement