Flywheel/buildSrc/build.gradle.kts

48 lines
1.1 KiB
Plaintext
Raw Normal View History

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