2023-06-29 18:05:27 +05:30
|
|
|
import net.fabricmc.loom.api.LoomGradleExtensionAPI
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
java
|
2023-07-28 08:48:55 +05:30
|
|
|
kotlin("jvm") version "1.9.0"
|
2023-06-29 18:05:27 +05:30
|
|
|
id("architectury-plugin") version "3.4-SNAPSHOT"
|
2023-07-28 08:48:55 +05:30
|
|
|
id("dev.architectury.loom") version "1.3-SNAPSHOT" apply false
|
2023-06-29 18:05:27 +05:30
|
|
|
id("com.github.johnrengelman.shadow") version "8.1.1" apply false
|
2023-07-28 08:48:55 +05:30
|
|
|
id("io.github.juuxel.loom-vineflower") version "1.11.0" apply false
|
2023-06-29 18:05:27 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
architectury {
|
|
|
|
minecraft = rootProject.property("minecraft_version").toString()
|
|
|
|
}
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
apply(plugin = "dev.architectury.loom")
|
2023-07-28 08:48:55 +05:30
|
|
|
apply(plugin = "io.github.juuxel.loom-vineflower")
|
2023-06-29 18:05:27 +05:30
|
|
|
|
|
|
|
val loom = project.extensions.getByName<LoomGradleExtensionAPI>("loom")
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
"minecraft"("com.mojang:minecraft:${project.property("minecraft_version")}")
|
2023-07-20 15:12:50 +05:30
|
|
|
"mappings"(loom.layered {
|
|
|
|
officialMojangMappings()
|
|
|
|
parchment("org.parchmentmc.data:parchment-${project.property("minecraft_version")}:${project.property("parchment_version")}@zip")
|
|
|
|
})
|
2023-06-29 18:05:27 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
apply(plugin = "java")
|
|
|
|
apply(plugin = "kotlin")
|
|
|
|
apply(plugin = "architectury-plugin")
|
|
|
|
apply(plugin = "maven-publish")
|
|
|
|
|
2023-06-29 18:12:06 +05:30
|
|
|
base.archivesName.set("quaedam")
|
|
|
|
version = "1.0.0"
|
|
|
|
group = "quaedam"
|
2023-06-29 18:05:27 +05:30
|
|
|
|
2023-07-20 15:12:50 +05:30
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
name = "ParchmentMC"
|
|
|
|
setUrl("https://maven.parchmentmc.org")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-29 18:05:27 +05:30
|
|
|
dependencies {
|
|
|
|
compileOnly("org.jetbrains.kotlin:kotlin-stdlib")
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<JavaCompile> {
|
|
|
|
options.encoding = "UTF-8"
|
|
|
|
options.release.set(17)
|
|
|
|
}
|
2023-06-29 18:12:06 +05:30
|
|
|
|
2023-06-29 18:05:27 +05:30
|
|
|
kotlin.target.compilations.all {
|
|
|
|
kotlinOptions.jvmTarget = "17"
|
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
withSourcesJar()
|
|
|
|
}
|
|
|
|
}
|