Skip to content

Commit e00c530

Browse files
authored
Merge develop into master
2 parents 7836317 + c97f7eb commit e00c530

File tree

30 files changed

+158
-165
lines changed

30 files changed

+158
-165
lines changed

.github/dependabot.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,70 +4,70 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7-
target-branch: "develop"
7+
target-branch: "main"
88
reviewers:
99
- "kobylynskyi"
1010

1111
- package-ecosystem: "gradle"
1212
directory: "plugins/gradle/graphql-java-codegen-gradle-plugin/"
1313
schedule:
1414
interval: "weekly"
15-
target-branch: "develop"
15+
target-branch: "main"
1616
reviewers:
1717
- "kobylynskyi"
1818

1919
- package-ecosystem: "maven"
2020
directory: "plugins/maven/graphql-java-codegen-maven-plugin/"
2121
schedule:
2222
interval: "weekly"
23-
target-branch: "develop"
23+
target-branch: "main"
2424
reviewers:
2525
- "kobylynskyi"
2626

2727
- package-ecosystem: "gradle"
2828
directory: "plugins/gradle/example-client/"
2929
schedule:
3030
interval: "monthly"
31-
target-branch: "develop"
31+
target-branch: "main"
3232
reviewers:
3333
- "kobylynskyi"
3434

3535
- package-ecosystem: "gradle"
3636
directory: "plugins/gradle/example-server/"
3737
schedule:
3838
interval: "monthly"
39-
target-branch: "develop"
39+
target-branch: "main"
4040
reviewers:
4141
- "kobylynskyi"
4242

4343
- package-ecosystem: "gradle"
4444
directory: "plugins/gradle/example-client-kotlin/"
4545
schedule:
4646
interval: "monthly"
47-
target-branch: "develop"
47+
target-branch: "main"
4848
reviewers:
4949
- "kobylynskyi"
5050

5151
- package-ecosystem: "maven"
5252
directory: "plugins/maven/example-client/"
5353
schedule:
5454
interval: "monthly"
55-
target-branch: "develop"
55+
target-branch: "main"
5656
reviewers:
5757
- "kobylynskyi"
5858

5959
- package-ecosystem: "maven"
6060
directory: "plugins/maven/example-server/"
6161
schedule:
6262
interval: "monthly"
63-
target-branch: "develop"
63+
target-branch: "main"
6464
reviewers:
6565
- "kobylynskyi"
6666

6767
- package-ecosystem: "github-actions"
6868
directory: "/"
6969
schedule:
7070
interval: "monthly"
71-
target-branch: "develop"
71+
target-branch: "main"
7272
reviewers:
7373
- "kobylynskyi"

.github/workflows/check-code-style.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,17 @@ name: Check Code Style
33
on:
44
push:
55
branches:
6-
- master
7-
- develop
6+
- main
87
pull_request:
98
branches:
10-
- master
11-
- develop
9+
- main
1210

1311
jobs:
1412
check-code-style:
1513
runs-on: ubuntu-latest
1614
steps:
1715
- name: Checkout
18-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
1917

2018
# brew install sbt; cd graphql-java-codegen-sbt-plugin; sbt fmt or sbt check
2119
- name: Check Scala Code Style

.github/workflows/github.yml

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,40 @@ name: Build
33
on:
44
push:
55
branches:
6-
- master
7-
- develop
6+
- main
87
pull_request:
98
branches:
10-
- master
11-
- develop
9+
- main
1210

1311
jobs:
1412
build:
1513
runs-on: ubuntu-latest
1614
strategy:
1715
matrix:
18-
jdk-version: [ 1.8 ]
16+
jdk-version: [ 8, 11, 17 ]
1917
steps:
20-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
2119

2220
- name: Setup Java ${{ matrix.jdk-version }}
23-
uses: actions/setup-java@v1
21+
uses: actions/setup-java@v3
2422
with:
2523
java-version: ${{ matrix.jdk-version }}
24+
distribution: 'adopt'
2625

2726
- name: Gradle cache
28-
uses: actions/cache@v1
27+
uses: actions/cache@v3
2928
with:
3029
path: ~/.gradle
3130
key: gradle
3231

3332
- name: Maven cache
34-
uses: actions/cache@v1
33+
uses: actions/cache@v3
3534
with:
3635
path: ~/.m2
3736
key: m2
3837

3938
- name: Loading ivy cache
40-
uses: actions/cache@v1
39+
uses: actions/cache@v3
4140
with:
4241
path: ~/.ivy2/cache
4342
key: ${{ runner.os }}-ivy-${{ hashFiles('**/*.sbt') }}
@@ -82,30 +81,31 @@ jobs:
8281

8382
sonar:
8483
needs: build
85-
if: github.event_name != 'pull_request'
8684
runs-on: ubuntu-latest
8785
steps:
88-
- uses: actions/checkout@v2
89-
86+
- uses: actions/checkout@v3
87+
with:
88+
fetch-depth: 0
9089
- name: Setup Java
91-
uses: actions/setup-java@v1
90+
uses: actions/setup-java@v3
9291
with:
9392
java-version: 11
93+
distribution: 'adopt'
9494

9595
- name: Gradle cache
96-
uses: actions/cache@v1
96+
uses: actions/cache@v3
9797
with:
9898
path: ~/.gradle
9999
key: gradle
100100

101101
- name: Maven cache
102-
uses: actions/cache@v1
102+
uses: actions/cache@v3
103103
with:
104104
path: ~/.m2
105105
key: m2
106106

107107
- name: Loading ivy cache
108-
uses: actions/cache@v1
108+
uses: actions/cache@v3
109109
with:
110110
path: ~/.ivy2/cache
111111
key: ${{ runner.os }}-ivy-${{ hashFiles('**/*.sbt') }}
@@ -118,5 +118,4 @@ jobs:
118118
- name: Generate and publish Sonar report
119119
run: ./gradlew sonarqube -Dsonar.projectKey=kobylynskyi_graphql-java-codegen -Dsonar.organization=kobylynskyi -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_LOGIN }} --stacktrace
120120
env:
121-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122-
121+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
required: true
1010
release_branch:
1111
description: 'Release branch'
12-
default: 'master'
12+
default: 'main'
1313
required: true
1414
publish_library:
1515
description: 'Publish library'
@@ -32,29 +32,30 @@ jobs:
3232
release:
3333
runs-on: ubuntu-latest
3434
steps:
35-
- uses: actions/checkout@v2
35+
- uses: actions/checkout@v3
3636
with:
3737
ref: ${{ github.event.inputs.release_branch }}
3838

3939
- name: Setup Java
40-
uses: actions/setup-java@v1
40+
uses: actions/setup-java@v3
4141
with:
4242
java-version: 1.8
43+
distribution: 'adopt'
4344

4445
- name: Gradle cache
45-
uses: actions/cache@v1
46+
uses: actions/cache@v3
4647
with:
4748
path: ~/.gradle
4849
key: gradle
4950

5051
- name: Maven cache
51-
uses: actions/cache@v1
52+
uses: actions/cache@v3
5253
with:
5354
path: ~/.m2
5455
key: m2
5556

5657
- name: Loading ivy cache
57-
uses: actions/cache@v1
58+
uses: actions/cache@v3
5859
with:
5960
path: ~/.ivy2/cache
6061
key: ${{ runner.os }}-ivy-${{ hashFiles('**/*.sbt') }}

.github/workflows/update-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
update-version:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515

1616
- name: Update version of Maven plugin sub-project
1717
working-directory: plugins/maven/graphql-java-codegen-maven-plugin

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Please follow the steps below in order to make the changes:
1717

1818
1. Clone the repository
1919
2. Set the local java version to 1.8
20-
3. Checkout **develop** branch.
20+
3. Checkout **main** branch.
2121
4. Open repository in your favourite IDE.
2222
5. Enable and configure CheckStyle plugin in your IDE (for IntelliJ it is CheckStyle-IDEA).
2323
Import [graphql-codegen-check-style.xml](config/checkstyle/graphql-codegen-check-style.xml) as a .

build.gradle

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,27 @@ plugins {
66
id "java-library"
77
id "signing"
88
id "maven-publish"
9-
id "org.sonarqube" version "3.2.0"
9+
id "org.sonarqube" version "4.0.0.2929"
1010
}
1111

12-
def graphqlCodegenVersion = '5.7.1' // This variable used in the automatic release process
12+
def graphqlCodegenVersion = '5.7.2-SNAPSHOT' // This variable used in the automatic release process
1313

1414
group = "io.github.kobylynskyi"
1515
version = graphqlCodegenVersion
1616

1717
repositories {
1818
mavenCentral()
19-
jcenter()
2019
}
2120

2221
dependencies {
2322
compileOnly "org.freemarker:freemarker:2.3.31"
24-
compileOnly "com.graphql-java:graphql-java:20.0"
23+
compileOnly "com.graphql-java:graphql-java:20.1"
2524
compileOnly "com.fasterxml.jackson.core:jackson-databind:2.14.2"
26-
compileOnly "com.typesafe:config:1.4.1"
25+
compileOnly "com.typesafe:config:1.4.2"
2726

28-
testImplementation "org.junit.jupiter:junit-jupiter-api:5.7.1"
29-
testImplementation "org.junit.jupiter:junit-jupiter-params:5.7.1"
30-
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.7.1"
27+
testImplementation "org.junit.jupiter:junit-jupiter-api:5.9.2"
28+
testImplementation "org.junit.jupiter:junit-jupiter-params:5.9.2"
29+
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.9.2"
3130
testImplementation "org.hamcrest:java-hamcrest:2.0.0.0"
3231
}
3332

@@ -39,15 +38,14 @@ task codeCoverageReport(type: JacocoReport) {
3938
sourceSets sourceSets.main
4039

4140
reports {
42-
xml.enabled true
43-
xml.destination file("${buildDir}/reports/jacoco/report.xml")
44-
html.enabled false
45-
csv.enabled false
41+
html.required = false
42+
csv.required = false
43+
xml.destination = file("${buildDir}/reports/jacoco/report.xml")
4644
}
4745
}
4846

4947
configurations {
50-
testCompile.extendsFrom compileOnly
48+
testImplementation.extendsFrom compileOnly
5149
}
5250

5351
test {
@@ -102,7 +100,7 @@ publishing {
102100
licenses {
103101
license {
104102
name = "MIT License"
105-
url = "https://github.com/kobylynskyi/graphql-java-codegen/blob/master/LICENSE"
103+
url = "https://github.com/kobylynskyi/graphql-java-codegen/blob/main/LICENSE"
106104
distribution = "repo"
107105
}
108106
}

docs/migration-to-2.0.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ version 1.x.x then please follow steps below.
66

77
### 1. Update plugin and library versions
88

9-
As per plugin description: [Gradle](https://github.com/kobylynskyi/graphql-java-codegen/tree/master/plugins/gradle)
10-
, [Maven](https://github.com/kobylynskyi/graphql-java-codegen/tree/master/plugins/maven)
9+
As per plugin description: [Gradle](https://github.com/kobylynskyi/graphql-java-codegen/tree/main/plugins/gradle)
10+
, [Maven](https://github.com/kobylynskyi/graphql-java-codegen/tree/main/plugins/maven)
1111

1212
### 2. Update plugin configuration (only for client-side codegen)
1313

docs/migration-to-3.0.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ follow [2.0.0 migration guide](migration-to-2.0.0.md) first.
77

88
### 1. Update plugin and library versions
99

10-
As per plugin description: [Gradle](https://github.com/kobylynskyi/graphql-java-codegen/tree/master/plugins/gradle)
11-
, [Maven](https://github.com/kobylynskyi/graphql-java-codegen/tree/master/plugins/maven)
10+
As per plugin description: [Gradle](https://github.com/kobylynskyi/graphql-java-codegen/tree/main/plugins/gradle)
11+
, [Maven](https://github.com/kobylynskyi/graphql-java-codegen/tree/main/plugins/maven)
1212

1313
### 2. Remove `generateAsyncApis` and rename `apiAsyncReturnType`/`apiAsyncReturnListType`
1414

docs/migration-to-4.0.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ follow [3.0.0 migration guide](migration-to-3.0.0.md) first.
77

88
### 1. Update plugin and library versions
99

10-
As per plugin description: [Gradle](https://github.com/kobylynskyi/graphql-java-codegen/tree/master/plugins/gradle)
11-
, [Maven](https://github.com/kobylynskyi/graphql-java-codegen/tree/master/plugins/maven)
10+
As per plugin description: [Gradle](https://github.com/kobylynskyi/graphql-java-codegen/tree/main/plugins/gradle)
11+
, [Maven](https://github.com/kobylynskyi/graphql-java-codegen/tree/main/plugins/maven)
1212

1313
### 2. Change GraphQL Resolvers containing non-null GraphQL types to primitive Java types
1414

0 commit comments

Comments
 (0)