Skip to content

Compat isCanBeDeclared usages #265

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

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

Goooler
Copy link
Contributor

@Goooler Goooler commented Jul 27, 2024

Closes #263.

@Goooler
Copy link
Contributor Author

Goooler commented Jul 27, 2024

I tested this on Gradle 8.1, and it works but failed for Gradle 7 due to some other infra issues. If you still want the Gradle 7 compatibility, may fix the test matrix and cover it first, or we can ensure this plugin is really compatible.

FAILURE: Build failed with an exception.

* What went wrong:
Could not initialize class org.jetbrains.kotlin.gradle.report.ConfigureReporingKt

* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Exception is:
java.lang.NoClassDefFoundError: Could not initialize class org.jetbrains.kotlin.gradle.report.ConfigureReporingKt
	at org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Companion.registerIfAbsent(BuildFlowService.kt:67)
	at org.jetbrains.kotlin.gradle.plugin.DefaultKotlinBasePlugin.apply(KotlinPluginWrapper.kt:82)
	at org.jetbrains.kotlin.gradle.plugin.KotlinBasePluginWrapper.apply(KotlinPluginWrapper.kt:239)
	at org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper.apply(PluginWrappers.kt:27)
	at org.jetbrains.kotlin.gradle.plugin.KotlinPluginWrapper.apply(PluginWrappers.kt:19)
	at org.gradle.api.internal.plugins.ImperativeOnlyPluginTarget.applyImperative(ImperativeOnlyPluginTarget.java:43)
	at org.gradle.api.internal.plugins.RuleBasedPluginTarget.applyImperative(RuleBasedPluginTarget.java:51)
	at org.gradle.api.internal.plugins.DefaultPluginManager.addPlugin(DefaultPluginManager.java:187)
	at org.gradle.api.internal.plugins.DefaultPluginManager.access$100(DefaultPluginManager.java:52)

@shanshin shanshin self-requested a review July 31, 2024 13:54
@shanshin
Copy link
Contributor

Thanks for the effort!

@shanshin
Copy link
Contributor

java.lang.NoClassDefFoundError: Could not initialize class org.jetbrains.kotlin.gradle.report.ConfigureReporingKt

This is an infrastructure issue, I'm checking locally with previous Gradle versions

@shanshin shanshin merged commit c00ca4b into Kotlin:master Jul 31, 2024
@Goooler Goooler deleted the compat-is-can-be-declared branch July 31, 2024 15:49
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.

Error when using version 0.16.2 in projects with a Gradle version older than 8.2
2 participants