[Build] Attempt to sign docs to allow release
This commit is contained in:
@@ -19,7 +19,6 @@ 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.Task;
|
||||
import org.gradle.api.plugins.JavaLibraryPlugin;
|
||||
import org.gradle.api.plugins.JavaPlugin;
|
||||
import org.gradle.api.plugins.PluginManager;
|
||||
@@ -27,6 +26,7 @@ import org.gradle.api.plugins.PluginManager;
|
||||
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.PublishAllJavaComponentsPlugin;
|
||||
import org.springframework.pulsar.gradle.publish.SpringPublishPlugin;
|
||||
|
||||
/**
|
||||
@@ -44,13 +44,7 @@ public class SpringDocsModulePlugin implements Plugin<Project> {
|
||||
pluginManager.apply(JavaConventionsPlugin.class);
|
||||
pluginManager.apply(AsciidoctorConventionsPlugin.class);
|
||||
pluginManager.apply(SpringPublishPlugin.class);
|
||||
pluginManager.apply(PublishAllJavaComponentsPlugin.class);
|
||||
pluginManager.apply(OptionalDependenciesPlugin.class);
|
||||
|
||||
Task deployArtifacts = project.task("deployArtifacts");
|
||||
deployArtifacts.setGroup("Deploy tasks");
|
||||
deployArtifacts.setDescription("Deploys the artifacts to either Artifactory or Maven Central");
|
||||
if (!ProjectUtils.isRelease(project)) {
|
||||
deployArtifacts.dependsOn(project.getTasks().getByName("artifactoryPublish"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,8 +19,6 @@ package org.springframework.pulsar.gradle;
|
||||
import org.gradle.api.Project;
|
||||
import org.gradle.api.plugins.PluginManager;
|
||||
|
||||
import org.springframework.pulsar.gradle.publish.PublishAllJavaComponentsPlugin;
|
||||
|
||||
/**
|
||||
* @author Chris Bono
|
||||
*/
|
||||
@@ -30,7 +28,6 @@ public class SpringModulePlugin extends SpringDocsModulePlugin {
|
||||
public void apply(final Project project) {
|
||||
super.apply(project);
|
||||
PluginManager pluginManager = project.getPluginManager();
|
||||
pluginManager.apply(PublishAllJavaComponentsPlugin.class);
|
||||
pluginManager.apply(JacocoConventionsPlugin.class);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,6 +21,22 @@ dependencies {
|
||||
observationDocs "io.micrometer:micrometer-docs-generator:$micrometerDocsVersion"
|
||||
}
|
||||
|
||||
jar {
|
||||
enabled = false
|
||||
}
|
||||
|
||||
javadoc {
|
||||
enabled = false
|
||||
}
|
||||
|
||||
javadocJar {
|
||||
enabled = false
|
||||
}
|
||||
|
||||
sourcesJar {
|
||||
enabled = false
|
||||
}
|
||||
|
||||
task aggregatedJavadoc(type: Javadoc) {
|
||||
group = 'Documentation'
|
||||
description = 'Generates aggregated Javadoc API documentation.'
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright 2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.pulsar.docs;
|
||||
|
||||
public class Placeholder {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user