Skip to content

Commit

Permalink
Apply Java plugin automatically when using userdev
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Dec 26, 2024
1 parent 43f2c06 commit dd770f9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ abstract class PaperweightUser : Plugin<Project> {
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) {
Expand Down

0 comments on commit dd770f9

Please sign in to comment.