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

Run CI for Java 8

Open Ndiritu opened this issue 1 year ago • 7 comments

related to https://github.com/microsoftgraph/msgraph-sdk-java/issues/1979

Ndiritu avatar May 03 '24 09:05 Ndiritu

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

sonarqubecloud[bot] avatar May 03 '24 09:05 sonarqubecloud[bot]

@baywet The SonarQube plugin for Gradle requires Java 17 to run causing compilation to fail with Java 8.

Should we consider switching to the GitHub action or find a way to tweak the build to not execute sonar tasks then run a separate ./gradlew sonarqube ... command in the workflows?

Ndiritu avatar May 03 '24 12:05 Ndiritu

@Ndiritu that's an avenue we can explore. Another one would be to conditionally include the plugin based on the java version. Also the android api level is failing for the same reason. Since there's already a plugin in there to validate which APIs we're using, and since we're setting up CI to make sure the other scenarios not being validated by the linter are also being validated, I'm suggesting we revert the changes in that workflow. Thoughts?

baywet avatar May 03 '24 12:05 baywet

@Ndiritu that's an avenue we can explore. Another one would be to conditionally include the plugin based on the java version. Also the android api level is failing for the same reason. Since there's already a plugin in there to validate which APIs we're using, and since we're setting up CI to make sure the other scenarios not being validated by the linter are also being validated, I'm suggesting we revert the changes in that workflow. Thoughts?

@baywet I opted to conditionally include the plugin based on the JVM version since the spotless plugin also has a min. requirement of Java 11 to execute.

If I understand correctly, you're suggesting that we add Java 8 CI checks to the linting workflow so that we cover both Android & Java 8 checks there?

Also, Java 8 build checks now fail at the tests. Should we downgrade the junit mockito libs & use Java-8 friendly syntax for tests as well? ie.. failures bc of using var keyword

Ndiritu avatar May 07 '24 11:05 Ndiritu

This pull request has conflicting changes, the author must resolve the conflicts before this pull request can be merged.

github-actions[bot] avatar May 11 '24 01:05 github-actions[bot]

Conflicts have been resolved. A maintainer will take a look shortly.

github-actions[bot] avatar May 13 '24 13:05 github-actions[bot]

This pull request has conflicting changes, the author must resolve the conflicts before this pull request can be merged.

github-actions[bot] avatar May 14 '24 15:05 github-actions[bot]

Conflicts have been resolved. A maintainer will take a look shortly.

github-actions[bot] avatar Jun 19 '24 11:06 github-actions[bot]

Build workflow now fails for Java-8 incompatibilities

Ndiritu avatar Jun 19 '24 12:06 Ndiritu