-
Notifications
You must be signed in to change notification settings - Fork 125
tomcatRun fails with Gradle 7.0 due to @Internal annotation on private getter #200
Comments
Please send a pull request if you are interested in a fix. Thanks! |
There are multiple issues of the same kind when using Gradle 7.0, e.g.
|
I tried to get this fixed, however, the unit tests fail after cloning the repo (without any local changes), What I'm doing wrong, @bmuschko ?
|
@bmuschko any help is still appreciated. Currently, gradle-tomcat-plugin is not working with gradle 7.x at all |
For the record, we moved to embedding Tomcat in the app, which nicely avoids this problem. |
@jshiell Thanks for the info. However, we're using this plugin solely for validating our web application (especially jsp compilation) during ci/release builds |
@patric-r Those tests pass for me on my local machine as well as on CI. Are you executing the build with the checked-in Gradle Wrapper? Have a look at the test report for that source set to see the stack trace. I can't possibly know what's wrong with your test execution without seeing the stack trace. |
@bmuschko I did further investigating in the past hours. The reason is that the functional tests seems to try to download dependencies from the maven repository and testkits GradleRunner does not read the gradle.properties (due to test isolation) which means that my proxy settings are not available and therefore a silent timeout happens. I know that you're busy and searching another maintainer for this project but would you mind fixing this issue? |
For reference: 20e46f1 |
@bmuschko Thank you so much! I'll have a look. |
@patric-r Yes, I will do so soon. Releasing requires more work on the build as JCenter doesn't exist anymore. Need to switch over all that publishing code to the Gradle plugin portal. Will take me a bit. |
When running
tomcatRun
with Gradle 7.0 you receive the following error:I believe this should be easily resolved by removal
@Internal
from the getter in question, but I'm not familiar enough with the plugin API to make any predictions on what this would do to older versions.Thanks very much for all of your work in this plugin!
The text was updated successfully, but these errors were encountered: