Skip to content

Commit

Permalink
Apply BaselineImmutables plugin to enable immutables incremental anno…
Browse files Browse the repository at this point in the history
…tation processing
  • Loading branch information
jpenilla committed Jan 10, 2024
1 parent 67777f3 commit 33873fd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies {
api(libs.indra.publishing.sonatype)
api(libs.errorprone.gradle)
api(libs.spotless)
implementation(libs.palantir.baseline)
}

signing {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
group=org.incendo
description=Shared build logic for cloud projects
version=0.0.2
version=0.0.3-SNAPSHOT

org.gradle.parallel=true
org.gradle.caching=true
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ indra-common = { module = "net.kyori:indra-common", version.ref = "indra" }
indra-publishing-sonatype = { module = "net.kyori:indra-publishing-sonatype", version.ref = "indra" }
errorprone-gradle = { module = "net.ltgt.gradle:gradle-errorprone-plugin", version.ref = "gradleErrorprone" }
spotless = { module = "com.diffplug.spotless:spotless-plugin-gradle", version.ref = "spotless" }
palantir-baseline = { module = "com.palantir.baseline:gradle-baseline-java", version = "5.35.0" }
3 changes: 3 additions & 0 deletions src/main/kotlin/org/incendo/cloudbuildlogic/BasePlugin.kt
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
package org.incendo.cloudbuildlogic

import com.palantir.baseline.plugins.BaselineImmutables
import net.kyori.indra.IndraExtension
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.tasks.compile.JavaCompile
import org.gradle.kotlin.dsl.apply
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.withType

class BasePlugin : Plugin<Project> {
override fun apply(target: Project) {
target.plugins.apply("net.kyori.indra")
target.plugins.apply("net.kyori.indra.checkstyle")
target.plugins.apply(BaselineImmutables::class)

target.extensions.configure(IndraExtension::class) {
javaVersions {
Expand Down

0 comments on commit 33873fd

Please sign in to comment.