Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Hypixel Community Client, Client optimized for Hypixel Network
- * Copyright (C) 2018 HCC Dev Team
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published
- * by the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
- // For those who want the bleeding edge
- buildscript {
- ext.kotlin_version = '1.2.21'
- repositories {
- mavenCentral()
- jcenter()
- maven {
- name = "forge"
- url = "http://files.minecraftforge.net/maven"
- }
- maven {
- name = 'sponge'
- url = 'https://repo.spongepowered.org/maven'
- }
- maven {
- url "https://plugins.gradle.org/m2/"
- }
- maven {
- url 'https://jitpack.io'
- }
- }
- dependencies {
- classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.9.15"
- classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
- // classpath "com.github.jengelman.gradle.plugins:shadow:2.0.0"
- }
- }
- configurations {
- embed
- compile.extendsFrom(embed)
- }
- apply plugin: 'net.minecraftforge.gradle.tweaker-client'
- apply plugin: 'org.spongepowered.mixin'
- apply plugin: 'kotlin'
- apply plugin: 'java'
- // apply plugin: 'com.github.johnrengelman.shadow'
- apply plugin: 'maven-publish'
- sourceCompatibility = 1.8
- targetCompatibility = 1.8
- compileJava.options.encoding = 'UTF-8'
- version = "1.0"
- group = "com.hcc"
- archivesBaseName = "HCC"
- minecraft {
- version = "1.8.9"
- tweakClass = "com.hcc.launch.HCCTweaker"
- mappings = "stable_20"
- runDir = 'run'
- makeObfSourceJar = true
- }
- dependencies {
- embed('org.spongepowered:mixin:0.6.4-SNAPSHOT') {
- exclude module: 'launchwrapper'
- exclude module: 'guava'
- exclude module: 'gson'
- exclude module: 'commons-io'
- exclude module: 'log4j-core'
- }
- embed "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
- embed 'com.github.jagrosh:DiscordIPC:master-SNAPSHOT'
- embed('com.esotericsoftware:reflectasm:1.11.3') {
- exclude module: 'asm'
- }
- embed group: 'com.google.guava', name: 'guava', version: '17.0'
- embed group: 'com.google.code.gson', name: 'gson', version: '2.8.2'
- embed 'com.squareup.okhttp3:okhttp:3.9.0'
- embed group: 'org.slick2d', name: 'slick2d-core', version: '1.0.2'
- }
- mixin {
- // Specify "notch" or "searge" here
- defaultObfuscationEnv notch
- add sourceSets.main, "mixin.hcc.refmap.json"
- }
- repositories {
- maven { url "https://jitpack.io" }
- maven {
- name = 'sponge'
- url = 'https://repo.spongepowered.org/maven/'
- }
- mavenCentral()
- jcenter()
- }
- jar {
- manifest.attributes(
- "MixinConfigs": 'mixins.hcc.json',
- "TweakClass": 'com.hcc.launch.HCCTweaker',
- "TweakOrder": 0,
- "Manifest-Version": 1.0,
- 'Main-Class': 'com.hcc.installer.InstallerMain'
- )
- from configurations.embed.collect { it.isDirectory() ? it : zipTree(it) }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement