Skip to content

Conversation

@alpichler
Copy link

@alpichler alpichler commented Jan 23, 2026

Depends on cloudflightio/license-gradle-plugin#32

Upgrade Gradle to 9.3.0
Upgrade Kotlin & KGP to 2.3.0 (no longer supports versions <1.9)
Upgrade Publish Gradle Plugin to 2.0.0

@alpichler alpichler force-pushed the alpichler/gradle93 branch 2 times, most recently from de0b6a5 to 85bea1e Compare January 23, 2026 13:59
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.8.1")
Copy link
Author

Choose a reason for hiding this comment

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

consumers of the plugin using JUnit Platform will need to add this

Comment on lines 37 to 42
}

// Workaround for https://github.com/n0mer/gradle-git-properties/issues/260
// The plugin crashes on Gradle 9
tasks.withType(com.gorylenko.GenerateGitPropertiesTask).configureEach {
enabled = false
Copy link
Author

Choose a reason for hiding this comment

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

TODO: remove this once the issue is resolved

Comment on lines +57 to +62
// TODO: remove when upgrading io.cloudflight.autoconfigure-settings in settings.gradle.kts
// io.cloudflight.autoconfigure-settings 1.2.0 pulls in kotlin gradle plugin 2.1.20
// this breaks the build as it depends on features only available up to gradle 8.13
implementation(libs.kotlin.gradleplugin)

Copy link
Author

Choose a reason for hiding this comment

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

TODO

@alpichler alpichler marked this pull request as draft January 23, 2026 15:32
Comment on lines +22 to +28

/**
* Monkey-patched ModelModifier to use JavaType in resolve() call instead of Type.
* In groovy 3, type is automatically converted, but in groovy 4 (from gradle 9.0+) it is not.
* TODO: Remove this when https://github.com/gigaSproule/swagger-gradle-plugin/issues/186 is fixed.
*/
class ModelModifier extends ModelResolver {
Copy link
Author

@alpichler alpichler Jan 23, 2026

Choose a reason for hiding this comment

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

we should really avoid this, but the only other solution i can think of is replacing com.benjaminsproule:swagger-gradle-plugin and gradle.plugin.org.hidetake:gradle-swagger-generator-plugin with other plugins that are still being maintained.

Copy link
Author

Choose a reason for hiding this comment

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

replacement suggestions:
gradle.plugin.org.hidetake:gradle-swagger-generator-plugin => https://github.com/OpenAPITools/openapi-generator/tree/master
com.benjaminsproule:swagger-gradle-plugin => https://github.com/springdoc/springdoc-openapi-gradle-plugin

@alpichler alpichler force-pushed the alpichler/gradle93 branch 2 times, most recently from 4bd2336 to d171573 Compare February 2, 2026 16:43
Signed-off-by: Alex Pichler <alex.pichler@cloudflight.io>
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.

1 participant