Skip to content

Commit

Permalink
fix(deps): update dependency com.vanniktech:gradle-maven-publish-plug…
Browse files Browse the repository at this point in the history
…in to v0.30.0 (#280)

* fix(deps): update dependency com.vanniktech:gradle-maven-publish-plugin to v0.30.0
* Update Kotlin plugin application. This allows gradle-maven-publish -plugin to access KotlinMultiplatformExtension in build-support while avoiding a plugin version conflict in the main project. The desired version of the Kotlin compiler is still used.
* Remove unneeded suppression

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Drew Hamilton <[email protected]>
  • Loading branch information
renovate[bot] and drewhamilton authored Dec 16, 2024
1 parent 79e50bf commit 84e6124
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build-support/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repositories {
}

dependencies {
implementation(libs.kotlin.gradleApi)
implementation(libs.kotlin.gradle)
implementation(libs.plugin.buildconfig)
implementation(libs.plugin.mavenPublish)
implementation(libs.plugin.dokka)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class PokoBuildPlugin : Plugin<Project> {
project.pluginManager.apply("com.vanniktech.maven.publish")

val mavenPublishing = project.extensions.getByName("mavenPublishing") as MavenPublishBaseExtension
@Suppress("UnstableApiUsage")
mavenPublishing.apply {
coordinates(project.pokoGroupId, project.name, project.pokoVersion)

Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
// Note: kotlin-jvm and kotlin-multiplatform plugins are added implicitly via build-support

alias(libs.plugins.kotlinx.binaryCompatibilityValidator) apply false
alias(libs.plugins.ksp) apply false
}
Expand Down
3 changes: 2 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ kotlinCompileTestingFork = { module = "dev.zacsweers.kctfork:core", version.ref
kotlin-embeddableCompiler = { module = "org.jetbrains.kotlin:kotlin-compiler-embeddable", version.ref = "kotlin" }
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
kotlin-gradle = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
kotlin-gradleApi = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin-api", version.ref = "kotlin" }

assertk = "com.willowtreeapps.assertk:assertk:0.28.1"
asm-util = "org.ow2.asm:asm-util:9.7.1"
testParameterInjector = "com.google.testparameterinjector:test-parameter-injector:1.18"

plugin-buildconfig = "com.github.gmazzo.buildconfig:plugin:5.5.1"
plugin-mavenPublish = "com.vanniktech:gradle-maven-publish-plugin:0.25.3"
plugin-mavenPublish = "com.vanniktech:gradle-maven-publish-plugin:0.30.0"
plugin-dokka = "org.jetbrains.dokka:dokka-gradle-plugin:1.9.20"

[plugins]
Expand Down
2 changes: 1 addition & 1 deletion poko-annotations/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl

plugins {
alias(libs.plugins.kotlin.multiplatform)
id("org.jetbrains.kotlin.multiplatform")
}

pokoBuild {
Expand Down
2 changes: 1 addition & 1 deletion poko-compiler-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
alias(libs.plugins.kotlin.jvm)
id("org.jetbrains.kotlin.jvm")
alias(libs.plugins.ksp)
}

Expand Down
2 changes: 1 addition & 1 deletion poko-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
`java-gradle-plugin`
alias(libs.plugins.kotlin.jvm)
id("org.jetbrains.kotlin.jvm")
}

pokoBuild {
Expand Down
2 changes: 1 addition & 1 deletion poko-tests-without-k2/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import org.jetbrains.kotlin.gradle.plugin.PLUGIN_CLASSPATH_CONFIGURATION_NAME
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
alias(libs.plugins.kotlin.multiplatform)
id("org.jetbrains.kotlin.multiplatform")
}

tasks.withType<KotlinCompile>().configureEach {
Expand Down
2 changes: 1 addition & 1 deletion poko-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import org.jetbrains.kotlin.gradle.plugin.NATIVE_COMPILER_PLUGIN_CLASSPATH_CONFI
import org.jetbrains.kotlin.gradle.plugin.PLUGIN_CLASSPATH_CONFIGURATION_NAME

plugins {
alias(libs.plugins.kotlin.multiplatform)
id("org.jetbrains.kotlin.multiplatform")
}

val jvmToolchainVersion: Int? = System.getenv()["poko_tests_jvm_toolchain_version"]?.toInt()
Expand Down
2 changes: 1 addition & 1 deletion poko-tests/performance/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
alias(libs.plugins.kotlin.jvm)
id("org.jetbrains.kotlin.jvm")
}

dependencies {
Expand Down

0 comments on commit 84e6124

Please sign in to comment.