Slackbot
06/13/2023, 7:16 AMVampire
06/13/2023, 9:34 AMcom.linkedin.pegasus:data.
One of the missing classes is javax.annotation.Generated which was present in the standard JRE up to but was removed some time ago. And as you run the build with Java 17 and probably do not use the JVM toolchains feature it is missing. For that class, you either need to compile with an older Java by running Gradle with an older Java or better using the JVM toolchains feature, or you can add the javax.annotation:javax.annotation-api compileOnly dependency, where this annotation is still provided in.Sejal Jain
06/13/2023, 11:05 AMtasks.withType(Test).configureEach {
javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(17)
}
}Vampire
06/13/2023, 11:15 AMSejal Jain
06/13/2023, 11:55 AMVampire
06/13/2023, 12:30 PMjava {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}Sejal Jain
06/14/2023, 10:19 AMSejal Jain
06/15/2023, 7:29 AMSejal Jain
06/15/2023, 7:29 AMVampire
06/15/2023, 7:46 AMVampire
06/15/2023, 7:47 AMjavax.annotation.Generated. But you still miss the libs that it complains about in your dependencies.Sejal Jain
06/15/2023, 12:33 PMSejal Jain
06/15/2023, 12:33 PM