File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change
1
+ import com.vanniktech.maven.publish.GradlePlugin
2
+ import com.vanniktech.maven.publish.JavadocJar
3
+ import com.vanniktech.maven.publish.SonatypeHost
4
+
1
5
plugins {
2
6
// Core Gradle plugins
3
7
id " java-gradle-plugin"
@@ -34,11 +38,15 @@ jacocoTestReport {
34
38
}
35
39
}
36
40
37
- plugins. withId(" com.vanniktech.maven.publish" ) {
38
- mavenPublishing {
39
- publishToMavenCentral(" S01" )
40
- signAllPublications()
41
- }
41
+ mavenPublishing {
42
+ // Override default configuration: by default `com.vanniktech.maven.publish` uses
43
+ // `new GradlePublishPlugin()` because it detects that we use `com.gradle.plugin-publish`.
44
+ // However since we also publish to Maven Central the default publication created by
45
+ // `com.gradle.plugin-publish` is not suitable (Maven Central publication requires sources
46
+ // and Javadoc).
47
+ configure(new GradlePlugin (new JavadocJar.Dokka (" dokkaHtml" )))
48
+ publishToMavenCentral(SonatypeHost . S01 )
49
+ signAllPublications()
42
50
}
43
51
44
52
gradlePlugin {
You can’t perform that action at this time.
0 commit comments