plugins { id 'java-gradle-plugin' } // The plugins below come from the Gradle Plugin Portal, so their resolved graph is locked like every // leaf's (gradle.lockfile beside this file). STRICT: a configuration with no lock state fails rather // than resolving whatever the portal serves. Regenerate with // `./gradlew -p build-logic dependencies --write-locks` after a catalog version change. dependencyLocking { lockAllConfigurations() lockMode = LockMode.STRICT } dependencies { implementation libs.jackson3.databind // The third-party Gradle plugins the convention plugins apply. // // The root build used to apply these to every leaf from `configure(subprojects)`, and the // recorded reason for keeping them there (D8) was that build-logic would have to re-declare // their versions, giving each one a second home that could drift. That objection no longer // holds: build-logic/settings.gradle reads the main build's `gradle/libs.versions.toml`, so the // versions below and the ones the root `plugins {}` block declares are the same table entries. implementation "com.diffplug.spotless:spotless-plugin-gradle:${libs.versions.spotless.get()}" implementation "com.github.spotbugs.snom:spotbugs-gradle-plugin:${libs.versions.spotbugsPlugin.get()}" implementation "net.ltgt.gradle:gradle-errorprone-plugin:${libs.versions.errorpronePlugin.get()}" implementation "io.spring.gradle:dependency-management-plugin:${libs.versions.springDependencyManagement.get()}" // TestKit verifies the binary plugins against the running Gradle distribution. testImplementation gradleTestKit() testImplementation libs.junit.jupiter testImplementation libs.assertj.core testRuntimeOnly 'org.junit.platform:junit-platform-launcher' } gradlePlugin { plugins { apiSurface { id = 'ca.api-surface' implementationClass = 'dev.caskeleton.buildlogic.apisurface.ApiSurfacePlugin' } architecture { id = 'ca.architecture' implementationClass = 'dev.caskeleton.buildlogic.architecture.ArchitecturePlugin' } javaConventions { id = 'ca.java-conventions' implementationClass = 'dev.caskeleton.buildlogic.java.JavaConventionsPlugin' } bootRunDotenv { id = 'ca.bootrun-dotenv' implementationClass = 'dev.caskeleton.buildlogic.bootstrap.BootRunDotenvPlugin' } qualityConventions { id = 'ca.quality-conventions' implementationClass = 'dev.caskeleton.buildlogic.quality.QualityConventionsPlugin' } strictTestLane { id = 'ca.strict-test-lane' implementationClass = 'dev.caskeleton.buildlogic.strictlane.StrictTestLanePlugin' } strictLaneStages { id = 'ca.strict-lane-stages' implementationClass = 'dev.caskeleton.buildlogic.strictlane.StrictLaneStagesPlugin' } redisTopologyLane { id = 'ca.redis-topology-lane' implementationClass = 'dev.caskeleton.buildlogic.redis.RedisTopologyLanePlugin' } architectureRegistrySettings { id = 'ca.architecture-registry' implementationClass = 'dev.caskeleton.buildlogic.settings.ArchitectureRegistrySettingsPlugin' } javaLibraryConvention { id = 'ca.java-library' implementationClass = 'dev.caskeleton.buildlogic.convention.JavaLibraryConventionPlugin' } springLibraryConvention { id = 'ca.spring-library' implementationClass = 'dev.caskeleton.buildlogic.convention.SpringLibraryConventionPlugin' } springConfigConvention { id = 'ca.spring-config' implementationClass = 'dev.caskeleton.buildlogic.convention.SpringConfigConventionPlugin' } platformModuleConvention { id = 'ca.platform-module' implementationClass = 'dev.caskeleton.buildlogic.convention.PlatformModuleConventionPlugin' } configContract { id = 'ca.config-contract' implementationClass = 'dev.caskeleton.buildlogic.config.ConfigContractPlugin' } } } tasks.named('test') { useJUnitPlatform() }