mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-24 14:06:29 +01:00
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:
parent
14ca1d3286
commit
fb41248c4c
4 changed files with 18 additions and 13 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -44,6 +44,7 @@ local.properties
|
|||
.buildpath
|
||||
|
||||
# Other
|
||||
.DS_Store
|
||||
mcmodsrepo
|
||||
src/*/generatedPackageInfos/
|
||||
*/src/*/generatedPackageInfos/
|
||||
|
|
|
@ -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"]}")
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue