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-06-23 21:20:29 +00:00
|
|
|
id "architectury-plugin" version "3.1-SNAPSHOT"
|
|
|
|
id "dev.architectury.loom" version "0.8.0-SNAPSHOT" 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 {
|
2021-06-23 21:20:29 +00:00
|
|
|
apply plugin: "dev.architectury.loom"
|
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
|
|
|
|
|
2021-06-23 21:20:29 +00:00
|
|
|
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"
|
2021-01-19 19:35:44 +00:00
|
|
|
|
2021-06-23 21:20:29 +00:00
|
|
|
// Minecraft 1.17 (21w19a) upwards uses Java 16.
|
|
|
|
it.options.release = 8
|
2021-01-14 19:14:57 +00:00
|
|
|
}
|
2021-01-19 19:35:44 +00:00
|
|
|
|
|
|
|
java {
|
|
|
|
withSourcesJar()
|
|
|
|
}
|
|
|
|
}
|