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
Spring Boot 1.5.1 deprecation warning with Gradle 3.3, sub-module, and springBoot classifier #8154
Comments
I'm not sure there's much we can do about this. The call to the deprecated API is being made by Gradle:
Note that we're calling |
@eriwen If you have a moment, your input would be much appreciated here |
@wilkinsona Acknowledged. I've raised this with the team and I expect we'll get back to you with guidance in the next few days. |
@wilkinsona This looks very similar to #8120. You say you're calling The nebula-dependency-recommender-plugin had this same issue and resolved it thusly. Additional information available at gradle/gradle#1311 Let me know if that does not solve your need. |
@eriwen Unless I've missed it, Edit: I see they've used reflection in the Nebula plugin. I guess we'll have to do the same then |
@wilkinsona Could you backport this fix to Spring Boot 1.4? I am not able to update to Spring Boot 1.5 because I am forced to stay with an older release of Spring Data. Gradle team does not fix bugs in versions older than current, so I have to update it to avoid being exposed to bugs. As result, I cannot use Gradle 2 as it has broken Maven support (https://issues.gradle.org/browse/GRADLE-3496). Maven is broken again in 3.5 (gradle/gradle#1811). I would like to use Gradle 4.0 as it promises an important fix to Maven publishing, but this issue breaks Gradle. I understand Gradle >2 is not officially supported in Spring Boot 1.4, but backporting this fix does not seem to be complicated or risky, and enables users to at least try to use Gradle 4+. |
Note that we will have Gradle 3.5.1 early next week which fixes
gradle/gradle#1811
…On Sun, Apr 23, 2017 at 11:23 AM Piotr Kubowicz ***@***.***> wrote:
@wilkinsona <https://github.com/wilkinsona> Could you backport this fix
to Spring Boot 1.4? I am not able to update to Spring Boot 1.5 because I am
forced to stay with an older release of Spring Data. Gradle team does not
fix bugs in versions older than current, so I have to update it to avoid
being exposed to bugs. As result, I cannot use Gradle 2 as it has broken
Maven support (https://issues.gradle.org/browse/GRADLE-3496). Maven is
broken again in 3.5 (gradle/gradle#1811
<gradle/gradle#1811>). I would like to use
Gradle 4.0 as it promises an important fix to Maven publishing, but this
issue breaks Gradle.
I understand Gradle >2 is not officially supported in Spring Boot 1.4, but
backporting this fix does not seem to be complicated or risky, and enables
users to at least try to use Gradle 4+.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8154 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADJTnvNBMSG4NIQDNSssUIq_cAqAyzGks5ry5cngaJpZM4Ly2-t>
.
|
@pkubowicz I am rather reluctant to introduce the use of reflection in 1.4 to attempt to support something that we have already stated that we do not support. It's very difficult to justify the risk (and there is always some risk). That issues claims to be fixed in 2.14.1. Is that not an option for you? |
Generally, I don't like the idea that a single library is able to force me to choose which build tool should I use. For me it's more natural that build dependencies and project dependencies are completely independent. I would welcome a possibility that you can use the most current Spring Boot Gradle plugin with the Spring Boot JAR version overridden to an older release. |
I don't believe we're forcing you. You are free to ignore the deprecation warning if you wish.
That's already possible, although not recommended, with 2.0 snapshots. |
I am getting this with Spring Boot 1.5.1 and Gradle 3.3. Note there has to be a sub-module (even if it is empty) and a classifier in the springBoot task.
build.gradle
settings.gradle
Empty sub/build.settings file.
Running
./gradlew clean
will invoke the error.The text was updated successfully, but these errors were encountered: