2023-10-28 18:33:26 +02:00
|
|
|
plugins {
|
2023-11-01 17:39:33 +01:00
|
|
|
id "architectury-plugin" version "3.4-SNAPSHOT"
|
|
|
|
id "dev.architectury.loom" version "1.3-SNAPSHOT" apply false
|
2023-10-28 18:33:26 +02:00
|
|
|
}
|
|
|
|
|
2023-11-01 17:39:33 +01:00
|
|
|
architectury {
|
|
|
|
minecraft = rootProject.minecraft_version
|
2023-10-28 18:33:26 +02:00
|
|
|
}
|
|
|
|
|
2023-11-01 17:39:33 +01:00
|
|
|
subprojects {
|
|
|
|
apply plugin: "dev.architectury.loom"
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
minecraft "com.mojang:minecraft:${rootProject.minecraft_version}"
|
|
|
|
// The following line declares the yarn mappings you may select this one as well.
|
|
|
|
mappings "net.fabricmc:yarn:1.18.2+build.4:v2"
|
2023-10-28 18:33:26 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-01 17:39:33 +01:00
|
|
|
allprojects {
|
|
|
|
apply plugin: "java"
|
|
|
|
apply plugin: "architectury-plugin"
|
|
|
|
apply plugin: "maven-publish"
|
2023-10-28 18:33:26 +02:00
|
|
|
|
2023-11-01 17:39:33 +01:00
|
|
|
base {
|
|
|
|
archivesName = rootProject.archives_base_name
|
2023-10-28 18:33:26 +02:00
|
|
|
}
|
|
|
|
|
2023-11-01 17:39:33 +01:00
|
|
|
version = rootProject.mod_version
|
|
|
|
group = rootProject.maven_group
|
2023-10-28 18:33:26 +02:00
|
|
|
|
2023-11-01 17:39:33 +01:00
|
|
|
repositories {
|
|
|
|
maven { url "https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/" }
|
2023-10-28 18:33:26 +02:00
|
|
|
}
|
|
|
|
|
2023-11-01 17:39:33 +01:00
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.encoding = "UTF-8"
|
|
|
|
options.release = 17
|
|
|
|
}
|
2023-10-28 18:33:26 +02:00
|
|
|
|
2023-11-01 17:39:33 +01:00
|
|
|
java {
|
|
|
|
withSourcesJar()
|
2023-10-28 18:33:26 +02:00
|
|
|
}
|
|
|
|
|
2023-11-01 17:39:33 +01:00
|
|
|
publishing {
|
|
|
|
repositories {
|
|
|
|
if (project.hasProperty("mvnURL")) {
|
|
|
|
maven {
|
|
|
|
credentials {
|
|
|
|
username findProperty("mvnUsername")
|
|
|
|
password findProperty("mvnPassword")
|
|
|
|
}
|
|
|
|
url = findProperty("mvnURL")
|
2023-10-28 18:33:26 +02:00
|
|
|
}
|
|
|
|
}
|
2023-11-01 17:39:33 +01:00
|
|
|
mavenLocal()
|
2023-10-28 18:33:26 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|