Skip to content

Commit bdf8721

Browse files
committed
fix: workaround the latest review
1 parent 81c147d commit bdf8721

File tree

1 file changed

+7
-2
lines changed
  • paperweight-core/src/main/kotlin/io/papermc/paperweight/core/taskcontainers

1 file changed

+7
-2
lines changed

paperweight-core/src/main/kotlin/io/papermc/paperweight/core/taskcontainers/PatchingTasks.kt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
package io.papermc.paperweight.core.taskcontainers
2424

25+
import io.papermc.paperweight.core.PaperweightCore
2526
import io.papermc.paperweight.core.tasks.SetupForkUpstreamSources
2627
import io.papermc.paperweight.core.tasks.patching.ApplyFeaturePatches
2728
import io.papermc.paperweight.core.tasks.patching.ApplyFilePatches
@@ -137,7 +138,9 @@ class PatchingTasks(
137138
ats.jstClasspath.from(
138139
project.configurations.named(JavaPlugin.COMPILE_CLASSPATH_CONFIGURATION_NAME),
139140
project.subprojects.map {
140-
it.configurations.named(JavaPlugin.COMPILE_CLASSPATH_CONFIGURATION_NAME).map { it.files }
141+
if (!it.plugins.hasPlugin(PaperweightCore::class)) {
142+
it.configurations.named(JavaPlugin.COMPILE_CLASSPATH_CONFIGURATION_NAME).map { it.files }
143+
}
141144
}
142145
)
143146
}
@@ -180,7 +183,9 @@ class PatchingTasks(
180183
ats.jstClasspath.from(
181184
project.configurations.named(JavaPlugin.COMPILE_CLASSPATH_CONFIGURATION_NAME),
182185
project.subprojects.map {
183-
it.configurations.named(JavaPlugin.COMPILE_CLASSPATH_CONFIGURATION_NAME).map { it.files }
186+
if (!it.plugins.hasPlugin(PaperweightCore::class)) {
187+
it.configurations.named(JavaPlugin.COMPILE_CLASSPATH_CONFIGURATION_NAME).map { it.files }
188+
}
184189
}
185190
)
186191
ats.jst.from(project.configurations.named(JST_CONFIG))

0 commit comments

Comments
 (0)