forked from sorceress/EasyAuth
54 lines
1.4 KiB
Groovy
54 lines
1.4 KiB
Groovy
buildscript {
|
|
repositories {
|
|
maven { url "https://maven.shedaniel.me/" }
|
|
}
|
|
|
|
dependencies {
|
|
classpath 'com.netflix.nebula:gradle-aggregate-javadocs-plugin:2.2.+'
|
|
}
|
|
}
|
|
|
|
|
|
plugins {
|
|
id "architectury-plugin" version "3.1-SNAPSHOT"
|
|
id "dev.architectury.loom" version "0.8.0-SNAPSHOT" apply false
|
|
}
|
|
|
|
|
|
architectury {
|
|
minecraft = rootProject.minecraft_version
|
|
}
|
|
|
|
subprojects {
|
|
apply plugin: "dev.architectury.loom"
|
|
dependencies {
|
|
minecraft "com.mojang:minecraft:${rootProject.minecraft_version}"
|
|
mappings("net.fabricmc:yarn:${rootProject.yarn_mappings}:v2")
|
|
}
|
|
}
|
|
apply plugin: 'nebula-aggregate-javadocs'
|
|
|
|
allprojects {
|
|
apply plugin: "java"
|
|
apply plugin: "architectury-plugin"
|
|
|
|
archivesBaseName = rootProject.archives_base_name
|
|
version = rootProject.mod_version
|
|
group = rootProject.maven_group
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
// ensure that the encoding is set to UTF-8, no matter what the system default is
|
|
// this fixes some edge cases with special characters not displaying correctly
|
|
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
|
|
// If Javadoc is generated, this must be specified in that task too.
|
|
it.options.encoding = "UTF-8"
|
|
|
|
// Minecraft 1.17 (21w19a) upwards uses Java 16.
|
|
it.options.release = 8
|
|
}
|
|
|
|
java {
|
|
withSourcesJar()
|
|
}
|
|
}
|