-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UIFR-222: Adding Java 17 Compatability
- Loading branch information
1 parent
fe2f74c
commit 5a0ee4b
Showing
9 changed files
with
118 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!--- Add a pull request title above in this format --> | ||
<!--- real example: 'UIFR-222 Remove concept property setters from ObsResource classes' --> | ||
<!--- 'UIFR-JiraIssueNumber JiraIssueTitle' --> | ||
## Description of what I changed | ||
<!--- Describe your changes in detail --> | ||
<!--- It can simply be your commit message, which you must have --> | ||
|
||
|
||
## Issue I worked on | ||
<!--- This project only accepts pull requests related to open issues --> | ||
<!--- Want a new feature or change? Discuss it in an issue first --> | ||
<!--- Found a bug? Point us to the issue/or create one so we can reproduce it --> | ||
<!--- Just add the issue number at the end: --> | ||
see https://openmrs.atlassian.net/browse/UIFR- | ||
|
||
## Checklist: I completed these to help reviewers :) | ||
<!--- Put an `x` in the box if you did the task --> | ||
<!--- If you forgot a task please follow the instructions below --> | ||
- [ ] My IDE is configured to follow the [**code style**](https://wiki.openmrs.org/display/docs/Java+Conventions) of this project. | ||
|
||
No? Unsure? -> [configure your IDE](https://wiki.openmrs.org/display/docs/How-To+Setup+And+Use+Your+IDE), format the code and add the changes with `git add . && git commit --amend` | ||
|
||
- [ ] I have **added tests** to cover my changes. (If you refactored | ||
existing code that was well tested you do not have to add tests) | ||
|
||
No? -> write tests and add them to this commit `git add . && git commit --amend` | ||
|
||
- [ ] I ran `mvn clean package` right before creating this pull request and | ||
added all formatting changes to my commit. | ||
|
||
No? -> execute above command | ||
|
||
- [ ] All new and existing **tests passed**. | ||
|
||
No? -> figure out why and add the fix to your commit. It is your responsibility to make sure your code works. | ||
|
||
- [ ] My pull request is **based on the latest changes** of the master branch. | ||
|
||
No? Unsure? -> execute command `git pull --rebase upstream master` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,54 @@ | ||
# this build is designed to replicate the Travis CI workflow | ||
name: Build with Maven | ||
name: Java CI with Maven | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
platform: [ ubuntu-latest ] | ||
java-version: [ 8 ] | ||
java-8: | ||
|
||
runs-on: ${{ matrix.platform }} | ||
env: | ||
PLATFORM: ${{ matrix.platform }} | ||
JAVA_VERSION: ${{ matrix.java-version }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java-version }} | ||
- name: Cache local Maven repository | ||
uses: actions/cache@v2 | ||
java-version: '8' | ||
distribution: 'adopt' | ||
cache: maven | ||
- name: Build with Maven | ||
run: mvn clean install --file pom.xml | ||
|
||
java-11: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Install dependencies | ||
run: mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true --batch-mode --show-version --file pom.xml | ||
java-version: '11' | ||
distribution: 'adopt' | ||
cache: maven | ||
- name: Build with Maven | ||
run: mvn test --batch-mode --file pom.xml | ||
run: mvn clean install --file pom.xml | ||
|
||
java-17: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
cache: maven | ||
- name: Build with Maven | ||
run: mvn clean install --file pom.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
api/src/main/java/org/openmrs/ui/framework/converter/StringToPatientProblemConverter.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters