Skip to content

Conversation

@piiertho
Copy link
Member

@piiertho piiertho commented Aug 6, 2025

No description provided.

@piiertho piiertho requested a review from Copilot August 6, 2025 13:35
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the publishing configuration to use Maven Central with a new plugin and updated credentials. The changes modernize the Gradle wrapper versions and refactor the publishing setup to use the vanniktech Maven publish plugin.

Key changes:

  • Updates Gradle wrapper from version 7.4.2/8.0.2 to 8.13 across multiple modules
  • Refactors Maven Central publishing to use the vanniktech plugin instead of custom implementation
  • Updates environment variable names for Maven Central credentials

Reviewed Changes

Copilot reviewed 7 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
samples/gradle/wrapper/gradle-wrapper.properties Updates Gradle wrapper to version 8.13
kotlin-preprocessors/src/main/kotlin/com/utopiarise/kotlin/preprocessors/gradle/PreProcessorPlugin.kt Adds explicit it receiver for lambda configuration
kotlin-preprocessors/gradle/wrapper/gradle-wrapper.properties Updates Gradle wrapper to version 8.13
kotlin-preprocessors/buildSrc/src/main/kotlin/publish/mavencentral/PublishToMavenCentralPlugin.kt Complete refactor to use vanniktech Maven publish plugin
kotlin-preprocessors/buildSrc/build.gradle.kts Adds vanniktech plugin dependency
kotlin-preprocessors/build.gradle.kts Comments out kotlin-dsl plugin and updates grgit version
.github/workflows/publish.yaml Updates environment variable names for Maven Central credentials
Files not reviewed (3)
  • kotlin-preprocessors/.idea/codeStyles/Project.xml: Language not supported
  • kotlin-preprocessors/.idea/gradle.xml: Language not supported
  • kotlin-preprocessors/.idea/kotlinc.xml: Language not supported
Comments suppressed due to low confidence (2)

.github/workflows/publish.yaml:35

  • The environment variable name should match the one used in the plugin code. The plugin expects 'UTOPIA_RISE_MAVEN_CENTRAL_PORTAL_TOKEN_USERNAME' but the workflow uses 'UTOPIA_RISE_MAVEN_CENTRAL_TOKEN_USERNAME'.
          UTOPIA_RISE_MAVEN_CENTRAL_TOKEN_USERNAME: ${{ secrets.UTOPIA_RISE_MAVEN_CENTRAL_TOKEN_USERNAME }}

.github/workflows/publish.yaml:36

  • The environment variable name should match the one used in the plugin code. The plugin expects 'UTOPIA_RISE_MAVEN_CENTRAL_PORTAL_TOKEN_PASSWORD' but the workflow uses 'UTOPIA_RISE_MAVEN_CENTRAL_TOKEN_PASSWORD'.
          UTOPIA_RISE_MAVEN_CENTRAL_TOKEN_PASSWORD: ${{ secrets.UTOPIA_RISE_MAVEN_CENTRAL_TOKEN_PASSWORD }}

@piiertho piiertho force-pushed the chore/update-publishing-to-maven-central branch 13 times, most recently from fee60bd to 13c76bd Compare August 7, 2025 21:09
@piiertho piiertho marked this pull request as ready for review August 7, 2025 21:13
@piiertho piiertho requested a review from CedNaru August 7, 2025 21:13
kotlin("jvm")
`kotlin-dsl`
id("org.ajoberstar.grgit") version "4.1.0"
id("org.ajoberstar.grgit") version "4.1.1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5.3.2 is available


dependencies {
implementation(kotlin("gradle-plugin", version = "1.8.20"))
implementation(kotlin("gradle-plugin", version = "2.0.21"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not directly 2.2.0?

dependencies {
implementation(kotlin("gradle-plugin", version = "1.8.20"))
implementation(kotlin("gradle-plugin", version = "2.0.21"))
implementation("com.vanniktech:gradle-maven-publish-plugin:0.32.0")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.34.0 is available

pom {
name.set("kotlin-preprocessors")
description.set("Gradle plugin to define preprocessors for kotlin language")
url.set("https://github.com/utopia-rise/godot-kotlin-jvm.git")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the url is copy pasted from the kotlin jvm project and should be updated to match this project again

scm {
connection.set("scm:git:https://github.com/utopia-rise/kotlin-preprocessors")
developerConnection.set("scm:git:github.com:utopia-rise/kotlin-preprocessors.git")
connection.set("scm:git:https://github.com/utopia-rise/godot-kotlin-jvm")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@@ -1,13 +1,13 @@
import kotlincompile.definitions.SamplesDefinitions
import kotlincompile.definitions.SamplesBuildConfig
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this suddenly renamed? which change triggered that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was something forgotten in former update

@piiertho piiertho force-pushed the chore/update-publishing-to-maven-central branch from 13c76bd to 671704e Compare August 11, 2025 14:57
@piiertho piiertho requested a review from chippmann August 11, 2025 21:09
@piiertho piiertho merged commit 781668d into main Aug 13, 2025
1 check passed
@piiertho piiertho deleted the chore/update-publishing-to-maven-central branch August 13, 2025 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants