BUG! exception in phase 'semantic analysis'

后端 未结 5 653
感情败类
感情败类 2020-12-05 14:37

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

5条回答
  •  伪装坚强ぢ
    2020-12-05 15:12

    This happened to me when I upgraded my project with groovy Spock tests from JDK 8 to JDK 11.

    The fix was to upgrade spock version to 1.3-groovy-2.5 and groovy version to 2.5.3 for my gradle dependencies.

    In addition, in my case, I had to add implementation of jaxws and jaxb to my dependencies as they have been removed from JDK 11:

        implementation 'com.sun.xml.ws:jaxws-ri:2.3.2'
        implementation 'com.sun.xml.bind:jaxb-impl:2.4.0-b180830.0438'
    

提交回复
热议问题