Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SonarQube warning deprecated Java version #15

Open
nicholausadi opened this issue Aug 13, 2020 · 4 comments
Open

SonarQube warning deprecated Java version #15

nicholausadi opened this issue Aug 13, 2020 · 4 comments

Comments

@nicholausadi
Copy link

nicholausadi commented Aug 13, 2020

Hi everyone,

I use SonarScanner step and I receive this deprecate Java warning from Sonar.
Can someone please update the Java version?

Thanks
Screen Shot 2020-08-13 at 22 09 34

@d4rkd3v1l
Copy link

You can add another script step before to ensure using Java 11 like follows.

# https://devcenter.bitrise.io/infrastructure/virtual-machines/#managing-java-versions
jenv global system
export JAVA_HOME="$(jenv prefix)"
envman add --key JAVA_HOME --value "$(jenv prefix)"

Maybe this could be integrated into this step?

@koral--
Copy link
Member

koral-- commented Mar 10, 2021

Sorry for the late reply I missed the first post.
I'm not sure if changing the environment for next steps is the right action for this step.
Although changing java version for only this step sounds good if bitrise stack won't switch to 11 until October.

@d4rkd3v1l
Copy link

d4rkd3v1l commented Mar 10, 2021

I'm not that java guy (at all), but maybe it would be possible to "remember" die old environment and reset it after the step?

Best would be if Bitrise would use 11 as default, so only people that need older versions must switch back? But maybe they are afraid of too many breaking changes?

However, the first post references October 2020, which is already in the past now ;-)

@koral--
Copy link
Member

koral-- commented Mar 10, 2021

Ah indeed 🤦 I haven't read carefully.
I switched to 11 in my projects some time ago so wasn't aware of that date.
@d4rkd3v1l what is the current result then? Is scanner invocation failing on 8?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants