mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-25 06:26:56 +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
|
.buildpath
|
||||||
|
|
||||||
# Other
|
# Other
|
||||||
|
.DS_Store
|
||||||
mcmodsrepo
|
mcmodsrepo
|
||||||
src/*/generatedPackageInfos/
|
src/*/generatedPackageInfos/
|
||||||
*/src/*/generatedPackageInfos/
|
*/src/*/generatedPackageInfos/
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
import java.util.Properties
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("java-gradle-plugin")
|
|
||||||
kotlin("jvm") version "1.9.23"
|
|
||||||
`kotlin-dsl`
|
`kotlin-dsl`
|
||||||
|
idea
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
@ -17,6 +18,11 @@ repositories {
|
||||||
maven("https://maven.parchmentmc.org")
|
maven("https://maven.parchmentmc.org")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
idea.module {
|
||||||
|
isDownloadJavadoc = true
|
||||||
|
isDownloadSources = true
|
||||||
|
}
|
||||||
|
|
||||||
gradlePlugin {
|
gradlePlugin {
|
||||||
plugins {
|
plugins {
|
||||||
create("platformPlugin") {
|
create("platformPlugin") {
|
||||||
|
@ -30,7 +36,12 @@ gradlePlugin {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
val properties by lazy {
|
||||||
// FIXME: This should not hard-code the Loom version.
|
Properties().apply {
|
||||||
implementation("dev.architectury.loom:dev.architectury.loom.gradle.plugin:1.6.397")
|
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
|
# General build dependency versions
|
||||||
java_version = 17
|
java_version = 17
|
||||||
# FIXME: This doesn't do anything.
|
arch_loom_version = 1.6.397
|
||||||
# arch_loom_version = 1.6-SNAPSHOT
|
|
||||||
cursegradle_version = 1.4.0
|
cursegradle_version = 1.4.0
|
||||||
parchment_version = 2023.09.03
|
parchment_version = 2023.09.03
|
||||||
|
|
||||||
|
|
|
@ -11,12 +11,6 @@ pluginManagement {
|
||||||
maven("https://repo.spongepowered.org/repository/maven-public")
|
maven("https://repo.spongepowered.org/repository/maven-public")
|
||||||
maven("https://maven.parchmentmc.org")
|
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"
|
rootProject.name = "Flywheel"
|
||||||
|
|
Loading…
Reference in a new issue