fix loom version getting (#254)

* 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
This commit is contained in:
Rhys⁣⁣⁣⁣⁣⁣⁣ 2024-09-09 22:11:05 -04:00 committed by GitHub
parent 14ca1d3286
commit fb41248c4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 18 additions and 13 deletions

1
.gitignore vendored
View File

@ -44,6 +44,7 @@ local.properties
.buildpath
# Other
.DS_Store
mcmodsrepo
src/*/generatedPackageInfos/
*/src/*/generatedPackageInfos/

View File

@ -1,7 +1,8 @@
import java.util.Properties
plugins {
id("java-gradle-plugin")
kotlin("jvm") version "1.9.23"
`kotlin-dsl`
idea
}
repositories {
@ -17,6 +18,11 @@ repositories {
maven("https://maven.parchmentmc.org")
}
idea.module {
isDownloadJavadoc = true
isDownloadSources = true
}
gradlePlugin {
plugins {
create("platformPlugin") {
@ -30,7 +36,12 @@ gradlePlugin {
}
}
dependencies {
// FIXME: This should not hard-code the Loom version.
implementation("dev.architectury.loom:dev.architectury.loom.gradle.plugin:1.6.397")
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"]}")
}

View File

@ -19,8 +19,7 @@ forge_version_range = [47.0.0,)
# General build dependency versions
java_version = 17
# FIXME: This doesn't do anything.
# arch_loom_version = 1.6-SNAPSHOT
arch_loom_version = 1.6.397
cursegradle_version = 1.4.0
parchment_version = 2023.09.03

View File

@ -11,12 +11,6 @@ pluginManagement {
maven("https://repo.spongepowered.org/repository/maven-public")
maven("https://maven.parchmentmc.org")
}
// FIXME: This doesn't do anything. The actual version is always the one defined in buildSrc/build.gradle.kts.
// plugins {
// val arch_loom_version: String by settings
// id("dev.architectury.loom") version arch_loom_version
// }
}
rootProject.name = "Flywheel"