I have a 1.1.7 spring-boot app using Gradle 1.10 & jdk1.8. I use Groovy/Spock for testing It has two dependencies - jars build with Apache Maven 3.1.1 and jdk 1.8. I b
I had this BUG! exception in phase 'semantic analysis' in source unit '...' issue today and upgrading gradle (as mentioned in a comment) didn't work.
What worked for me was cleaning the gradle cache:
rm -rf $HOME/.gradle/caches/
and project gradle directory
rm -rf $PROJECT/.gradle/caches/ && rm -rf $PROJECT/build/
Related How can I force gradle to redownload dependencies?