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

86 set java build version in only one place #107

Merged
merged 3 commits into from
Feb 15, 2023

Conversation

MikaelEdwartz
Copy link
Contributor

Instead of having to update multiple files to upgrade our java version, now we only need to do it in our pom.xml file. In pom.xml we now use maven.compiler.release instead of maven.compiler.source and .target. In our yml files they now read our pom.xml file and saves the number defined in our maven.compiler.release, saves it to a enviroment variable and then uses it to define what java version we want.

This only works in default branch, which is why i tried in another project.
Screenshot 2023-02-14 at 16 14 25

Here we see that the command is run to save the java version, and also that set up jdk uses java 19 which is our expected result.

…umber in pom.xml file

pom.xml file now contains maven.compiler.release instead of maven.compiler.source/target.
yml files now reads pom.xml file and saves the maven.compiler.release number in a variable and uses that variable when choosing what java version to use.
…umber in pom.xml file

pom.xml file now contains maven.compiler.release instead of maven.compiler.source/target.
yml files now reads pom.xml file and saves the maven.compiler.release number in a variable and uses that variable when choosing what java version to use.
@MikaelEdwartz MikaelEdwartz linked an issue Feb 14, 2023 that may be closed by this pull request
@sonarcloud
Copy link

sonarcloud bot commented Feb 14, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@kappsegla kappsegla added this pull request to the merge queue Feb 15, 2023
Merged via the queue into main with commit 618fcfd Feb 15, 2023
@jLereback jLereback deleted the 86-set-java-build-version-in-only-one-place branch February 16, 2023 09:36
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

Successfully merging this pull request may close these issues.

Set java build version in only one place
3 participants