EasyAuth/build.gradle

60 lines
1.5 KiB
Groovy
Raw Normal View History

2021-02-06 21:35:00 +00:00
buildscript {
repositories {
maven { url "https://maven.shedaniel.me/" }
}
dependencies {
classpath 'com.netflix.nebula:gradle-aggregate-javadocs-plugin:2.2.+'
}
}
2021-01-14 19:14:57 +00:00
plugins {
2021-03-03 13:58:46 +00:00
id "architectury-plugin" version "3.0.94"
id "forgified-fabric-loom" version "0.6.72" apply false
2021-01-14 19:14:57 +00:00
}
2021-02-06 21:35:00 +00:00
2021-01-19 19:35:44 +00:00
architectury {
2021-01-14 19:14:57 +00:00
minecraft = rootProject.minecraft_version
}
subprojects {
apply plugin: "forgified-fabric-loom"
2021-01-19 19:35:44 +00:00
loom {
silentMojangMappingsLicense()
}
2021-02-06 21:35:00 +00:00
dependencies {
minecraft "com.mojang:minecraft:${rootProject.minecraft_version}"
mappings("net.fabricmc:yarn:${rootProject.yarn_mappings}:v2")
}
2021-01-14 19:14:57 +00:00
}
2021-02-06 21:35:00 +00:00
apply plugin: 'nebula-aggregate-javadocs'
2021-01-14 19:14:57 +00:00
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"
2021-01-19 19:35:44 +00:00
// 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()) {
2021-02-06 21:35:00 +00:00
options.release = targetVersion
2021-01-19 19:35:44 +00:00
}
2021-01-14 19:14:57 +00:00
}
2021-01-19 19:35:44 +00:00
java {
withSourcesJar()
}
}