File tree 1 file changed +3
-2
lines changed
buildSrc/src/main/java/org/opensearch/gradle
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -121,14 +121,15 @@ public String call() throws Exception {
121
121
});
122
122
});
123
123
124
- // Add git origin info to generated POM files
125
124
publishing .getPublications ().withType (MavenPublication .class , publication -> {
125
+ // Add git origin info to generated POM files
126
126
publication .getPom ().withXml (PublishPlugin ::addScmInfo );
127
127
128
128
// have to defer this until archivesBaseName is set
129
129
project .afterEvaluate (p -> publication .setArtifactId (getArchivesBaseName (project )));
130
130
131
- if (project .getPlugins ().hasPlugin ("opensearch.java" )) {
131
+ // publish sources and javadoc for Java projects.
132
+ if (project .getPluginManager ().hasPlugin ("opensearch.java" )) {
132
133
publication .artifact (project .getTasks ().getByName ("sourcesJar" ));
133
134
publication .artifact (project .getTasks ().getByName ("javadocJar" ));
134
135
}
You can’t perform that action at this time.
0 commit comments