forked from Sayi/swagger-diff
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into dependabot/maven/io…
….swagger-swagger-compat-spec-parser-1.0.55
- Loading branch information
Showing
29 changed files
with
1,343 additions
and
766 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: maven | ||
directory: / | ||
schedule: | ||
interval: daily |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
name: Build on Push and Pull Request | ||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# Supported versions as of https://en.wikipedia.org/wiki/Java_version_history | ||
java-version: | ||
- 8 | ||
- 11 | ||
- 16 | ||
|
||
name: Build with JDK ${{ matrix.java-version }} | ||
steps: | ||
- name: Cache Dependencies | ||
uses: actions/[email protected] | ||
with: | ||
key: maven-dependencies | ||
path: ~/.m2/repository | ||
- name: Check out | ||
uses: actions/[email protected] | ||
- name: Set up JDK ${{ matrix.java-version }} | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: adopt | ||
java-version: ${{ matrix.java-version }} | ||
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
gpg-passphrase: GPG_PASSPHRASE | ||
- name: Clean, Build, Install | ||
run: | | ||
set -o errexit -o pipefail | ||
mvn clean install --activate-profiles dirty,dirty-package --update-snapshots --batch-mode --show-version 2>&1 | tee mvnout.txt | ||
set +o errexit +o pipefail | ||
- id: version | ||
name: Evaluate Version | ||
run: | | ||
project_version=`mvn help:evaluate --quiet --define expression=project.version --define forceStdout` | ||
echo "Version: ${project_version}" | ||
snapshot_version=`echo "${project_version}" | grep --perl-regexp --regexp="-SNAPSHOT$"` | ||
if [ -n "${snapshot_version}" ]; then | ||
echo "Identified as snapshot version" | ||
echo "::set-output name=is-snapshot::true" | ||
else | ||
echo "Identified as release version" | ||
echo "::set-output name=is-snapshot::false" | ||
fi | ||
- name: Test, Verify, Deploy | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.java-version == 8 && steps.version.outputs.is-snapshot == 'true' }} | ||
run: | | ||
set -o errexit -o pipefail | ||
mvn deploy site --batch-mode --show-version 2>&1 | tee --append mvnout.txt | ||
set +o errexit +o pipefail | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
- name: Test, Verify | ||
if: ${{ github.event_name != 'push' || github.ref != 'refs/heads/master' || matrix.java-version != 8 || steps.version.outputs.is-snapshot != 'true' }} | ||
run: | | ||
set -o errexit -o pipefail | ||
mvn verify site --define gpg.skip=true --batch-mode --show-version 2>&1 | tee --append mvnout.txt | ||
set +o errexit +o pipefail | ||
- name: Check Output | ||
shell: bash {0} | ||
run: | | ||
chmod +x ./target/mvn-suppressions-parent.sh | ||
mvnout=`cat mvnout.txt | grep --perl-regexp "(?i)\\[(ERR|WARN)" | ./target/mvn-suppressions-parent.sh "$JDK_VERSION"` | ||
if [ -n "${mvnout}" ]; then | ||
echo "[ERROR] The Maven output contains the following unknown warnings and errors:" >&2 | ||
echo "${mvnout}" >&2 | ||
false | ||
else | ||
echo "[INFO] No unknown warnings and errors found." | ||
echo "${mvnout}" >&2 | ||
fi | ||
env: | ||
JDK_VERSION: ${{ matrix.java-version }} | ||
- name: Prepare Site | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.java-version == 8 && steps.version.outputs.is-snapshot == 'true' }} | ||
run: | | ||
if [ -f ./target/site/index.html ]; then | ||
rm ./target/site/index.html | ||
fi | ||
if [ -f ./CHANGELOG.md ]; then | ||
cp ./CHANGELOG.md ./target/site/CHANGELOG.md | ||
fi | ||
if [ -f ./README.md ]; then | ||
cp ./README.md ./target/site/README.md | ||
fi | ||
- name: Deploy Site | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.java-version == 8 && steps.version.outputs.is-snapshot == 'true' }} | ||
uses: peaceiris/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./target/site | ||
enable_jekyll: true |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
function suppressSiteWarnings() { | ||
cat < /dev/stdin \ | ||
| grep --invert-match --perl-regexp "^\\[WARNING\\] Unable to find a URL to the parent project\\. The parent menu will NOT be added\\.$" | ||
} | ||
|
||
cat < /dev/stdin \ | ||
| suppressSiteWarnings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,18 +5,17 @@ | |
<parent> | ||
<groupId>de.lars-sh</groupId> | ||
<artifactId>parent</artifactId> | ||
<version>0.9.7</version> | ||
<relativePath></relativePath> | ||
<version>0.9.12</version> | ||
<relativePath /> | ||
</parent> | ||
|
||
<groupId>com.hlag.api</groupId> | ||
<artifactId>swagger-diff</artifactId> | ||
<version>1.2.2-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
<version>1.2.3-SNAPSHOT</version> | ||
|
||
<name>swagger-diff</name> | ||
<description>diff swagger api document</description> | ||
<url>http://maven.apache.org</url> | ||
<url>https://${parent-pom.github.organization}.github.io/${parent-pom.github.project}/</url> | ||
<licenses> | ||
<license> | ||
<name>The Apache Software License, Version 2.0</name> | ||
|
@@ -31,32 +30,19 @@ | |
</developer> | ||
</developers> | ||
|
||
<scm> | ||
<connection>scm:git:[email protected]:Sayi/swagger-diff.git</connection> | ||
<developerConnection>scm:git:[email protected]:Sayi/swagger-diff.git</developerConnection> | ||
<url>[email protected]:Sayi/swagger-diff.git</url> | ||
</scm> | ||
<distributionManagement> | ||
<snapshotRepository> | ||
<id>oss</id> | ||
<url>https://oss.sonatype.org/content/repositories/snapshots/</url> | ||
</snapshotRepository> | ||
<repository> | ||
<id>oss</id> | ||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> | ||
</repository> | ||
</distributionManagement> | ||
|
||
<properties> | ||
<parent-pom.create-changelog-md>false</parent-pom.create-changelog-md> | ||
<parent-pom.default-sources-folder>java</parent-pom.default-sources-folder> | ||
<parent-pom.create-lombok-config>false</parent-pom.create-lombok-config> | ||
<parent-pom.default-sources-folder>java</parent-pom.default-sources-folder> | ||
<parent-pom.github.organization>Hapag-Lloyd</parent-pom.github.organization> | ||
<parent-pom.github.project>swagger-diff</parent-pom.github.project> | ||
|
||
<eclipse.compiler.javadoc>disabled</eclipse.compiler.javadoc> | ||
<eclipse.compiler.nullAnalysis>disabled</eclipse.compiler.nullAnalysis> | ||
<maven.javadoc.failOnError>false</maven.javadoc.failOnError> | ||
|
||
<checkstyle.skip>true</checkstyle.skip> | ||
<formatter.skip>true</formatter.skip> | ||
<gpg.skip>true</gpg.skip> | ||
<pmd.skip>true</pmd.skip> | ||
<spotbugs.skip>true</spotbugs.skip> | ||
</properties> | ||
|
@@ -65,7 +51,7 @@ | |
<dependency> | ||
<groupId>com.alibaba</groupId> | ||
<artifactId>fastjson</artifactId> | ||
<version>1.2.31</version> | ||
<version>1.2.78</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.beust</groupId> | ||
|
@@ -75,7 +61,12 @@ | |
<dependency> | ||
<groupId>com.fasterxml.jackson.core</groupId> | ||
<artifactId>jackson-databind</artifactId> | ||
<version>2.8.7</version> | ||
<version>2.12.4</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.guava</groupId> | ||
<artifactId>guava</artifactId> | ||
<version>30.1.1-jre</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.j2html</groupId> | ||
|
@@ -111,8 +102,42 @@ | |
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.13</version> | ||
<version>4.13.2</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.junit.vintage</groupId> | ||
<artifactId>junit-vintage-engine</artifactId> | ||
<version>5.7.2</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-dependency-plugin</artifactId> | ||
<configuration> | ||
<usedDependencies> | ||
<usedDependency>org.junit.vintage:junit-vintage-engine</usedDependency> | ||
</usedDependencies> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
</build> | ||
|
||
<profiles> | ||
<!-- JDK 15 and 16, Maven Javadoc Plugin: Logs warnings on missing JavaDoc comments inside generated code --> | ||
<profile> | ||
<id>fix-jdk15-and-16</id> | ||
<activation> | ||
<jdk>[15,17)</jdk> | ||
</activation> | ||
<properties> | ||
<doclint>all,-missing</doclint> | ||
</properties> | ||
</profile> | ||
</profiles> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.