mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-26 15:06:28 +01:00
fb41248c4c
* fix loom version getting very cursed but it works :) * remove commented out stuff in settings.gradle.kts, unnecessary plugins in buildSrc, and configure buildSrc to download sources/javadoc
47 lines
1.1 KiB
Text
47 lines
1.1 KiB
Text
import java.util.Properties
|
|
|
|
plugins {
|
|
`kotlin-dsl`
|
|
idea
|
|
}
|
|
|
|
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")
|
|
}
|
|
|
|
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"]}")
|
|
}
|