EasyAuth/build.gradle

42 lines
1.1 KiB
Groovy

plugins {
id "architectury-plugin" version "2.0.59"
id "forgified-fabric-loom" version "0.6.52" apply false
}
architectury {
minecraft = rootProject.minecraft_version
}
subprojects {
apply plugin: "forgified-fabric-loom"
loom {
silentMojangMappingsLicense()
}
}
allprojects {
apply plugin: "java"
apply plugin: "architectury-plugin"
archivesBaseName = rootProject.archives_base_name
version = rootProject.mod_version
group = rootProject.maven_group
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
// The Minecraft launcher currently installs Java 8 for users, so your mod probably wants to target Java 8 too
// JDK 9 introduced a new way of specifying this that will make sure no newer classes or methods are used.
// We'll use that if it's available, but otherwise we'll use the older option.
def targetVersion = 8
if (JavaVersion.current().isJava9Compatible()) {
options.release = 8
}
}
java {
withSourcesJar()
}
}