microsoft / durabletask-java

Java SDK for Durable Functions and the Durable Task Framework
MIT License
13 stars 7 forks source link

update sdk to support java 8 #44

Closed kaibocai closed 2 years ago

kaibocai commented 2 years ago

This PR target to support java 8 on durable functions. Currently, the sdk is write and compile using java11 and when cx build a durable functions on java 8 and running it, jvm will throw an error saying ...compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0. So this pr update the sdk using java8 and because the back compatibility of jdk, this sdk is also support building durable functions using java11. This PR includes:

  1. modify some methods that not support by java8
  2. update azurefunctions gradle file to compile the code in java8
  3. update sdk gradle file to compile the main code using java8 and compile and run test code using java11 (in test files many code grammars are not supported in java8)
  4. update the action yml file to use jdk8 as default.