diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index 31566a8f..a638fb1e 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -59,6 +59,10 @@ gradlePlugin { id = "io.spring.convention.artfiactory" implementationClass = "io.spring.gradle.convention.ArtifactoryPlugin" } + mavenBomPlugin { + id = "org.springframework.pulsar.bom" + implementationClass = "org.springframework.pulsar.gradle.MavenBomPlugin" + } optionalDependenciesPlugin { id = "org.springframework.pulsar.optional-dependencies" implementationClass = "org.springframework.pulsar.gradle.optional.OptionalDependenciesPlugin" diff --git a/buildSrc/src/main/java/org/springframework/pulsar/gradle/MavenBomPlugin.groovy b/buildSrc/src/main/java/org/springframework/pulsar/gradle/MavenBomPlugin.groovy new file mode 100644 index 00000000..cae64bf7 --- /dev/null +++ b/buildSrc/src/main/java/org/springframework/pulsar/gradle/MavenBomPlugin.groovy @@ -0,0 +1,20 @@ +package org.springframework.pulsar.gradle + +import org.gradle.api.Plugin +import org.gradle.api.Project +import org.gradle.api.plugins.JavaPlatformPlugin + +import org.springframework.pulsar.gradle.publish.PublishAllJavaComponentsPlugin +import org.springframework.pulsar.gradle.publish.SpringMavenPlugin + +/** + * @author Chris Bono + */ +public class MavenBomPlugin implements Plugin { + + public void apply(Project project) { + project.plugins.apply(JavaPlatformPlugin) + project.plugins.apply(SpringMavenPlugin) + project.plugins.apply(PublishAllJavaComponentsPlugin) + } +} diff --git a/spring-pulsar-bom/spring-pulsar-bom.gradle b/spring-pulsar-bom/spring-pulsar-bom.gradle index 2ee40951..b55192ed 100644 --- a/spring-pulsar-bom/spring-pulsar-bom.gradle +++ b/spring-pulsar-bom/spring-pulsar-bom.gradle @@ -1,7 +1,8 @@ import org.springframework.pulsar.gradle.SpringModulePlugin plugins { - id 'org.springframework.pulsar.spring-module' + id 'io.spring.convention.repository' + id 'org.springframework.pulsar.bom' } description = 'Spring Pulsar (Bill of Materials)'