2024-09-10 04:11:05 +02:00
|
|
|
import java.util.Properties
|
|
|
|
|
2024-04-29 23:33:51 +02:00
|
|
|
plugins {
|
|
|
|
`kotlin-dsl`
|
2024-09-10 04:11:05 +02:00
|
|
|
idea
|
2024-04-29 23:33:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
gradlePluginPortal()
|
|
|
|
mavenCentral()
|
|
|
|
maven("https://maven.minecraftforge.net/") {
|
|
|
|
name = "MinecraftForge"
|
|
|
|
}
|
|
|
|
maven("https://maven.architectury.dev/") {
|
|
|
|
name = "Architectury"
|
|
|
|
}
|
|
|
|
maven("https://repo.spongepowered.org/repository/maven-public")
|
|
|
|
maven("https://maven.parchmentmc.org")
|
|
|
|
}
|
|
|
|
|
2024-09-10 04:11:05 +02:00
|
|
|
idea.module {
|
|
|
|
isDownloadJavadoc = true
|
|
|
|
isDownloadSources = true
|
|
|
|
}
|
|
|
|
|
2024-04-29 23:33:51 +02:00
|
|
|
gradlePlugin {
|
|
|
|
plugins {
|
|
|
|
create("platformPlugin") {
|
|
|
|
id = "flywheel.platform"
|
2024-05-25 21:06:11 +02:00
|
|
|
implementationClass = "dev.engine_room.gradle.platform.PlatformPlugin"
|
2024-04-29 23:33:51 +02:00
|
|
|
}
|
2024-05-04 00:54:23 +02:00
|
|
|
create("subprojectPlugin") {
|
|
|
|
id = "flywheel.subproject"
|
2024-05-25 21:06:11 +02:00
|
|
|
implementationClass = "dev.engine_room.gradle.subproject.SubprojectPlugin"
|
2024-05-04 00:54:23 +02:00
|
|
|
}
|
2024-04-29 23:33:51 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-09-10 04:11:05 +02:00
|
|
|
val properties by lazy {
|
|
|
|
Properties().apply {
|
|
|
|
load(rootDir.parentFile.resolve("gradle.properties").inputStream())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-29 23:33:51 +02:00
|
|
|
dependencies {
|
2024-09-10 04:11:05 +02:00
|
|
|
implementation("dev.architectury.loom:dev.architectury.loom.gradle.plugin:${properties["arch_loom_version"]}")
|
2024-04-29 23:33:51 +02:00
|
|
|
}
|