From dd770f979ccb5dbd51e28ed39d775e489573935d Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:24:04 -0800 Subject: [PATCH] Apply Java plugin automatically when using userdev --- .../kotlin/io/papermc/paperweight/userdev/PaperweightUser.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paperweight-userdev/src/main/kotlin/io/papermc/paperweight/userdev/PaperweightUser.kt b/paperweight-userdev/src/main/kotlin/io/papermc/paperweight/userdev/PaperweightUser.kt index 6428c8ca..8f7c0173 100644 --- a/paperweight-userdev/src/main/kotlin/io/papermc/paperweight/userdev/PaperweightUser.kt +++ b/paperweight-userdev/src/main/kotlin/io/papermc/paperweight/userdev/PaperweightUser.kt @@ -70,6 +70,8 @@ abstract class PaperweightUser : Plugin { abstract val javaToolchainService: JavaToolchainService override fun apply(target: Project) { + target.plugins.apply("java") + val sharedCacheRoot = target.gradle.gradleUserHomeDir.toPath().resolve("caches/paperweight-userdev") target.gradle.sharedServices.registerIfAbsent(DOWNLOAD_SERVICE_NAME, DownloadService::class) {