spring-framework : v5.2.0.RC1 Gradle and JVM version: Spring Gradle build fails on MS Windows

1.. when i clone the project, i execute the 'gradlew :spring-oxm:compileTestJava' in the cmd . And the result is successful Spring Gradle build fails on MS Windows

  1. The i use Idea import the project , gradle build is fail Spring Gradle build fails on MS Windows

and i try to solve this problem,but unsatisfactory

Thanks!

Comment From: bclozel

The "Build from source" wiki section mentions that you need to use our Gradle Wrapper. I guess we're using an API (within scripts or plugins) which is not available in Gradle 4.6.

Could you try building using ./gradlew instead of your local Gradle installation?

Comment From: QBH-insist

hi, i execute the './gradlew build', but the reult still fail, Spring Gradle build fails on MS Windows

the image is 的‘ file:///F:/allworkspace/ideaworkspace/spring-framework/spring-context-indexer/build/reports/tests/test/index.html’ context,it tell me delete dir fail, but it excetue by admin role Spring Gradle build fails on MS Windows

Comment From: bclozel

This looks similar to spring-io/initializr#862 and I've just pushed a fix for the test you're having issues with. Could you try again after updating your master branch?

Comment From: QBH-insist

Yes, of course, Thanks but there is an another problem Spring Gradle build fails on MS Windows

Spring Gradle build fails on MS Windows

Comment From: bclozel

@QBH-insist are you able to consistently reproduce this issue or does it happen sometimes only? @sbrannen I'm not super familiar with that part of our codebase; do you see anything in that test that could result with this?

Comment From: sbrannen

That's a bit strange.

The test sleeps for 200 ms (i.e., 2,000,000,000 ns), but for @QBH-insist the test appears to sleep for less than that.

I've never seen that test fail locally or on our CI server, but I suppose we could subtract a fudgeFactor like we add for other assertions in that StopWatchTests.

Comment From: sbrannen

@QBH-insist, I made some changes to StopWatchTests in bfbe84d1c67a743efbbdda06c64c4ae74c5fc221.

Please let us know if that helps.

Comment From: QBH-insist

hi, i pull the Latest branch, execute the command './gradlew build', the result like that,still exception. Thank you very much for your patience and help me solve the problem opportune. Spring Gradle build fails on MS Windows Spring Gradle build fails on MS Windows Spring Gradle build fails on MS Windows

Comment From: youngfuture

I have the same problem!

1.I clone the code 2.cd spring-framework 3.gradlew :spring-oxm:compileTestJava 4.build success but I import the code to idea fail!

idea201902-64 jdk1.8.0_221 gradle 4.9

Could you update import-into-idea.md file to an new ? We look forward to your help!thanks so much! @sbrannen

Comment From: youngfuture

Spring Gradle build fails on MS Windows

Comment From: bclozel

@youngfuture did you run this command with the gradle wrapper ./gradlew? Do you have any specific Gradle configuration or script in your $HOME/.gradle folder? This plugin is published here, so I don't know why your setup won't resolve this build dependency.

Comment From: sbrannen

@QBH-insist and @youngfuture, have you tried again recently on MS Windows?

Comment From: QBH-insist

@QBH-insist and @youngfuture, have you tried again recently on MS Windows?

hi, i try again and is success,thanks!

Comment From: sbrannen

Great! Glad to hear it now works for you, @QBH-insist.

Based on that feedback, I am now closing this issue.

@youngfuture, please try again with a fresh clone from master. If you still encounter issues, feel free to post back here or (preferably) create a new issue with details specific to the failures you encounter.