File tree Expand file tree Collapse file tree 4 files changed +39
-11
lines changed
buildSrc/src/main/java/org/springframework/pulsar/gradle
src/main/java/org/springframework/pulsar/docs Expand file tree Collapse file tree 4 files changed +39
-11
lines changed Original file line number Diff line number Diff line change 1919import io .spring .gradle .convention .RepositoryConventionPlugin ;
2020import org .gradle .api .Plugin ;
2121import org .gradle .api .Project ;
22- import org .gradle .api .Task ;
2322import org .gradle .api .plugins .JavaLibraryPlugin ;
2423import org .gradle .api .plugins .JavaPlugin ;
2524import org .gradle .api .plugins .PluginManager ;
2625
2726import org .springframework .boot .gradle .JavaConventionsPlugin ;
2827import org .springframework .boot .gradle .optional .OptionalDependenciesPlugin ;
2928import org .springframework .pulsar .gradle .docs .asciidoc .AsciidoctorConventionsPlugin ;
29+ import org .springframework .pulsar .gradle .publish .PublishAllJavaComponentsPlugin ;
3030import org .springframework .pulsar .gradle .publish .SpringPublishPlugin ;
3131
3232/**
@@ -44,13 +44,7 @@ public void apply(final Project project) {
4444 pluginManager .apply (JavaConventionsPlugin .class );
4545 pluginManager .apply (AsciidoctorConventionsPlugin .class );
4646 pluginManager .apply (SpringPublishPlugin .class );
47+ pluginManager .apply (PublishAllJavaComponentsPlugin .class );
4748 pluginManager .apply (OptionalDependenciesPlugin .class );
48-
49- Task deployArtifacts = project .task ("deployArtifacts" );
50- deployArtifacts .setGroup ("Deploy tasks" );
51- deployArtifacts .setDescription ("Deploys the artifacts to either Artifactory or Maven Central" );
52- if (!ProjectUtils .isRelease (project )) {
53- deployArtifacts .dependsOn (project .getTasks ().getByName ("artifactoryPublish" ));
54- }
5549 }
5650}
Original file line number Diff line number Diff line change 1919import org .gradle .api .Project ;
2020import org .gradle .api .plugins .PluginManager ;
2121
22- import org .springframework .pulsar .gradle .publish .PublishAllJavaComponentsPlugin ;
23-
2422/**
2523 * @author Chris Bono
2624 */
@@ -30,7 +28,6 @@ public class SpringModulePlugin extends SpringDocsModulePlugin {
3028 public void apply (final Project project ) {
3129 super .apply (project );
3230 PluginManager pluginManager = project .getPluginManager ();
33- pluginManager .apply (PublishAllJavaComponentsPlugin .class );
3431 pluginManager .apply (JacocoConventionsPlugin .class );
3532 }
3633}
Original file line number Diff line number Diff line change @@ -21,6 +21,22 @@ dependencies {
2121 observationDocs " io.micrometer:micrometer-docs-generator:$micrometerDocsVersion "
2222}
2323
24+ jar {
25+ enabled = false
26+ }
27+
28+ javadoc {
29+ enabled = false
30+ }
31+
32+ javadocJar {
33+ enabled = false
34+ }
35+
36+ sourcesJar {
37+ enabled = false
38+ }
39+
2440task aggregatedJavadoc (type : Javadoc ) {
2541 group = ' Documentation'
2642 description = ' Generates aggregated Javadoc API documentation.'
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2022 the original author or authors.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * https://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+ package org .springframework .pulsar .docs ;
18+
19+ public class Placeholder {
20+
21+ }
You can’t perform that action at this time.
0 commit comments