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
Failed to generate hash of commit
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"