Skip to content

Commit

Permalink
[CI] simplify module/docs plugins
Browse files Browse the repository at this point in the history
Effort to include build-info in Artifactory
  • Loading branch information
onobc committed Apr 26, 2023
1 parent 8b198c7 commit 9fb6c88
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,23 @@

package org.springframework.pulsar.gradle;

import io.spring.gradle.convention.RepositoryConventionPlugin;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.api.plugins.JavaLibraryPlugin;
import org.gradle.api.plugins.JavaPlugin;
import org.gradle.api.plugins.PluginManager;
import org.gradle.api.publish.maven.plugins.MavenPublishPlugin;

import org.springframework.boot.gradle.JavaConventionsPlugin;
import org.springframework.boot.gradle.optional.OptionalDependenciesPlugin;
import org.springframework.pulsar.gradle.docs.asciidoc.AsciidoctorConventionsPlugin;
import org.springframework.pulsar.gradle.publish.SpringPublishPlugin;
import org.springframework.pulsar.gradle.publish.MavenPublishingConventionsPlugin;
import org.springframework.pulsar.gradle.publish.PublishArtifactsPlugin;
import org.springframework.pulsar.gradle.publish.PublishLocalPlugin;
import org.springframework.pulsar.gradle.publish.SpringSigningPlugin;

import io.spring.gradle.convention.ArtifactoryPlugin;
import io.spring.gradle.convention.RepositoryConventionPlugin;

/**
* @author Rob Winch
Expand All @@ -42,7 +48,12 @@ public void apply(final Project project) {
pluginManager.apply(JavaLibraryPlugin.class);
pluginManager.apply(JavaConventionsPlugin.class);
pluginManager.apply(AsciidoctorConventionsPlugin.class);
pluginManager.apply(SpringPublishPlugin.class);
pluginManager.apply(MavenPublishPlugin.class);
pluginManager.apply(SpringSigningPlugin.class);
pluginManager.apply(MavenPublishingConventionsPlugin.class);
pluginManager.apply(PublishLocalPlugin.class);
pluginManager.apply(PublishArtifactsPlugin.class);
pluginManager.apply(ArtifactoryPlugin.class);
pluginManager.apply(OptionalDependenciesPlugin.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,46 @@

package org.springframework.pulsar.gradle;

import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.api.plugins.JavaLibraryPlugin;
import org.gradle.api.plugins.JavaPlugin;
import org.gradle.api.plugins.PluginManager;
import org.gradle.api.publish.maven.plugins.MavenPublishPlugin;

import org.springframework.boot.gradle.JavaConventionsPlugin;
import org.springframework.boot.gradle.optional.OptionalDependenciesPlugin;
import org.springframework.pulsar.gradle.docs.asciidoc.AsciidoctorConventionsPlugin;
import org.springframework.pulsar.gradle.publish.MavenPublishingConventionsPlugin;
import org.springframework.pulsar.gradle.publish.PublishAllJavaComponentsPlugin;
import org.springframework.pulsar.gradle.publish.PublishArtifactsPlugin;
import org.springframework.pulsar.gradle.publish.PublishLocalPlugin;
import org.springframework.pulsar.gradle.publish.SpringSigningPlugin;

import io.spring.gradle.convention.ArtifactoryPlugin;
import io.spring.gradle.convention.RepositoryConventionPlugin;

/**
* @author Chris Bono
*/
public class SpringModulePlugin extends SpringDocsModulePlugin {
public class SpringModulePlugin implements Plugin<Project> {

@Override
public void apply(final Project project) {
super.apply(project);
PluginManager pluginManager = project.getPluginManager();
pluginManager.apply(PublishAllJavaComponentsPlugin.class);
pluginManager.apply(JavaPlugin.class);
pluginManager.apply(RepositoryConventionPlugin.class);
pluginManager.apply(JavaLibraryPlugin.class);
pluginManager.apply(JavaConventionsPlugin.class);
pluginManager.apply(AsciidoctorConventionsPlugin.class);
pluginManager.apply(MavenPublishPlugin.class);
pluginManager.apply(SpringSigningPlugin.class);
pluginManager.apply(MavenPublishingConventionsPlugin.class);
pluginManager.apply(PublishAllJavaComponentsPlugin.class);
pluginManager.apply(PublishLocalPlugin.class);
pluginManager.apply(PublishArtifactsPlugin.class);
pluginManager.apply(ArtifactoryPlugin.class);
pluginManager.apply(OptionalDependenciesPlugin.class);
pluginManager.apply(JacocoConventionsPlugin.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
* @author Mike Smithson
* @author Chris Bono
*/
class MavenPublishingConventionsPlugin implements Plugin<Project> {
public class MavenPublishingConventionsPlugin implements Plugin<Project> {

@Override
public void apply(Project project) {
Expand Down

This file was deleted.

0 comments on commit 9fb6c88

Please sign in to comment.