-
Notifications
You must be signed in to change notification settings - Fork 40.7k
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
bootStartScripts tasks should be an instance of org.gradle.api.tasks.application.CreateStartScripts rather than its superclass org.gradle.jvm.application.tasks.CreateStartScripts #39584
Comments
@cpuzicha Do you have a way for us to replicate the "The task 'bootStartScripts' (org.gradle.jvm.application.tasks.CreateStartScripts) is not a subclass of the given type (org.gradle.api.tasks.application.CreateStartScripts)" error? I'm not sure we've seen it in our own tests. |
File: build.gradle.kts
|
Here's one which we can unzip and use. |
If I change in
to
our build still works. However I lack the Gradle knowledge to determine if this is the right thing to do. |
It could be argued that this is user error as it's making an assumption about the type of the
That said, I don't think there's any good reason for us to be using Given that Gradle implicitly imports the |
This comment was marked as duplicate.
This comment was marked as duplicate.
Any reason this is added to 3.1.x but not to 3.2.x and most importantly the main branch? |
We fix in the oldest affected branch and then merge forwards. The fix will land in |
Output from my own plugin test, built with Gradle 8.6:
Shouldn't custom tasks prefer the API versions of tasks?
org.gradle.api.tasks.application.CreateStartScripts
extendsorg.gradle.jvm.application.tasks.CreateStartScripts
anyway.The text was updated successfully, but these errors were encountered: