gradle-capsule-plugin
gradle-capsule-plugin copied to clipboard
Gradle 7 support
While using kscript tool, I've got the error:
[kscript] Packaging script 'test' into standalone executable...
[kscript] [ERROR] packaging of 'test' failed:
Exit Code : 1Comand : bash -c cd '/Users/lnlysnke/.kscript/kscript_tmp_project__test.bf8ee045ad884690.jar_1638304823275' && gradle simpleCapsule
Stdout :
Welcome to Gradle 7.3!
Here are the highlights of this release:
- Easily declare new test suites in Java projects
- Support for Java 17
- Support for Scala 3
For more details see https://docs.gradle.org/7.3/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :compileKotlin NO-SOURCE
> Task :compileJava NO-SOURCE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :inspectClassesForKotlinIC
> Task :jar
> Task :simpleCapsule FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.3/userguide/command_line_interface.html#sec:command_line_warnings
3 actionable tasks: 3 executed
Stderr :
FAILURE: Build failed with an exception.
* What went wrong:
Some problems were found with the configuration of task ':simpleCapsule' (type 'FatCapsule').
- In plugin 'it.gianluz.capsule' type 'us.kirchmeier.capsule.task.FatCapsule' property 'applicationSource' is missing an input or output annotation.
Reason: A property without annotation isn't considered during up-to-date checking.
Possible solutions:
1. Add an input or output annotation.
2. Mark it as @Internal.
Please refer to https://docs.gradle.org/7.3/userguide/validation_problems.html#missing_annotation for more details about this problem.
- In plugin 'it.gianluz.capsule' type 'us.kirchmeier.capsule.task.FatCapsule' property 'capletConfiguration' is missing an input or output annotation.
Reason: A property without annotation isn't considered during up-to-date checking.
Possible solutions:
1. Add an input or output annotation.
2. Mark it as @Internal.
Please refer to https://docs.gradle.org/7.3/userguide/validation_problems.html#missing_annotation for more details about this problem.
- In plugin 'it.gianluz.capsule' type 'us.kirchmeier.capsule.task.FatCapsule' property 'capsuleConfiguration' is missing an input or output annotation.
Reason: A property without annotation isn't considered during up-to-date checking.
Possible solutions:
1. Add an input or output annotation.
2. Mark it as @Internal.
Please refer to https://docs.gradle.org/7.3/userguide/validation_problems.html#missing_annotation for more details about this problem.
- In plugin 'it.gianluz.capsule' type 'us.kirchmeier.capsule.task.FatCapsule' property 'capsuleFilter' is missing an input or output annotation.
Reason: A property without annotation isn't considered during up-to-date checking.
Possible solutions:
1. Add an input or output annotation.
2. Mark it as @Internal.
Please refer to https://docs.gradle.org/7.3/userguide/validation_problems.html#missing_annotation for more details about this problem.
- In plugin 'it.gianluz.capsule' type 'us.kirchmeier.capsule.task.FatCapsule' property 'capsuleManifest' is missing an input or output annotation.
Reason: A property without annotation isn't considered during up-to-date checking.
Possible solutions:
1. Add an input or output annotation.
2. Mark it as @Internal.
Please refer to https://docs.gradle.org/7.3/userguide/validation_problems.html#missing_annotation for more details about this problem.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 22s
After some googling I've found this question on stackoverflow.com and it seems like a solution for that is not so difficult.
As a workaround just for touching kscript I downgraded my gradle version to 6.x, but it is better to be fixed I think.
Maybe later I'll make a PR, but if someone do that faster it would be great! 😄