-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from codecentric/codecentric-refactoring
Codecentric refactoring
- Loading branch information
Showing
136 changed files
with
1,197 additions
and
1,046 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,18 @@ | ||
name: Maven Build | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
|
||
- name: Build with Maven | ||
run: mvn -B install --no-transfer-progress --file pom.xml |
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,56 @@ | ||
name: release-to-maven-central | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
releaseversion: | ||
description: 'Release version' | ||
required: true | ||
default: '1.1.0' | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo "Will start a Maven Central upload with version ${{ github.event.inputs.releaseversion }}" | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up settings.xml for Maven Central Repository | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
server-id: oss.sonatype.org | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} | ||
gpg-passphrase: MAVEN_GPG_PASSPHRASE | ||
|
||
- name: Set projects Maven version to GitHub Action GUI set version | ||
run: mvn versions:set "-DnewVersion=${{ github.event.inputs.releaseversion }}" --no-transfer-progress | ||
|
||
- name: Publish package | ||
run: mvn --batch-mode clean deploy --no-transfer-progress -P central-deploy -DskipTests=true | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }} | ||
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} | ||
|
||
- name: Generate changelog | ||
id: changelog | ||
uses: metcalfc/[email protected] | ||
with: | ||
myToken: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Create GitHub Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.event.inputs.releaseversion }} | ||
release_name: ${{ github.event.inputs.releaseversion }} | ||
body: | | ||
Grab the new version from Maven central https://repo1.maven.org/maven2/de/codecentric/reedelk/reedelk-runtime/${{ github.event.inputs.releaseversion }}/ | ||
### Things that changed in this release | ||
${{ steps.changelog.outputs.changelog }} | ||
draft: false | ||
prerelease: false |
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 |
---|---|---|
|
@@ -7,7 +7,43 @@ | |
|
||
<artifactId>reedelk-openapi</artifactId> | ||
<groupId>com.reedelk</groupId> | ||
<version>1.0.6</version> | ||
<version>1.0.7</version> | ||
|
||
<name>reedelk-openapi</name> | ||
<description>Reedelk OpenAPI V3 Serializer / Deserializer</description> | ||
<url>https://github.com/codecentric/reedelk-openapi</url> | ||
|
||
<licenses> | ||
<license> | ||
<name>Apache License, Version 2.0</name> | ||
<url>http://opensource.org/licenses/Apache-2.0</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
</licenses> | ||
<developers> | ||
<developer> | ||
<name>Daniel Kocot</name> | ||
<email>[email protected]</email> | ||
<organization>codecentric AG</organization> | ||
<organizationUrl>http://www.codecentric.de</organizationUrl> | ||
</developer> | ||
</developers> | ||
<scm> | ||
<connection>scm:git:git://github.com/codecentric/reedelk-openapi.git</connection> | ||
<developerConnection>scm:git:ssh://[email protected]/reedelk-openapi.git</developerConnection> | ||
<url>https://github.com/codecentric/reedelk-openapi/tree/master</url> | ||
</scm> | ||
<distributionManagement> | ||
<repository> | ||
<id>oss.sonatype.org</id> | ||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> | ||
</repository> | ||
<snapshotRepository> | ||
<id>github</id> | ||
<name>GitHub Packages</name> | ||
<url>https://maven.pkg.github.com/codecentric/reedelk-openapi</url> | ||
</snapshotRepository> | ||
</distributionManagement> | ||
|
||
<properties> | ||
<json.version>20190722</json.version> | ||
|
@@ -17,6 +53,14 @@ | |
<maven.compiler.source>1.8</maven.compiler.source> | ||
<maven.compiler.target>1.8</maven.compiler.target> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
|
||
<!-- Maven Central Release tools --> | ||
<versions-maven-plugin.version>2.8.1</versions-maven-plugin.version> | ||
<maven-deploy-plugin.version>3.0.0-M1</maven-deploy-plugin.version> | ||
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version> | ||
<maven-source-plugin.version>3.2.1</maven-source-plugin.version> | ||
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version> | ||
<nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version> | ||
</properties> | ||
|
||
<dependencies> | ||
|
@@ -54,14 +98,14 @@ | |
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<!--<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-deploy-plugin</artifactId> | ||
<version>2.8</version> | ||
<configuration> | ||
<skip>false</skip> | ||
</configuration> | ||
</plugin> | ||
</plugin>--> | ||
|
||
<!-- Surefire - unit tests--> | ||
<plugin> | ||
|
@@ -92,5 +136,96 @@ | |
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<profiles> | ||
<!-- plugins needed to deploy to Maven Central --> | ||
<profile> | ||
<id>central-deploy</id> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-gpg-plugin</artifactId> | ||
<version>${maven-gpg-plugin.version}</version> | ||
<executions> | ||
<execution> | ||
<id>sign-artifacts</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>sign</goal> | ||
</goals> | ||
<configuration> | ||
<!-- This is necessary for gpg to not try to use the pinentry programs --> | ||
<gpgArguments> | ||
<arg>--pinentry-mode</arg> | ||
<arg>loopback</arg> | ||
</gpgArguments> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>versions-maven-plugin</artifactId> | ||
<version>${versions-maven-plugin.version}</version> | ||
<configuration> | ||
<generateBackupPoms>false</generateBackupPoms> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-deploy-plugin</artifactId> | ||
<version>${maven-deploy-plugin.version}</version> | ||
<configuration> | ||
<skip>true</skip> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-source-plugin</artifactId> | ||
<version>${maven-source-plugin.version}</version> | ||
<executions> | ||
<execution> | ||
<id>attach-sources</id> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<version>${maven-javadoc-plugin.version}</version> | ||
<executions> | ||
<execution> | ||
<id>attach-javadocs</id> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.sonatype.plugins</groupId> | ||
<artifactId>nexus-staging-maven-plugin</artifactId> | ||
<version>${nexus-staging-maven-plugin.version}</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<serverId>oss.sonatype.org</serverId> | ||
<nexusUrl>https://oss.sonatype.org/</nexusUrl> | ||
<description>${project.version}</description> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>deploy-to-sonatype</id> | ||
<phase>deploy</phase> | ||
<goals> | ||
<goal>deploy</goal> | ||
<goal>release</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
</profiles> | ||
</project> |
21 changes: 0 additions & 21 deletions
21
src/main/java/com/reedelk/openapi/v3/deserializer/ContactObjectDeserializer.java
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
src/main/java/com/reedelk/openapi/v3/deserializer/ExampleObjectDeserializer.java
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
src/main/java/com/reedelk/openapi/v3/deserializer/HeaderObjectDeserializer.java
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
src/main/java/com/reedelk/openapi/v3/deserializer/InfoObjectDeserializer.java
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
src/main/java/com/reedelk/openapi/v3/deserializer/LicenseObjectDeserializer.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.