Skip to content

Commit 7f28261

Browse files
committed
Apply plugin in weird place
1 parent 4ac2210 commit 7f28261

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ groovyGradlePlugin = { id = "dev.gradleplugins.groovy-gradle-plugin", version =
2323
shadow = { id = "com.github.johnrengelman.shadow", version = "7.1.2" }
2424
# do not upgrade `mavenPublish` to 0.18.0, it does not generate the pom-default.xml and module.json under
2525
# build/publications/maven
26-
mavenPublish = { id = "com.vanniktech.maven.publish", version = "0.21.0" }
26+
mavenPublish = { id = "com.vanniktech.maven.publish", version = "0.27.0" }
2727
androidApplication = { id = "com.android.application", version.ref = "agp" }
2828
androidLibrary = { id = "com.android.library", version.ref = "agp" }
2929
buildConfig = { id = "com.github.gmazzo.buildconfig", version = "4.2.0" }

plugin-build/build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ plugins {
1313
id("distribution")
1414
alias(libs.plugins.dokka)
1515
id("java-gradle-plugin")
16-
alias(libs.plugins.mavenPublish)
16+
alias(libs.plugins.mavenPublish) apply false
1717
alias(libs.plugins.spotless)
1818
// we need this plugin in order to include .aar dependencies into a pure java project, which the
1919
// gradle plugin is
@@ -239,6 +239,8 @@ distributions {
239239
}
240240
}
241241

242+
apply { plugin("com.vanniktech.maven.publish") }
243+
242244
tasks.named("distZip") {
243245
dependsOn("publishToMavenLocal")
244246
onlyIf { inputs.sourceFiles.isEmpty.not().also { require(it) { "No distribution to zip." } } }

0 commit comments

Comments
 (0)