/* * 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 . */ plugins { id "architectury-plugin" version "3.4-SNAPSHOT" id 'dev.architectury.loom' version '0.11.0-SNAPSHOT' apply false } architectury { minecraft = rootProject.minecraft_version } subprojects { apply plugin: 'java' apply plugin: "maven-publish" apply plugin: "dev.architectury.loom" archivesBaseName = rootProject.archives_base_name version = rootProject.mod_version group = rootProject.maven_group sourceCompatibility = targetCompatibility = JavaVersion.VERSION_16 loom { silentMojangMappingsLicense() } 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" } tasks.withType(JavaCompile).configureEach { it.options.encoding = "UTF-8" def targetVersion = 16 if (JavaVersion.current().isJava9Compatible()) { it.options.release = targetVersion } } } allprojects { apply plugin: "architectury-plugin" repositories { maven { name = 'spongepowered-repo' url = 'https://repo.spongepowered.org/repository/maven-public/' } maven { name = 'impactdevelopment-repo' url = 'https://impactdevelopment.github.io/maven/' } maven { name = "ldtteam" url = "https://maven.parchmentmc.net/" } mavenCentral() } }