Skip to content

Commit 52343d5

Browse files
committed
removed redundant imports from Request.java
updated dependencies (lombok, mockito) in build.gradle to support up to and including JDK 15 changed build_gradle.yml to support both JDK 8 & 11
1 parent 9c396b7 commit 52343d5

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

.github/workflows/build_gradle.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,18 @@ jobs:
1313

1414
runs-on: ubuntu-latest
1515

16+
strategy:
17+
matrix:
18+
java: [ '8', '11' ]
19+
env:
20+
JDK_VERSION: ${{ matrix.java }}
21+
name: Java ${{ matrix.java }} build
1622
steps:
17-
- uses: actions/checkout@v2
18-
- name: Set up JDK 8
19-
uses: actions/setup-java@v2
23+
- uses: actions/checkout@v3
24+
- name: Set up Java
25+
uses: actions/setup-java@v3
2026
with:
21-
java-version: '8'
27+
java-version: ${{ matrix.java }}
2228
distribution: 'adopt'
2329
cache: gradle
2430
- name: Grant execute permission for gradlew

build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ repositories {
2626

2727
dependencies {
2828
implementation 'com.google.code.gson:gson:2.9.0'
29-
implementation "org.projectlombok:lombok:1.16.16"
30-
testImplementation "org.mockito:mockito-core:2.12.0"
29+
compileOnly "org.projectlombok:lombok:1.18.24"
30+
annotationProcessor 'org.projectlombok:lombok:1.18.24'
31+
testCompileOnly 'org.projectlombok:lombok:1.18.24'
32+
testAnnotationProcessor 'org.projectlombok:lombok:1.18.24'
33+
testImplementation 'org.mockito:mockito-core:4.6.1'
3134
testRuntimeOnly "org.slf4j:slf4j-api:1.7.10"
3235
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
3336
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'

src/main/java/com/amadeus/Request.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
package com.amadeus;
22

3-
import com.amadeus.Constants;
4-
5-
import com.google.gson.JsonElement;
63
import java.io.IOException;
74
import java.net.HttpURLConnection;
85
import java.net.URL;

0 commit comments

Comments
 (0)