Skip to content

Commit

Permalink
#876 - upgrade to java 21 and build files to use temurin distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Nov 16, 2023
1 parent 20f0110 commit cdac975
Show file tree
Hide file tree
Showing 121 changed files with 621 additions and 464 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/batch-boot-jpa-sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
working-directory: batch-boot-jpa-sample
strategy:
matrix:
distribution: [ 'microsoft' ]
distribution: [ 'temurin' ]
java: [ '21' ]
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/boot-api-archunit-sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/[email protected]
with:
java-version: 21
distribution: "microsoft"
distribution: "temurin"
cache: "maven"

- name: Build and analyze
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/boot-choas-monkey.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
- name: Set up JDK 17
uses: actions/[email protected]
with:
java-version: 17
distribution: "zulu"
java-version: 21
distribution: "temurin"
cache: "maven"

- name: Build and analyze
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/boot-data-custom-sequences.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
- name: Set up JDK 17
uses: actions/[email protected]
with:
java-version: 17
distribution: "zulu"
java-version: 21
distribution: "temurin"
cache: "maven"
- name: Build and analyze
run: ./mvnw clean verify
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/boot-data-multipledatasources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
- name: Set up JDK
uses: actions/[email protected]
with:
java-version: 17
distribution: "zulu"
java-version: 21
distribution: "temurin"
cache: "maven"
- name: Build and analyze
run: ./mvnw clean verify
2 changes: 1 addition & 1 deletion .github/workflows/boot-jooq-r2dbc-sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/[email protected]
with:
java-version: 21
distribution: "zulu"
distribution: "temurin"
cache: "maven"
- name: Build and analyze
run: ./mvnw clean verify
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/[email protected]
with:
java-version: 21
distribution: "zulu"
distribution: "temurin"
cache: "maven"
- name: Start up redis via Docker Compose
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/boot-jpa-keyset-pagination.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/[email protected]
with:
java-version: 21
distribution: "zulu"
distribution: "temurin"
cache: "maven"

- name: Grant execute permission for mvnw
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/boot-mongodb-elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- name: Set up JDK
uses: actions/[email protected]
with:
java-version: "17"
distribution: "zulu"
java-version: "21"
distribution: "temurin"
cache: "maven"
- name: Build with Maven
run: ./mvnw clean verify
2 changes: 1 addition & 1 deletion .github/workflows/boot-opensearch-sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
uses: actions/[email protected]
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
distribution: 'temurin'
cache: 'maven'
- name: Build with Maven and analyze
run: ./mvnw -B clean verify package --file pom.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/boot-rabbitmq-thymeleaf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
uses: actions/[email protected]
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
distribution: 'temurin'
cache: 'maven'
- name: Build with Maven and analyze
run: ./mvnw -B clean verify package --file pom.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/boot-rest-docs-sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
uses: actions/[email protected]
with:
java-version: ${{ matrix.java }}
distribution: ${{ matrix.distribution }}
distribution: temurin
cache: 'maven'
- name: Build and analyze
run: ./mvnw clean verify
4 changes: 2 additions & 2 deletions .github/workflows/boot-togglz-sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
- name: Set up JDK
uses: actions/[email protected]
with:
java-version: 17
distribution: "zulu"
java-version: 21
distribution: "temurin"
cache: "maven"

- name: Build and analyze
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/boot-ultimate-redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/[email protected]
with:
java-version: "21"
distribution: "microsoft"
distribution: "temurin"
cache: "maven"
- name: Build with Maven
run: ./mvnw clean verify
2 changes: 1 addition & 1 deletion .github/workflows/graphql-boot-querydsl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/[email protected]
with:
java-version: 21
distribution: "microsoft"
distribution: "temurin"
cache: "maven"

- name: Grant execute permission for mvnw
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/graphql-boot-webflux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/[email protected]
with:
java-version: 21
distribution: "microsoft"
distribution: "temurin"
cache: "maven"

- name: Grant execute permission for mvnw
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/graphql-boot-webmvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/[email protected]
with:
java-version: 21
distribution: "microsoft"
distribution: "temurin"
cache: "maven"

- name: Grant execute permission for mvnw
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/httpClients-boot-http-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/[email protected]
with:
java-version: 21
distribution: "microsoft"
distribution: "temurin"
cache: "maven"
- name: Build and analyze
run: ./mvnw clean verify
2 changes: 1 addition & 1 deletion .github/workflows/httpClients-boot-rest-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/[email protected]
with:
java-version: 21
distribution: "zulu"
distribution: "temurin"
cache: "maven"
- name: Build and analyze
run: ./mvnw clean verify
2 changes: 1 addition & 1 deletion .github/workflows/httpClients-boot-restClient.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/[email protected]
with:
java-version: 21
distribution: "zulu"
distribution: "temurin"
cache: "maven"

- name: Grant execute permission for mvnw
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jpa-boot-data-envers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/[email protected]
with:
java-version: 21
distribution: "microsoft"
distribution: "temurin"
cache: "maven"

- name: Grant execute permission for mvnw
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jpa-boot-locks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/[email protected]
with:
java-version: 21
distribution: "microsoft"
distribution: "temurin"
cache: "maven"
- name: Build and analyze
run: ./mvnw clean verify
2 changes: 1 addition & 1 deletion .github/workflows/jpa-boot-read-replica-postgresql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/[email protected]
with:
java-version: 21
distribution: "microsoft"
distribution: "temurin"
cache: "maven"
- name: Start up databases via docker compose
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jpa-multidatasource-multitenancy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/[email protected]
with:
java-version: "21"
distribution: "microsoft"
distribution: "temurin"
cache: "maven"
- name: Build with Maven
run: ./mvnw clean verify
4 changes: 2 additions & 2 deletions .github/workflows/jpa-multitenancy-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- name: Set up JDK
uses: actions/[email protected]
with:
java-version: "17"
distribution: "zulu"
java-version: "21"
distribution: "temurin"
cache: "maven"
- name: Build with Maven
run: ./mvnw clean verify
4 changes: 2 additions & 2 deletions .github/workflows/jpa-multitenancy-partition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- name: Set up JDK
uses: actions/[email protected]
with:
java-version: "17"
distribution: "zulu"
java-version: "21"
distribution: "temurin"
cache: "maven"
- name: Build with Maven
run: ./mvnw clean verify
4 changes: 2 additions & 2 deletions .github/workflows/jpa-multitenancy-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- name: Set up JDK
uses: actions/[email protected]
with:
java-version: "17"
distribution: "zulu"
java-version: "21"
distribution: "temurin"
cache: "maven"
- name: Build with Maven
run: ./mvnw clean verify
4 changes: 2 additions & 2 deletions .github/workflows/open-api-spring-boot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
- name: Set up JDK 17
uses: actions/[email protected]
with:
java-version: 17
distribution: "zulu"
java-version: 21
distribution: "temurin"
cache: "maven"
- name: Build and analyze
run: ./mvnw clean verify
2 changes: 1 addition & 1 deletion .github/workflows/r2dbc-boot-sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/[email protected]
with:
java-version: 21
distribution: "microsoft"
distribution: "temurin"
cache: "maven"
- name: Build and analyze
run: ./mvnw clean verify
2 changes: 1 addition & 1 deletion .github/workflows/scheduler-boot-jobrunr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/[email protected]
with:
java-version: 21
distribution: "microsoft"
distribution: "temurin"
cache: "maven"
- name: Build and analyze
run: ./mvnw clean verify
2 changes: 1 addition & 1 deletion .github/workflows/scheduler-boot-quartz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/[email protected]
with:
java-version: 21
distribution: "microsoft"
distribution: "temurin"
cache: "maven"

- name: Grant execute permission for mvnw
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- name: Set up JDK 17
uses: actions/[email protected]
with:
java-version: 17
distribution: "zulu"
java-version: 21
distribution: "temurin"
cache: "maven"
- name: Build and analyze
run: ./mvnw clean verify
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void shouldFetchAllCustomers() throws Exception {

@Test
void shouldFindCustomerById() throws Exception {
Customer customer = customerList.get(0);
Customer customer = customerList.getFirst();
Long customerId = customer.getId();

this.mockMvc
Expand Down Expand Up @@ -106,7 +106,7 @@ void shouldReturn400WhenCreateNewCustomerWithoutText() throws Exception {

@Test
void shouldUpdateCustomer() throws Exception {
Customer customer = customerList.get(0);
Customer customer = customerList.getFirst();
customer.setName("Updated Customer");

this.mockMvc
Expand All @@ -121,7 +121,7 @@ void shouldUpdateCustomer() throws Exception {

@Test
void shouldDeleteCustomer() throws Exception {
Customer customer = customerList.get(0);
Customer customer = customerList.getFirst();

this.mockMvc
.perform(delete("/api/customers/{id}", customer.getId()))
Expand Down
Loading

0 comments on commit cdac975

Please sign in to comment.