48 lines
1.0 KiB
Groovy
48 lines
1.0 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.2.112"
|
|
id "dev.architectury.loom" version "0.9.0.131" 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 {
|
|
it.options.encoding = "UTF-8"
|
|
it.options.release = 8
|
|
}
|
|
|
|
java {
|
|
withSourcesJar()
|
|
}
|
|
}
|