Skip to content

Gradle Plugin produces warning when running with Gradle 4.0 #9559

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

Closed
wfhartford opened this issue Jun 20, 2017 · 3 comments
Closed

Gradle Plugin produces warning when running with Gradle 4.0 #9559

wfhartford opened this issue Jun 20, 2017 · 3 comments
Labels
type: bug A general bug
Milestone

Comments

@wfhartford
Copy link

In Gradle 4.0, the structure of the build directory changed so that each compiler task uses a different output directory. This necessitated the deprecation of the SourceSetOutput.classesDir property because there are multiple classes directories. Uses of this property should be replaced by SourceSetOutputs.classesDirs. API Documentation is here.

Version 1.5.4.RELEASE produces the following warning at the beginning of a build:

Gradle now uses separate output directories for each JVM language, but this build assumes a single directory for all classes from a source set. This behaviour has been deprecated and is scheduled to be removed in Gradle 5.0

Attached getClassesDirStack.txt includes the full stack trace. This issue should be reproducible in any spring boot application using gradle by upgrading to gradle version 4.0.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 20, 2017
@rajadilipkolli
Copy link
Contributor

See #9516

@wilkinsona
Copy link
Member

wilkinsona commented Jun 21, 2017

As stated in the documentation 1.5.x only supports Gradle 2 (2.9+) and 3.

We might be able to add a reflective hack to take care of the warning, but I'd prefer that Gradle didn't generate such warnings for code from a plugin in the first place (see gradle/gradle#1311 and gradle/gradle#1372).

@wilkinsona wilkinsona added priority: normal type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 21, 2017
@wilkinsona wilkinsona added this to the 1.5.5 milestone Jun 21, 2017
@wilkinsona
Copy link
Member

I've added a reflective hack in e6a3ca5. Please note that Gradle 4.x isn't officially supported in Boot 1.5. It may work, but there may also come a point where that's not the case and there will be nothing we can do about it. We've been bitten in the past by trying to support too many major versions of Gradle at the same time and supporting 2.x and 3.x is the focus of 1.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

4 participants