Skip to content

Commit

Permalink
setting up project migration on basis of java-serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
twebermartins committed May 20, 2022
0 parents commit cc9da52
Show file tree
Hide file tree
Showing 1,093 changed files with 295,221 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/docfx-build-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will build and publish documentation with docfx
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path

name: Documentation Publish

on:
push:
branches:
- main

jobs:
build_docs:
runs-on: ubuntu-latest
name: Build and publish documentation
steps:
- name: Checkout
uses: actions/checkout@v1

- name: Build docfx
uses: nikeee/[email protected]
with:
args: docs/docfx.json

- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_site
force_orphan: true
34 changes: 34 additions & 0 deletions .github/workflows/maven-deploy-to-maven-central.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will deploy the Serializers and the Validator to the sonatype
# staging environment. This will NOT automatically publish the artifacts. An
# authorized user must still manually close the staging repository first.

name: Generate and Deploy to Sonatype

on:
release:
types: [published]

jobs:

deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up JDK 1.8
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'adopt'
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD
gpg-private-key: ${{ secrets.MYGPGKEY_SEC }}

- name: Publish to Apache Maven Central
run: mvn -P MavenCentral license:format deploy
env:
OSSRH_USERNAME: sebbader
OSSRH_PASSWORD: ${{ secrets.SEBBADER_OSSHR_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_KEY_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_KEY_PASSWORD }}
83 changes: 83 additions & 0 deletions .github/workflows/maven-publish-snapshots.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# This workflow will build a package using Maven and then publish it to GitHub packages when a PR is accepted/new content is pushed
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path

name: Maven Publish Snapshot

on:
push:
branches:
- development

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Delete old dataformat-parent package
uses: actions/delete-package-versions@v1
continue-on-error: true
with:
package-name: 'io.admin-shell.aas.dataformat-parent'

- name: Delete old dataformat-core package
uses: actions/delete-package-versions@v1
continue-on-error: true
with:
package-name: 'io.admin-shell.aas.dataformat-core'

- name: Delete old dataformat-aasx package
uses: actions/delete-package-versions@v1
continue-on-error: true
with:
package-name: 'io.admin-shell.aas.dataformat-aasx'

- name: Delete old dataformat-xml package
uses: actions/delete-package-versions@v1
continue-on-error: true
with:
package-name: 'io.admin-shell.aas.dataformat-xml'

- name: Delete old dataformat-aml package
uses: actions/delete-package-versions@v1
continue-on-error: true
with:
package-name: 'io.admin-shell.aas.dataformat-aml'

- name: Delete old dataformat-rdf package
uses: actions/delete-package-versions@v1
continue-on-error: true
with:
package-name: 'io.admin-shell.aas.dataformat-rdf'

- name: Delete old dataformat-json package
uses: actions/delete-package-versions@v1
continue-on-error: true
with:
package-name: 'io.admin-shell.aas.dataformat-json'

- name: Delete old validator package
uses: actions/delete-package-versions@v1
continue-on-error: true
with:
package-name: 'io.admin-shell.aas.validator'

- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}
24 changes: 24 additions & 0 deletions .github/workflows/maven-run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven

on:
pull_request:
branches: [ main, development, feature/**, bugfix/** ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
38 changes: 38 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
.idea/
log/
*.log
bin/
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath
.recommenders
*.iml

.classpath
.project

**/.flattened-pom.xml
**/nb-configuration.xml
**.iml
**.flattened-pom.xml
nbactions.xml
testJsonSerialization.json
dataformat-uanodeset/jsonExpected.json
dataformat-uanodeset/jsonActual.json
Loading

0 comments on commit cc9da52

Please sign in to comment.