java-sdk icon indicating copy to clipboard operation
java-sdk copied to clipboard

Java Version Mismatch between Core SDK & Spring Modules

Open cicoyle opened this issue 6 months ago • 4 comments

The Java SDK project has a configuration inconsistency where the core modules use Java 11, but the Spring modules were configured to use Spring Framework 6.1.21 and Spring Boot 3.2.6, and now we are at 6.2.7 && 3.4.6 which require Java 17+.

Core SDK modules (sdk, sdk-workflows, etc.) are configured for Java 11 Spring modules are using Spring Framework 6.2.7 and Spring Boot 3.4.6, which require Java 17+ This creates a compilation error when trying to build the entire project

See the core sdk config in the pom.xml here See the spring parent pom that has java 11, but incompatible deps

from master run mvn compile -q

git checkout master
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
cassie@Cassandras-MacBook-Pro java-sdk % git pull
Already up to date.
cassie@Cassandras-MacBook-Pro java-sdk % mvn compile -q     
[ERROR] COMPILATION ERROR : 
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsApplication.java:[16,32] cannot access org.springframework.boot.SpringApplication
  bad class file: /Users/cassie/.m2/repository/org/springframework/boot/spring-boot/3.4.3/spring-boot-3.4.3.jar(/org/springframework/boot/SpringApplication.class)
    class file has wrong version 61.0, should be 55.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsApplication.java:[17,46] cannot access org.springframework.boot.autoconfigure.SpringBootApplication
  bad class file: /Users/cassie/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.4.3/spring-boot-autoconfigure-3.4.3.jar(/org/springframework/boot/autoconfigure/SpringBootApplication.class)
    class file has wrong version 61.0, should be 55.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsApplication.java:[20,2] cannot find symbol
  symbol: class SpringBootApplication
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsConfiguration.java:[18,43] cannot access org.springframework.boot.web.client.RestTemplateBuilder
  bad class file: /Users/cassie/.m2/repository/org/springframework/boot/spring-boot/3.4.3/spring-boot-3.4.3.jar(/org/springframework/boot/web/client/RestTemplateBuilder.class)
    class file has wrong version 61.0, should be 55.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsConfiguration.java:[19,46] cannot access org.springframework.context.annotation.Bean
  bad class file: /Users/cassie/.m2/repository/org/springframework/spring-context/6.2.3/spring-context-6.2.3.jar(/org/springframework/context/annotation/Bean.class)
    class file has wrong version 61.0, should be 55.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsConfiguration.java:[20,46] cannot access org.springframework.context.annotation.Configuration
  bad class file: /Users/cassie/.m2/repository/org/springframework/spring-context/6.2.3/spring-context-6.2.3.jar(/org/springframework/context/annotation/Configuration.class)
    class file has wrong version 61.0, should be 55.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsConfiguration.java:[21,38] cannot access org.springframework.web.client.RestTemplate
  bad class file: /Users/cassie/.m2/repository/org/springframework/spring-web/6.2.3/spring-web-6.2.3.jar(/org/springframework/web/client/RestTemplate.class)
    class file has wrong version 61.0, should be 55.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsConfiguration.java:[23,2] cannot find symbol
  symbol: class Configuration
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsConfiguration.java:[31,10] cannot find symbol
  symbol:   class RestTemplate
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsConfiguration
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[32,52] cannot access org.springframework.beans.factory.annotation.Autowired
  bad class file: /Users/cassie/.m2/repository/org/springframework/spring-beans/6.2.3/spring-beans-6.2.3.jar(/org/springframework/beans/factory/annotation/Autowired.class)
    class file has wrong version 61.0, should be 55.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[33,47] cannot access org.springframework.web.bind.annotation.PostMapping
  bad class file: /Users/cassie/.m2/repository/org/springframework/spring-web/6.2.3/spring-web-6.2.3.jar(/org/springframework/web/bind/annotation/PostMapping.class)
    class file has wrong version 61.0, should be 55.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[34,47] cannot access org.springframework.web.bind.annotation.RequestBody
  bad class file: /Users/cassie/.m2/repository/org/springframework/spring-web/6.2.3/spring-web-6.2.3.jar(/org/springframework/web/bind/annotation/RequestBody.class)
    class file has wrong version 61.0, should be 55.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[35,47] cannot access org.springframework.web.bind.annotation.RequestParam
  bad class file: /Users/cassie/.m2/repository/org/springframework/spring-web/6.2.3/spring-web-6.2.3.jar(/org/springframework/web/bind/annotation/RequestParam.class)
    class file has wrong version 61.0, should be 55.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[36,47] cannot access org.springframework.web.bind.annotation.RestController
  bad class file: /Users/cassie/.m2/repository/org/springframework/spring-web/6.2.3/spring-web-6.2.3.jar(/org/springframework/web/bind/annotation/RestController.class)
    class file has wrong version 61.0, should be 55.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[44,2] cannot find symbol
  symbol: class RestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/chain/ChainWorkflow.java:[18,38] cannot access org.springframework.stereotype.Component
  bad class file: /Users/cassie/.m2/repository/org/springframework/spring-context/6.2.3/spring-context-6.2.3.jar(/org/springframework/stereotype/Component.class)
    class file has wrong version 61.0, should be 55.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/chain/ChainWorkflow.java:[20,2] cannot find symbol
  symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/chain/ToUpperCaseActivity.java:[22,2] cannot find symbol
  symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/child/ChildWorkflow.java:[20,2] cannot find symbol
  symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/child/ParentWorkflow.java:[20,2] cannot find symbol
  symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/child/ReverseActivity.java:[22,2] cannot find symbol
  symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/continueasnew/CleanUpActivity.java:[26,2] cannot find symbol
  symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/continueasnew/ContinueAsNewWorkflow.java:[23,2] cannot find symbol
  symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/externalevent/ApproveActivity.java:[24,2] cannot find symbol
  symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/externalevent/DenyActivity.java:[24,2] cannot find symbol
  symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/externalevent/ExternalEventWorkflow.java:[20,2] cannot find symbol
  symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/fanoutin/CountWordsActivity.java:[24,2] cannot find symbol
  symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/fanoutin/FanOutInWorkflow.java:[24,2] cannot find symbol
  symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/remoteendpoint/CallRemoteEndpointActivity.java:[21,52] cannot access org.springframework.beans.factory.annotation.Value
  bad class file: /Users/cassie/.m2/repository/org/springframework/spring-beans/6.2.3/spring-beans-6.2.3.jar(/org/springframework/beans/factory/annotation/Value.class)
    class file has wrong version 61.0, should be 55.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/remoteendpoint/CallRemoteEndpointActivity.java:[22,32] cannot access org.springframework.http.HttpEntity
  bad class file: /Users/cassie/.m2/repository/org/springframework/spring-web/6.2.3/spring-web-6.2.3.jar(/org/springframework/http/HttpEntity.class)
    class file has wrong version 61.0, should be 55.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/remoteendpoint/CallRemoteEndpointActivity.java:[26,2] cannot find symbol
  symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/remoteendpoint/CallRemoteEndpointActivity.java:[35,11] cannot find symbol
  symbol:   class RestTemplate
  location: class io.dapr.springboot.examples.wfp.remoteendpoint.CallRemoteEndpointActivity
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/remoteendpoint/RemoteEndpointWorkflow.java:[24,2] cannot find symbol
  symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/suspendresume/PerformTaskActivity.java:[24,2] cannot find symbol
  symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/suspendresume/SuspendResumeWorkflow.java:[21,2] cannot find symbol
  symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsConfiguration.java:[25,4] cannot find symbol
  symbol:   class Bean
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsConfiguration
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsConfiguration.java:[30,4] cannot find symbol
  symbol:   class Bean
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsConfiguration
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsConfiguration.java:[35,4] cannot find symbol
  symbol:   class Bean
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsConfiguration
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[50,4] cannot find symbol
  symbol:   class Autowired
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[53,4] cannot find symbol
  symbol:   class Autowired
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[64,4] cannot find symbol
  symbol:   class PostMapping
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[78,4] cannot find symbol
  symbol:   class PostMapping
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[93,27] cannot find symbol
  symbol:   class RequestBody
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[92,4] cannot find symbol
  symbol:   class PostMapping
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[113,32] cannot find symbol
  symbol:   class RequestParam
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[112,4] cannot find symbol
  symbol:   class PostMapping
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[121,42] cannot find symbol
  symbol:   class RequestParam
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[121,83] cannot find symbol
  symbol:   class RequestParam
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[120,4] cannot find symbol
  symbol:   class PostMapping
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[131,4] cannot find symbol
  symbol:   class PostMapping
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[145,34] cannot find symbol
  symbol:   class RequestBody
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[144,4] cannot find symbol
  symbol:   class PostMapping
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[158,32] cannot find symbol
  symbol:   class RequestParam
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[157,4] cannot find symbol
  symbol:   class PostMapping
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[166,46] cannot find symbol
  symbol:   class RequestParam
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[165,4] cannot find symbol
  symbol:   class PostMapping
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[174,45] cannot find symbol
  symbol:   class RequestParam
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[173,4] cannot find symbol
  symbol:   class PostMapping
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[183,42] cannot find symbol
  symbol:   class RequestParam
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[183,83] cannot find symbol
  symbol:   class RequestParam
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[182,4] cannot find symbol
  symbol:   class PostMapping
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/continueasnew/CleanUpActivity.java:[29,4] cannot find symbol
  symbol:   class Autowired
  location: class io.dapr.springboot.examples.wfp.continueasnew.CleanUpActivity
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/continueasnew/ContinueAsNewWorkflow.java:[33,4] cannot find symbol
  symbol:   class Autowired
  location: class io.dapr.springboot.examples.wfp.continueasnew.ContinueAsNewWorkflow
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/remoteendpoint/CallRemoteEndpointActivity.java:[31,4] cannot find symbol
  symbol:   class Value
  location: class io.dapr.springboot.examples.wfp.remoteendpoint.CallRemoteEndpointActivity
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/remoteendpoint/CallRemoteEndpointActivity.java:[34,4] cannot find symbol
  symbol:   class Autowired
  location: class io.dapr.springboot.examples.wfp.remoteendpoint.CallRemoteEndpointActivity
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsApplication.java:[24,5] cannot find symbol
  symbol:   variable SpringApplication
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsApplication
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsConfiguration.java:[32,16] cannot find symbol
  symbol:   class RestTemplateBuilder
  location: class io.dapr.springboot.examples.wfp.WorkflowPatternsConfiguration
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/remoteendpoint/CallRemoteEndpointActivity.java:[43,5] cannot find symbol
  symbol:   class HttpEntity
  location: class io.dapr.springboot.examples.wfp.remoteendpoint.CallRemoteEndpointActivity
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/remoteendpoint/CallRemoteEndpointActivity.java:[44,17] cannot find symbol
  symbol:   class HttpEntity
  location: class io.dapr.springboot.examples.wfp.remoteendpoint.CallRemoteEndpointActivity
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project workflows: Compilation failure: Compilation failure: 
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsApplication.java:[16,32] cannot access org.springframework.boot.SpringApplication
[ERROR]   bad class file: /Users/cassie/.m2/repository/org/springframework/boot/spring-boot/3.4.3/spring-boot-3.4.3.jar(/org/springframework/boot/SpringApplication.class)
[ERROR]     class file has wrong version 61.0, should be 55.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsApplication.java:[17,46] cannot access org.springframework.boot.autoconfigure.SpringBootApplication
[ERROR]   bad class file: /Users/cassie/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/3.4.3/spring-boot-autoconfigure-3.4.3.jar(/org/springframework/boot/autoconfigure/SpringBootApplication.class)
[ERROR]     class file has wrong version 61.0, should be 55.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsApplication.java:[20,2] cannot find symbol
[ERROR]   symbol: class SpringBootApplication
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsConfiguration.java:[18,43] cannot access org.springframework.boot.web.client.RestTemplateBuilder
[ERROR]   bad class file: /Users/cassie/.m2/repository/org/springframework/boot/spring-boot/3.4.3/spring-boot-3.4.3.jar(/org/springframework/boot/web/client/RestTemplateBuilder.class)
[ERROR]     class file has wrong version 61.0, should be 55.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsConfiguration.java:[19,46] cannot access org.springframework.context.annotation.Bean
[ERROR]   bad class file: /Users/cassie/.m2/repository/org/springframework/spring-context/6.2.3/spring-context-6.2.3.jar(/org/springframework/context/annotation/Bean.class)
[ERROR]     class file has wrong version 61.0, should be 55.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsConfiguration.java:[20,46] cannot access org.springframework.context.annotation.Configuration
[ERROR]   bad class file: /Users/cassie/.m2/repository/org/springframework/spring-context/6.2.3/spring-context-6.2.3.jar(/org/springframework/context/annotation/Configuration.class)
[ERROR]     class file has wrong version 61.0, should be 55.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsConfiguration.java:[21,38] cannot access org.springframework.web.client.RestTemplate
[ERROR]   bad class file: /Users/cassie/.m2/repository/org/springframework/spring-web/6.2.3/spring-web-6.2.3.jar(/org/springframework/web/client/RestTemplate.class)
[ERROR]     class file has wrong version 61.0, should be 55.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsConfiguration.java:[23,2] cannot find symbol
[ERROR]   symbol: class Configuration
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsConfiguration.java:[31,10] cannot find symbol
[ERROR]   symbol:   class RestTemplate
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsConfiguration
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[32,52] cannot access org.springframework.beans.factory.annotation.Autowired
[ERROR]   bad class file: /Users/cassie/.m2/repository/org/springframework/spring-beans/6.2.3/spring-beans-6.2.3.jar(/org/springframework/beans/factory/annotation/Autowired.class)
[ERROR]     class file has wrong version 61.0, should be 55.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[33,47] cannot access org.springframework.web.bind.annotation.PostMapping
[ERROR]   bad class file: /Users/cassie/.m2/repository/org/springframework/spring-web/6.2.3/spring-web-6.2.3.jar(/org/springframework/web/bind/annotation/PostMapping.class)
[ERROR]     class file has wrong version 61.0, should be 55.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[34,47] cannot access org.springframework.web.bind.annotation.RequestBody
[ERROR]   bad class file: /Users/cassie/.m2/repository/org/springframework/spring-web/6.2.3/spring-web-6.2.3.jar(/org/springframework/web/bind/annotation/RequestBody.class)
[ERROR]     class file has wrong version 61.0, should be 55.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[35,47] cannot access org.springframework.web.bind.annotation.RequestParam
[ERROR]   bad class file: /Users/cassie/.m2/repository/org/springframework/spring-web/6.2.3/spring-web-6.2.3.jar(/org/springframework/web/bind/annotation/RequestParam.class)
[ERROR]     class file has wrong version 61.0, should be 55.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[36,47] cannot access org.springframework.web.bind.annotation.RestController
[ERROR]   bad class file: /Users/cassie/.m2/repository/org/springframework/spring-web/6.2.3/spring-web-6.2.3.jar(/org/springframework/web/bind/annotation/RestController.class)
[ERROR]     class file has wrong version 61.0, should be 55.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[44,2] cannot find symbol
[ERROR]   symbol: class RestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/chain/ChainWorkflow.java:[18,38] cannot access org.springframework.stereotype.Component
[ERROR]   bad class file: /Users/cassie/.m2/repository/org/springframework/spring-context/6.2.3/spring-context-6.2.3.jar(/org/springframework/stereotype/Component.class)
[ERROR]     class file has wrong version 61.0, should be 55.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/chain/ChainWorkflow.java:[20,2] cannot find symbol
[ERROR]   symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/chain/ToUpperCaseActivity.java:[22,2] cannot find symbol
[ERROR]   symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/child/ChildWorkflow.java:[20,2] cannot find symbol
[ERROR]   symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/child/ParentWorkflow.java:[20,2] cannot find symbol
[ERROR]   symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/child/ReverseActivity.java:[22,2] cannot find symbol
[ERROR]   symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/continueasnew/CleanUpActivity.java:[26,2] cannot find symbol
[ERROR]   symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/continueasnew/ContinueAsNewWorkflow.java:[23,2] cannot find symbol
[ERROR]   symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/externalevent/ApproveActivity.java:[24,2] cannot find symbol
[ERROR]   symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/externalevent/DenyActivity.java:[24,2] cannot find symbol
[ERROR]   symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/externalevent/ExternalEventWorkflow.java:[20,2] cannot find symbol
[ERROR]   symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/fanoutin/CountWordsActivity.java:[24,2] cannot find symbol
[ERROR]   symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/fanoutin/FanOutInWorkflow.java:[24,2] cannot find symbol
[ERROR]   symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/remoteendpoint/CallRemoteEndpointActivity.java:[21,52] cannot access org.springframework.beans.factory.annotation.Value
[ERROR]   bad class file: /Users/cassie/.m2/repository/org/springframework/spring-beans/6.2.3/spring-beans-6.2.3.jar(/org/springframework/beans/factory/annotation/Value.class)
[ERROR]     class file has wrong version 61.0, should be 55.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/remoteendpoint/CallRemoteEndpointActivity.java:[22,32] cannot access org.springframework.http.HttpEntity
[ERROR]   bad class file: /Users/cassie/.m2/repository/org/springframework/spring-web/6.2.3/spring-web-6.2.3.jar(/org/springframework/http/HttpEntity.class)
[ERROR]     class file has wrong version 61.0, should be 55.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/remoteendpoint/CallRemoteEndpointActivity.java:[26,2] cannot find symbol
[ERROR]   symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/remoteendpoint/CallRemoteEndpointActivity.java:[35,11] cannot find symbol
[ERROR]   symbol:   class RestTemplate
[ERROR]   location: class io.dapr.springboot.examples.wfp.remoteendpoint.CallRemoteEndpointActivity
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/remoteendpoint/RemoteEndpointWorkflow.java:[24,2] cannot find symbol
[ERROR]   symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/suspendresume/PerformTaskActivity.java:[24,2] cannot find symbol
[ERROR]   symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/suspendresume/SuspendResumeWorkflow.java:[21,2] cannot find symbol
[ERROR]   symbol: class Component
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsConfiguration.java:[25,4] cannot find symbol
[ERROR]   symbol:   class Bean
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsConfiguration
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsConfiguration.java:[30,4] cannot find symbol
[ERROR]   symbol:   class Bean
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsConfiguration
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsConfiguration.java:[35,4] cannot find symbol
[ERROR]   symbol:   class Bean
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsConfiguration
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[50,4] cannot find symbol
[ERROR]   symbol:   class Autowired
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[53,4] cannot find symbol
[ERROR]   symbol:   class Autowired
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[64,4] cannot find symbol
[ERROR]   symbol:   class PostMapping
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[78,4] cannot find symbol
[ERROR]   symbol:   class PostMapping
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[93,27] cannot find symbol
[ERROR]   symbol:   class RequestBody
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[92,4] cannot find symbol
[ERROR]   symbol:   class PostMapping
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[113,32] cannot find symbol
[ERROR]   symbol:   class RequestParam
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[112,4] cannot find symbol
[ERROR]   symbol:   class PostMapping
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[121,42] cannot find symbol
[ERROR]   symbol:   class RequestParam
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[121,83] cannot find symbol
[ERROR]   symbol:   class RequestParam
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[120,4] cannot find symbol
[ERROR]   symbol:   class PostMapping
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[131,4] cannot find symbol
[ERROR]   symbol:   class PostMapping
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[145,34] cannot find symbol
[ERROR]   symbol:   class RequestBody
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[144,4] cannot find symbol
[ERROR]   symbol:   class PostMapping
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[158,32] cannot find symbol
[ERROR]   symbol:   class RequestParam
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[157,4] cannot find symbol
[ERROR]   symbol:   class PostMapping
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[166,46] cannot find symbol
[ERROR]   symbol:   class RequestParam
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[165,4] cannot find symbol
[ERROR]   symbol:   class PostMapping
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[174,45] cannot find symbol
[ERROR]   symbol:   class RequestParam
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[173,4] cannot find symbol
[ERROR]   symbol:   class PostMapping
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[183,42] cannot find symbol
[ERROR]   symbol:   class RequestParam
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[183,83] cannot find symbol
[ERROR]   symbol:   class RequestParam
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java:[182,4] cannot find symbol
[ERROR]   symbol:   class PostMapping
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsRestController
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/continueasnew/CleanUpActivity.java:[29,4] cannot find symbol
[ERROR]   symbol:   class Autowired
[ERROR]   location: class io.dapr.springboot.examples.wfp.continueasnew.CleanUpActivity
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/continueasnew/ContinueAsNewWorkflow.java:[33,4] cannot find symbol
[ERROR]   symbol:   class Autowired
[ERROR]   location: class io.dapr.springboot.examples.wfp.continueasnew.ContinueAsNewWorkflow
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/remoteendpoint/CallRemoteEndpointActivity.java:[31,4] cannot find symbol
[ERROR]   symbol:   class Value
[ERROR]   location: class io.dapr.springboot.examples.wfp.remoteendpoint.CallRemoteEndpointActivity
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/remoteendpoint/CallRemoteEndpointActivity.java:[34,4] cannot find symbol
[ERROR]   symbol:   class Autowired
[ERROR]   location: class io.dapr.springboot.examples.wfp.remoteendpoint.CallRemoteEndpointActivity
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsApplication.java:[24,5] cannot find symbol
[ERROR]   symbol:   variable SpringApplication
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsApplication
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsConfiguration.java:[32,16] cannot find symbol
[ERROR]   symbol:   class RestTemplateBuilder
[ERROR]   location: class io.dapr.springboot.examples.wfp.WorkflowPatternsConfiguration
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/remoteendpoint/CallRemoteEndpointActivity.java:[43,5] cannot find symbol
[ERROR]   symbol:   class HttpEntity
[ERROR]   location: class io.dapr.springboot.examples.wfp.remoteendpoint.CallRemoteEndpointActivity
[ERROR] /Users/cassie/go/src/github.com/java-sdk/spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/remoteendpoint/CallRemoteEndpointActivity.java:[44,17] cannot find symbol
[ERROR]   symbol:   class HttpEntity
[ERROR]   location: class io.dapr.springboot.examples.wfp.remoteendpoint.CallRemoteEndpointActivity
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :workflows
cassie@Cassandras-MacBook-Pro java-sdk % 

cicoyle avatar Jun 26 '25 16:06 cicoyle

@salaboy can you take a look at this one since you just recently changed those versions?

cicoyle avatar Jun 26 '25 16:06 cicoyle

I've reviewed the configuration, and the issue is due to a mismatch between Java versions across modules.

The core SDK modules (like sdk and sdk-workflows) are still using Java 11, while the Spring Boot modules have been upgraded to Spring Framework 6.2.7 and Spring Boot 3.4.6 — both of which require Java 17+.

Because the parent POM or default compiler version is set to Java 11, it results in compilation errors when trying to build the entire project.

To fix this:

We either need to upgrade the Java version used by the core modules to 17+

Or set up different build profiles, which can be complex and harder to maintain

I’d suggest aligning the whole project to Java 17+, update the maven.compiler.source and target in the parent POM, and test the build.

Let me know if that approach sounds good. I can help with making the changes.

humblefool25 avatar Jul 12 '25 15:07 humblefool25

@humblefool25 i think on the core , plain Java modules we want to keep the source compatible with 11. spring boot 3.x needs 17. If you use the sdkman provided configuration it works as expected with 17, but still checking Java 11 compatibility for core modules.

salaboy avatar Jul 12 '25 15:07 salaboy

That makes sense. Just to clarify, Are you checking Java 11 or Java 17 compatibility for the core modules?

humblefool25 avatar Jul 12 '25 16:07 humblefool25