Skip to content

Commit

Permalink
Fix pulling fabric-loom as a runtime dep
Browse files Browse the repository at this point in the history
This broke Architectury projects.
  • Loading branch information
Juuxel committed Jul 29, 2021
1 parent d7ec8d0 commit 6b9c4de
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ plugins {
}

group = "io.github.juuxel"
version = "1.1.3"
version = "1.1.4"

if (file("private.gradle").exists()) {
apply(from = "private.gradle")
}

val shade by configurations.creating
val loomRuntime by configurations.creating

configurations {
compileClasspath {
Expand All @@ -22,6 +23,7 @@ configurations {

runtimeClasspath {
extendsFrom(shade)
extendsFrom(loomRuntime)
}
}

Expand Down Expand Up @@ -79,8 +81,8 @@ dependencies {
testImplementation(platform("org.junit:junit-bom:5.7.2"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.assertj:assertj-core:3.20.2")
// This has to be a runtimeOnly because gradle's test kit classpath stuff is really dumb.
runtimeOnly("$loomId:$loomId.gradle.plugin:$loomVersion")
// This has to be a runtimeClasspath dep because gradle's test kit classpath stuff is really dumb.
loomRuntime("$loomId:$loomId.gradle.plugin:$loomVersion")
}

blossom {
Expand Down

0 comments on commit 6b9c4de

Please sign in to comment.