Skip to content

Commit 5c18012

Browse files
authored
Merge branch 'master' into PHP_beautify_templates
2 parents 53b4415 + 5277b7d commit 5c18012

File tree

10 files changed

+102
-181
lines changed

10 files changed

+102
-181
lines changed

.github/workflows/maven-pr.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v3
1919
name: git checkout
20-
with:
21-
ref: master
2220
- name: Set up Java
2321
uses: actions/setup-java@v3
2422
with:
@@ -51,11 +49,12 @@ jobs:
5149
}]
5250
- name: Build with Maven
5351
run: |
54-
export MY_POM_VERSION=`mvn -q -Dexec.executable="echo" -Dexec.args='${projects.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec`
52+
export MY_POM_VERSION=`mvn -Dswagger-codegen-version=3.0.38 -q -Dexec.executable="echo" -Dexec.args='${projects.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec`
5553
echo "POM VERSION" ${MY_POM_VERSION}
56-
export CODEGEN_VERSION=`mvn -q -Dexec.executable="echo" -Dexec.args='${swagger-codegen-version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec`
54+
export CODEGEN_VERSION=`sed -n 's/<swagger\-codegen\-version>\([^\s]*\)<\/swagger\-codegen\-version>/\1/p' pom.xml`
55+
export CODEGEN_VERSION=`echo ${CODEGEN_VERSION} | tr -d '[:space:]'`
5756
echo "CODEGEN_VERSION" ${CODEGEN_VERSION}
58-
export CODEGEN_VERSION=""
57+
export CODEGEN_VERSION_PROPERTY=""
5958
if [[ ! $MY_POM_VERSION =~ ^.*SNAPSHOT$ ]];
6059
then
6160
if [[ ! $CODEGEN_VERSION =~ ^.*SNAPSHOT$ ]];
@@ -72,7 +71,7 @@ jobs:
7271
LAST_SNAP=`jq '.data | sort_by(.lastModified) | reverse | .[0].text' maven-metadata.json`
7372
export LAST_SNAP=${LAST_SNAP:1:${#LAST_SNAP}-2}
7473
echo "LAST_SNAP $LAST_SNAP"
75-
export CODEGEN_VERSION_PROPERTY=-Dswagger-codgen-version=$LAST_SNAP
74+
export CODEGEN_VERSION_PROPERTY=-Dswagger-codegen-version=$LAST_SNAP
7675
fi
7776
fi
7877
fi

.github/workflows/maven-push.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,12 @@ jobs:
5252
}]
5353
- name: Build with Maven
5454
run: |
55-
export MY_POM_VERSION=`mvn -q -Dexec.executable="echo" -Dexec.args='${projects.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec`
55+
export MY_POM_VERSION=`mvn -Dswagger-codegen-version=3.0.38 -q -Dexec.executable="echo" -Dexec.args='${projects.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec`
5656
echo "POM VERSION" ${MY_POM_VERSION}
57-
export CODEGEN_VERSION=`mvn -q -Dexec.executable="echo" -Dexec.args='${swagger-codegen-version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec`
57+
export CODEGEN_VERSION=`sed -n 's/<swagger\-codegen\-version>\([^\s]*\)<\/swagger\-codegen\-version>/\1/p' pom.xml`
58+
export CODEGEN_VERSION=`echo ${CODEGEN_VERSION} | tr -d '[:space:]'`
5859
echo "CODEGEN_VERSION" ${CODEGEN_VERSION}
59-
export CODEGEN_VERSION=""
60+
export CODEGEN_VERSION_PROPERTY=""
6061
if [[ ! $MY_POM_VERSION =~ ^.*SNAPSHOT$ ]];
6162
then
6263
if [[ ! $CODEGEN_VERSION =~ ^.*SNAPSHOT$ ]];
@@ -73,7 +74,7 @@ jobs:
7374
LAST_SNAP=`jq '.data | sort_by(.lastModified) | reverse | .[0].text' maven-metadata.json`
7475
export LAST_SNAP=${LAST_SNAP:1:${#LAST_SNAP}-2}
7576
echo "LAST_SNAP $LAST_SNAP"
76-
export CODEGEN_VERSION_PROPERTY=-Dswagger-codgen-version=$LAST_SNAP
77+
export CODEGEN_VERSION_PROPERTY=-Dswagger-codegen-version=$LAST_SNAP
7778
fi
7879
fi
7980
fi
@@ -83,7 +84,7 @@ jobs:
8384
- name: Deploy Maven Snapshot
8485
if: ${{ matrix.java == 17 }}
8586
run: |
86-
export MY_POM_VERSION=`mvn -q -Dexec.executable="echo" -Dexec.args='${projects.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec`
87+
export MY_POM_VERSION=`mvn -Dswagger-codegen-version=3.0.38 -q -Dexec.executable="echo" -Dexec.args='${projects.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec`
8788
echo "POM VERSION" ${MY_POM_VERSION}
8889
if [[ $MY_POM_VERSION =~ ^.*SNAPSHOT$ ]];
8990
then

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<groupId>io.swagger.codegen.v3</groupId>
1414
<artifactId>swagger-codegen-generators</artifactId>
15-
<version>1.0.38-SNAPSHOT</version>
15+
<version>1.0.39-SNAPSHOT</version>
1616
<packaging>jar</packaging>
1717

1818
<build>
@@ -254,8 +254,8 @@
254254
</dependency>
255255
</dependencies>
256256
<properties>
257-
<swagger-codegen-version>3.0.38-SNAPSHOT</swagger-codegen-version>
258-
<swagger-parser-version>2.1.11</swagger-parser-version>
257+
<swagger-codegen-version>3.0.42-SNAPSHOT</swagger-codegen-version>
258+
<swagger-parser-version>2.1.12</swagger-parser-version>
259259
<swagger-core-version>2.2.8</swagger-core-version>
260260
<jackson-version>2.14.0</jackson-version>
261261
<jackson-databind-version>2.14.0</jackson-databind-version>

0 commit comments

Comments
 (0)