Skip to content

Commit d45b552

Browse files
author
Dennis Labordus
committed
Removed XSD's and used them from compas-scl-xsd project. Renamed module to scl2007b4.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent e617056 commit d45b552

37 files changed

+206
-3501
lines changed

.github/workflows/maven_build.yml renamed to .github/workflows/build-project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
name: Maven Build
5+
name: Build Project
66

77
on: push
88

.github/workflows/publish-maven.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/publish-project.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# SPDX-FileCopyrightText: 2021 Alliander N.V.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name: Publish Project
6+
7+
on:
8+
release:
9+
types: [ released ]
10+
11+
jobs:
12+
publish:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Extract tag name
20+
id: extract_tagname
21+
shell: bash
22+
# Extra the tagname form the git reference, value of GITHUB_REF will be something like refs/tags/<tag_name>.
23+
run: echo "##[set-output name=tagname;]$(echo ${GITHUB_REF##*/})"
24+
- uses: actions/setup-java@v2
25+
with:
26+
java-version: '11'
27+
distribution: 'adopt'
28+
- name: Create custom Maven Settings.xml
29+
uses: whelk-io/maven-settings-xml-action@v18
30+
with:
31+
output_file: custom_maven_settings.xml
32+
servers: '[{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
33+
- name: Set version with Maven
34+
run: mvn -B versions:set -DprocessAllModules=true -DnewVersion=${{ steps.extract_tagname.outputs.tagname }}
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
- name: Deploy with Maven to GitHub Packages
38+
run: mvn -B -s custom_maven_settings.xml -Prelease clean deploy
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/sonarcloud-analysis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,17 @@ jobs:
3030
path: ~/.m2
3131
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
3232
restore-keys: ${{ runner.os }}-m2
33+
- name: Create custom Maven Settings.xml
34+
uses: whelk-io/maven-settings-xml-action@v18
35+
with:
36+
output_file: custom_maven_settings.xml
37+
servers: '[{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
3338
- name: Build and analyze
3439
env:
3540
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3641
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3742
run: |
38-
mvn -B -Psonar \
43+
mvn -B -s custom_maven_settings.xml -Psonar \
3944
-Dsonar.projectKey=com-pas_compas-core \
4045
-Dsonar.organization=com-pas \
4146
-Dsonar.host.url=https://sonarcloud.io \

core-commons/src/main/resources/xsd/SCL.xsd

Lines changed: 0 additions & 82 deletions
This file was deleted.

core-commons/src/main/resources/xsd/SCL_BaseSimpleTypes.xsd

Lines changed: 0 additions & 211 deletions
This file was deleted.

0 commit comments

Comments
 (0)