File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
paperweight-core/src/main/kotlin/io/papermc/paperweight/core/taskcontainers Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 2222
2323package io.papermc.paperweight.core.taskcontainers
2424
25+ import io.papermc.paperweight.core.PaperweightCore
2526import io.papermc.paperweight.core.tasks.SetupForkUpstreamSources
2627import io.papermc.paperweight.core.tasks.patching.ApplyFeaturePatches
2728import 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 ))
You can’t perform that action at this time.
0 commit comments