File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 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+
15plugins {
26 // Core Gradle plugins
37 id " java-gradle-plugin"
@@ -34,11 +38,15 @@ jacocoTestReport {
3438 }
3539}
3640
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()
4250}
4351
4452gradlePlugin {
You can’t perform that action at this time.
0 commit comments