2019-02-23 00:12:04 +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 Lesser 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,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2021-06-23 17:24:22 +00:00
|
|
|
|
2022-06-08 15:26:47 +00:00
|
|
|
buildscript {
|
|
|
|
dependencies {
|
|
|
|
classpath "org.ow2.asm:asm:9.3"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-23 17:24:22 +00:00
|
|
|
plugins {
|
2022-06-08 08:28:22 +00:00
|
|
|
id "architectury-plugin" version "3.4.135"
|
2022-06-11 11:54:30 +00:00
|
|
|
id 'dev.architectury.loom' version '0.12.0.282' apply false
|
2019-02-23 00:12:04 +00:00
|
|
|
}
|
|
|
|
|
2022-04-03 04:36:18 +00:00
|
|
|
subprojects {
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: "maven-publish"
|
|
|
|
apply plugin: "dev.architectury.loom"
|
2022-01-20 22:19:35 +00:00
|
|
|
|
2022-04-03 04:36:18 +00:00
|
|
|
archivesBaseName = rootProject.archives_base_name
|
2022-06-07 10:52:05 +00:00
|
|
|
def vers = 'git describe --always --tags --dirty'.execute().text.trim();
|
|
|
|
if (!vers.startsWith("v")) {
|
|
|
|
println "git doesn't appear to be installed!"
|
|
|
|
println "using version number: " + rootProject.mod_version
|
|
|
|
version = rootProject.mod_version
|
|
|
|
} else {
|
|
|
|
version = vers.substring(1)
|
2019-02-23 00:12:04 +00:00
|
|
|
}
|
2022-04-03 04:36:18 +00:00
|
|
|
group = rootProject.maven_group
|
2021-06-16 08:12:47 +00:00
|
|
|
|
2022-06-08 08:28:22 +00:00
|
|
|
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_17
|
2019-03-12 06:05:39 +00:00
|
|
|
|
2022-04-03 04:36:18 +00:00
|
|
|
loom {
|
|
|
|
silentMojangMappingsLicense()
|
2019-02-23 00:12:04 +00:00
|
|
|
}
|
|
|
|
|
2022-04-03 04:36:18 +00:00
|
|
|
dependencies {
|
|
|
|
minecraft "com.mojang:minecraft:${rootProject.minecraft_version}"
|
|
|
|
// The following line declares the mojmap mappings, you may use other mappings as well
|
|
|
|
mappings loom.officialMojangMappings()
|
|
|
|
// The following line declares the yarn mappings you may select this one as well.
|
|
|
|
// mappings "net.fabricmc:yarn:1.17.1+build.32:v2"
|
2021-10-09 20:16:57 +00:00
|
|
|
}
|
2019-03-08 20:30:43 +00:00
|
|
|
|
2022-04-03 04:36:18 +00:00
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
|
|
it.options.encoding = "UTF-8"
|
2019-02-23 00:12:04 +00:00
|
|
|
|
2022-05-31 09:03:43 +00:00
|
|
|
def targetVersion = 17
|
2022-04-03 04:36:18 +00:00
|
|
|
if (JavaVersion.current().isJava9Compatible()) {
|
|
|
|
it.options.release = targetVersion
|
|
|
|
}
|
2021-01-20 06:03:03 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-03 04:36:18 +00:00
|
|
|
allprojects {
|
|
|
|
apply plugin: "architectury-plugin"
|
2021-06-16 08:12:47 +00:00
|
|
|
|
2022-04-03 04:36:18 +00:00
|
|
|
repositories {
|
2022-04-05 03:10:25 +00:00
|
|
|
maven {
|
|
|
|
name = 'spongepowered-repo'
|
|
|
|
url = 'https://repo.spongepowered.org/repository/maven-public/'
|
|
|
|
}
|
2022-04-03 04:36:18 +00:00
|
|
|
maven {
|
|
|
|
name = 'impactdevelopment-repo'
|
|
|
|
url = 'https://impactdevelopment.github.io/maven/'
|
2021-01-20 06:11:08 +00:00
|
|
|
}
|
2022-04-03 04:36:18 +00:00
|
|
|
maven {
|
|
|
|
name = "ldtteam"
|
|
|
|
url = "https://maven.parchmentmc.net/"
|
|
|
|
}
|
2022-04-16 10:22:53 +00:00
|
|
|
// for the newer version of launchwrapper
|
|
|
|
maven {
|
|
|
|
name = "multimc-maven"
|
|
|
|
url = "https://files.multimc.org/maven/"
|
|
|
|
metadataSources {
|
|
|
|
artifact()
|
|
|
|
}
|
|
|
|
}
|
2022-04-03 04:36:18 +00:00
|
|
|
mavenCentral()
|
2021-01-20 06:03:03 +00:00
|
|
|
}
|
2022-06-08 08:28:22 +00:00
|
|
|
}
|