Skip to content

Commit bea542f

Browse files
committed
Merge remote-tracking branch 'origin/master' into feature/eirikb/dart-optional-patch
2 parents 3514343 + 8b56322 commit bea542f

16,081 files changed

Lines changed: 644321 additions & 189049 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"ghcr.io/snebjorn/devcontainer-feature/chromium:latest": {},
1414
"ghcr.io/devcontainers/features/docker-in-docker:2": {
1515
"version": "latest",
16-
"moby": true
16+
"moby": false
1717
}
1818
},
1919
// Configure tool-specific properties.

.github/workflows/docker-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
java-version: 11
2222
distribution: 'zulu'
2323
- name: Cache Maven packages
24-
uses: actions/cache@v4
24+
uses: actions/cache@v5
2525
with:
2626
path: ~/.m2
2727
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}

.github/workflows/gradle-plugin-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
distribution: 'temurin'
2222
cache: gradle
2323
- name: Cache maven dependencies
24-
uses: actions/cache@v4
24+
uses: actions/cache@v5
2525
env:
2626
cache-name: cache-maven-repository
2727
with:

.github/workflows/gradle-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ jobs:
4040
cache: gradle
4141
# Cache Gradle Dependencies
4242
- name: Setup Gradle Dependencies Cache
43-
uses: actions/cache@v4
43+
uses: actions/cache@v5
4444
with:
4545
path: ~/.gradle/caches
4646
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
4747

4848
# Cache Gradle Wrapper
4949
- name: Setup Gradle Wrapper Cache
50-
uses: actions/cache@v4
50+
uses: actions/cache@v5
5151
with:
5252
path: ~/.gradle/wrapper
5353
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}

.github/workflows/linux.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ jobs:
2929
java-version: ${{ matrix.java }}
3030
cache: gradle
3131

32-
- uses: actions/cache@v4
32+
- uses: actions/cache@v5
3333
with:
3434
path: ~/.m2/repository
3535
key: ${{ runner.os }}-maven-${{ hashFiles('pom.xml', 'modules/**/pom.xml') }}
3636
restore-keys: |
3737
${{ runner.os }}-maven-
3838
39-
- uses: actions/cache@v4
39+
- uses: actions/cache@v5
4040
with:
4141
path: |
4242
~/.gradle/caches
@@ -62,7 +62,7 @@ jobs:
6262
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
6363

6464
- name: Upload Maven build artifact
65-
uses: actions/upload-artifact@v5
65+
uses: actions/upload-artifact@v6
6666
if: matrix.java == '11' && matrix.os == 'ubuntu-latest'
6767
with:
6868
name: artifact
@@ -98,7 +98,7 @@ jobs:
9898
maven-version: 3.8.8
9999
cache: gradle
100100
- name: Download build artifact
101-
uses: actions/download-artifact@v6
101+
uses: actions/download-artifact@v7
102102
with:
103103
name: artifact
104104
- name: Run Ensures Script

.github/workflows/maven-plugin-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
java-version: 11
2121
distribution: 'temurin'
2222
- name: Cache maven dependencies
23-
uses: actions/cache@v4
23+
uses: actions/cache@v5
2424
env:
2525
cache-name: cache-maven-repository
2626
with:

.github/workflows/maven-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
java-version: 11
1919
distribution: 'zulu'
2020
- name: Cache Maven packages
21-
uses: actions/cache@v4
21+
uses: actions/cache@v5
2222
with:
2323
path: ~/.m2
2424
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Mill plugin tests
2+
3+
on:
4+
push:
5+
paths:
6+
- modules/openapi-generator-mill-plugin/**
7+
pull_request:
8+
paths:
9+
- modules/openapi-generator-mill-plugin/**
10+
11+
jobs:
12+
test:
13+
name: Mill plugin tests
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v5
17+
- name: Set up JDK 11
18+
uses: actions/setup-java@v5
19+
with:
20+
java-version: 11
21+
distribution: 'temurin'
22+
- name: Restore cache (read-only)
23+
# only use restore keys, no save key because we need to clear the cache before running the examples
24+
uses: actions/cache/restore@v5
25+
with:
26+
path: |
27+
~/.m2/repository
28+
~/.gradle
29+
~/.cache/coursier
30+
!~/.gradle/caches/*/plugin-resolution/
31+
!~/.m2/repository/org/openapitools/
32+
!~/.cache/coursier/v1/https/repo1.maven.org/maven2/org/openapitools/
33+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
34+
35+
- name: Maven Clean Install
36+
env:
37+
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
38+
run: |
39+
./mvnw clean install -DskipTests -Dmaven.javadoc.skip=true
40+
41+
# This is needed because of differences in how Maven and Coursier download artifacts
42+
# Maven will only download the pom when the transitive dependency is not needed in the current projects compile classpath
43+
# whereas Coursier expects the artifact (jar) to be present in a Maven repository. When Coursier encounters a
44+
# artifact folder with a pom it considers the artifact to be available and will then crash when the jar is missing.
45+
- name: Clear m2 cache except openapitools (because otherwise coursier will fail to resolve artifacts where only poms are downloaded)
46+
run: |
47+
mv ~/.m2/repository/org/openapitools /tmp/openapitools-backup || true
48+
rm -rf ~/.m2/repository/*
49+
mkdir -p ~/.m2/repository/org
50+
mv /tmp/openapitools-backup ~/.m2/repository/org/openapitools || true
51+
52+
- name: Mill Example - Test Validation Command
53+
env:
54+
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
55+
run: |
56+
(cd modules/openapi-generator-mill-plugin/example/ && ./mill validateOpenapiSpec $(pwd)/api/petstore-invalid.yaml)
57+
58+
- name: Mill Example - Test Validation Task
59+
env:
60+
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
61+
run: |
62+
(cd modules/openapi-generator-mill-plugin/example/ && ./mill openapi.validate)
63+
64+
- name: Mill Example - Test Compile Task
65+
env:
66+
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
67+
run: |
68+
(cd modules/openapi-generator-mill-plugin/example/ && ./mill __.compile)
69+

.github/workflows/openapi-generator.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
distribution: 'temurin'
2424
cache: gradle
2525
- name: Cache maven dependencies
26-
uses: actions/cache@v4
26+
uses: actions/cache@v5
2727
env:
2828
cache-name: cache-maven-repository
2929
with:
@@ -42,7 +42,7 @@ jobs:
4242
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
4343
- run: ls -la modules/openapi-generator-cli/target
4444
- name: Upload openapi-generator-cli.jar artifact
45-
uses: actions/upload-artifact@v5
45+
uses: actions/upload-artifact@v6
4646
with:
4747
name: openapi-generator-cli.jar
4848
path: modules/openapi-generator-cli/target/openapi-generator-cli.jar
@@ -62,7 +62,7 @@ jobs:
6262
distribution: 'temurin'
6363
cache: gradle
6464
- name: Cache maven dependencies
65-
uses: actions/cache@v4
65+
uses: actions/cache@v5
6666
env:
6767
cache-name: cache-maven-repository
6868
with:
@@ -81,7 +81,7 @@ jobs:
8181
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
8282
- name: Publish unit test reports
8383
if: ${{ always() }}
84-
uses: actions/upload-artifact@v5
84+
uses: actions/upload-artifact@v6
8585
with:
8686
name: surefire-test-results
8787
path: '**/surefire-reports/TEST-*.xml'
@@ -99,7 +99,7 @@ jobs:
9999
java-version: 11
100100
distribution: 'temurin'
101101
- name: Download openapi-generator-cli.jar artifact
102-
uses: actions/download-artifact@v6
102+
uses: actions/download-artifact@v7
103103
with:
104104
name: openapi-generator-cli.jar
105105
path: modules/openapi-generator-cli/target
@@ -138,7 +138,7 @@ jobs:
138138
java-version: 11
139139
distribution: 'temurin'
140140
- name: Download openapi-generator-cli.jar artifact
141-
uses: actions/download-artifact@v6
141+
uses: actions/download-artifact@v7
142142
with:
143143
name: openapi-generator-cli.jar
144144
path: modules/openapi-generator-cli/target

.github/workflows/samples-aspnet-fastenpoints-server.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- samples/server/petstore/aspnet/fastendpoints-useValidators
2727
steps:
2828
- uses: actions/checkout@v5
29-
- uses: actions/setup-dotnet@v5.0.0
29+
- uses: actions/setup-dotnet@v5.1.0
3030
with:
3131
dotnet-version: '8.0.x'
3232
- name: Build

0 commit comments

Comments
 (0)