-
Notifications
You must be signed in to change notification settings - Fork 2
chore: Update publishing to maven central #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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 }}
fee60bd to
13c76bd
Compare
| kotlin("jvm") | ||
| `kotlin-dsl` | ||
| id("org.ajoberstar.grgit") version "4.1.0" | ||
| id("org.ajoberstar.grgit") version "4.1.1" |
There was a problem hiding this comment.
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")) |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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 | |||
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
13c76bd to
671704e
Compare
No description provided.