spring security PublishArtifactsPlugin 源码

  • 2022-08-13
  • 浏览 (481)

spring security PublishArtifactsPlugin 代码

文件路径:/buildSrc/src/main/java/org/springframework/gradle/maven/PublishArtifactsPlugin.java

package org.springframework.gradle.maven;

import io.spring.gradle.convention.Utils;
import org.gradle.api.Action;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.api.Task;

public class PublishArtifactsPlugin implements Plugin<Project> {
	@Override
	public void apply(Project project) {
		project.getTasks().register("publishArtifacts", new Action<Task>() {
			@Override
			public void execute(Task publishArtifacts) {
				publishArtifacts.setGroup("Publishing");
				publishArtifacts.setDescription("Publish the artifacts to either Artifactory or Maven Central based on the version");
				if (Utils.isRelease(project)) {
					publishArtifacts.dependsOn("publishToOssrh");
				}
				else {
					publishArtifacts.dependsOn("artifactoryPublish");
				}
			}
		});
	}
}

相关信息

spring security 源码目录

相关文章

spring security MavenPublishingConventionsPlugin 源码

spring security PublishAllJavaComponentsPlugin 源码

spring security PublishLocalPlugin 源码

spring security SpringMavenPlugin 源码

spring security SpringNexusPublishPlugin 源码

spring security SpringSigningPlugin 源码

0  赞