Skip to content

Commit 0f85fdc

Browse files
author
Dennis Labordus
authored
Merge pull request #38 from com-pas/develop
New Release
2 parents fbbca09 + 0fdfb1d commit 0f85fdc

File tree

5 files changed

+36
-2
lines changed

5 files changed

+36
-2
lines changed

.github/workflows/release-project.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,17 @@ jobs:
5555
output_file: custom_maven_settings.xml
5656
servers: '[{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
5757
- name: Set version with Maven
58+
# Only set the version for the CoMPAS Modules, excluding the RiseClipse Modules.
5859
run: ./mvnw -B versions:set -DgroupId=org.lfenergy.compas.scl.validator -DnewVersion=${{ steps.extract_tagname.outputs.tagname }}
5960
env:
6061
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6162
- name: Deploy with Maven to GitHub Packages and Docker Hub
62-
run: ./mvnw -B -s custom_maven_settings.xml -Prelease clean deploy
63+
# We need to pass the Repository information, because these are missing/need to be overwritten for the
64+
# RiseClipse Submodules for which we can't update the POM files.
65+
run: |
66+
./mvnw -B -s custom_maven_settings.xml \
67+
-DaltDeploymentRepository=github-packages-compas::default::https://maven.pkg.github.com/com-pas/compas-scl-validator \
68+
-Dmaven.deploy.skip=snapshots \
69+
-Prelease clean deploy
6370
env:
6471
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

app/src/main/resources/application.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ quarkus.log.category."org.lfenergy.compas.scl.validator".level = INFO
2222
%dev.quarkus.log.level = DEBUG
2323
%dev.quarkus.log.category."org.lfenergy.compas.scl.validator".level = DEBUG
2424

25+
# Test Profile overrides.
26+
%test.compas.validator.ocl.custom.directory = ./src/test/data/ocl
27+
%test.compas.validator.temp.directory = ./target/data/temp
28+
29+
%test.quarkus.log.category."org.lfenergy.compas.scl.validator.collector.CompasOclFileCollector".level = WARN
30+
2531
# Smallrye JWT Properties (Microprofile)
2632
smallrye.jwt.verify.key.location = ${JWT_VERIFY_KEY:http://localhost:8089/auth/realms/compas/protocol/openid-connect/certs}
2733
mp.jwt.verify.issuer = ${JWT_VERIFY_ISSUER:http://localhost:8089/auth/realms/compas}

riseclipse/validator-riseclipse/src/main/java/org/lfenergy/compas/scl/validator/collector/AbstractFileCollector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected List<URI> getDefaultOclFilesFromClasspath() {
8080
* Search (recursively) for all files in the directory passed. The filter can be used to filter files from the List.
8181
*
8282
* @param directoryName The directory in which top search for files (recursively).
83-
* @param filter The filter used to filter the list of file, use '(path) -> true' to return them all.
83+
* @param filter The filter used to filter the list of file, use '(path) -&gt; true' to return them all.
8484
* @return The list of Files as URI found.
8585
*/
8686
protected List<URI> getFilesFromDirectory(String directoryName, Predicate<Path> filter) {

riseclipse/validator-riseclipse/src/test/java/org/lfenergy/compas/scl/validator/impl/SclModelLoaderTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import org.junit.jupiter.api.BeforeEach;
77
import org.junit.jupiter.api.Test;
88
import org.lfenergy.compas.scl.validator.exception.SclValidatorException;
9+
import org.lfenergy.compas.scl.validator.util.OclUtil;
910

1011
import java.io.IOException;
1112

@@ -18,6 +19,9 @@ class SclModelLoaderTest {
1819

1920
@BeforeEach
2021
void setup() {
22+
// Initialize the OCL Libraries
23+
OclUtil.setupOcl();
24+
2125
loader = new SclModelLoader();
2226
}
2327

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# SPDX-FileCopyrightText: 2022 Alliander N.V.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
# SLF4J's SimpleLogger configuration file
6+
# Simple implementation of Logger that sends all enabled log messages, for all defined loggers, to System.err.
7+
8+
org.slf4j.simpleLogger.showThreadName=true
9+
org.slf4j.simpleLogger.showLogName=true
10+
org.slf4j.simpleLogger.showShortLogName=true
11+
org.slf4j.simpleLogger.showDateTime=true
12+
org.slf4j.simpleLogger.dateTimeFormat=yyyy-MM-dd HH:mm:ss
13+
14+
org.slf4j.simpleLogger.defaultLogLevel=debug
15+
16+
org.slf4j.simpleLogger.log.org.lfenergy.compas.scl.validator.collector.CompasOclFileCollector=warn
17+
org.slf4j.simpleLogger.log.org.lfenergy.compas.scl.validator.util.OclUtil=info

0 commit comments

Comments
 (0)