baritone/build.gradle

92 lines
2.4 KiB
Groovy
Raw Normal View History

2018-08-08 03:16:53 +00:00
/*
* This file is part of Baritone.
*
* Baritone is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Baritone is distributed in the hope that it will be useful,
2018-08-08 03:16:53 +00:00
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
*/
2018-08-01 17:09:39 +00:00
group 'baritone'
version '1.0.0'
2018-08-01 17:09:39 +00:00
buildscript {
repositories {
maven {
name = 'forge'
url = 'http://files.minecraftforge.net/maven'
}
maven {
name = 'SpongePowered'
url = 'http://repo.spongepowered.org/maven'
}
jcenter()
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
}
}
apply plugin: 'java'
2018-09-04 23:08:29 +00:00
apply plugin: 'net.minecraftforge.gradle.tweaker-client'
apply plugin: 'org.spongepowered.mixin'
2018-08-01 17:09:39 +00:00
sourceCompatibility = targetCompatibility = '1.8'
compileJava {
sourceCompatibility = targetCompatibility = '1.8'
}
sourceSets {
launch {
compileClasspath += main.compileClasspath + main.runtimeClasspath + main.output
}
}
2018-08-01 17:09:39 +00:00
minecraft {
version = '1.12.2'
mappings = 'snapshot_20180731'
2018-08-01 18:05:04 +00:00
tweakClass = 'baritone.launch.BaritoneTweaker'
2018-08-01 17:09:39 +00:00
runDir = 'run'
2018-08-01 18:05:04 +00:00
makeObfSourceJar = false
2018-08-01 17:09:39 +00:00
}
repositories {
mavenCentral()
maven {
name = 'spongepowered-repo'
url = 'http://repo.spongepowered.org/maven/'
}
}
dependencies {
runtime launchCompile('org.spongepowered:mixin:0.7.11-SNAPSHOT') {
2018-08-01 17:09:39 +00:00
// Mixin includes a lot of dependencies that are too up-to-date
exclude module: 'launchwrapper'
exclude module: 'guava'
exclude module: 'gson'
exclude module: 'commons-io'
exclude module: 'log4j-core'
}
testImplementation 'junit:junit:4.12'
}
mixin {
defaultObfuscationEnv notch
2018-09-04 23:50:53 +00:00
add sourceSets.launch, 'mixins.baritone.refmap.json'
}
jar {
2018-09-11 18:29:54 +00:00
from sourceSets.launch.output, sourceSets.api.output
}