Skip to content

Commit

Permalink
[CI] Add ArtifactoryPlugin to root project
Browse files Browse the repository at this point in the history
  • Loading branch information
onobc committed Apr 27, 2023
1 parent 4e9aa0d commit cda32c0
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package org.springframework.pulsar.gradle;

import io.spring.gradle.convention.ArtifactoryPlugin;

import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.api.Task;
Expand All @@ -34,9 +36,11 @@ public void apply(final Project project) {
PluginManager pluginManager = project.getPluginManager();
pluginManager.apply(BasePlugin.class);
pluginManager.apply(SpringNexusPublishPlugin.class);
project.getRepositories().mavenCentral();
pluginManager.apply(ArtifactoryPlugin.class);
pluginManager.apply(SonarQubeConventionsPlugin.class);

project.getRepositories().mavenCentral();

Task finalizeDeployArtifacts = project.task("finalizeDeployArtifacts");
if (ProjectUtils.isRelease(project) && project.hasProperty("ossrhUsername")) {
finalizeDeployArtifacts.dependsOn(project.getTasks().findByName("closeAndReleaseOssrhStagingRepository"));
Expand Down

0 comments on commit cda32c0

Please sign in to comment.