Skip to content

Commit b61b85a

Browse files
author
Dennis Labordus
authored
Merge pull request #18 from com-pas/develop
Create first POC Version to test integration with all components
2 parents 8c80642 + c7eafbf commit b61b85a

File tree

78 files changed

+9580
-405
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+9580
-405
lines changed

.github/workflows/automate-projects.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ jobs:
1515
if: github.event_name == 'issues' && github.event.action == 'opened'
1616
env:
1717
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18-
GITHUB_PROJECT_URL: https://github.com/com-pas/compas-scl-auto-alignment/projects/2
18+
GITHUB_PROJECT_URL: https://github.com/com-pas/compas-scl-auto-alignment/projects/1
1919
GITHUB_PROJECT_COLUMN_NAME: To do
2020
- name: add-new-pull-request-to-repository-based-project-column
2121
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
2222
if: github.event_name == 'pull_request' && github.event.action == 'opened'
2323
env:
2424
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25-
GITHUB_PROJECT_URL: https://github.com/com-pas/compas-scl-auto-alignment/projects/2
25+
GITHUB_PROJECT_URL: https://github.com/com-pas/compas-scl-auto-alignment/projects/1
2626
GITHUB_PROJECT_COLUMN_NAME: To do
2727
- name: add-new-issues-to-organization-based-project-column
2828
uses: docker://takanabe/github-actions-automate-projects:v0.0.1

.github/workflows/build-project.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ on:
88
push:
99
branches:
1010
- '**'
11-
- '!main'
12-
- '!develop'
1311
pull_request:
1412
branches:
1513
- 'main'
@@ -40,7 +38,7 @@ jobs:
4038
restore-keys: ${{ runner.os }}-m2
4139

4240
- name: Set up JDK 1.11
43-
uses: actions/setup-java@v2.3.1
41+
uses: actions/setup-java@v2.4.0
4442
with:
4543
distribution: 'zulu'
4644
java-version: '11'

.github/workflows/release-project.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
push_to_registry:
1313
name: Build and publish
1414
runs-on: ubuntu-latest
15+
1516
steps:
1617
- name: Checkout
1718
uses: actions/checkout@v2
@@ -41,7 +42,7 @@ jobs:
4142
# Extra the tagname form the git reference, value of GITHUB_REF will be something like refs/tags/<tag_name>.
4243
run: echo "##[set-output name=tagname;]$(echo ${GITHUB_REF##*/})"
4344
- name: Set up JDK 1.11
44-
uses: actions/setup-java@v2.3.1
45+
uses: actions/setup-java@v2.4.0
4546
with:
4647
distribution: 'zulu'
4748
java-version: '11'

.github/workflows/reuse.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
14-
- name: REUSE Compliance Check
15-
uses: fsfe/reuse-action@v1
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
- name: REUSE Compliance Check
16+
uses: fsfe/reuse-action@v1

.github/workflows/sonarcloud-analysis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,25 @@ on:
88
push:
99
branches:
1010
- '**'
11-
- '!main'
12-
- '!develop'
1311
pull_request:
1412
branches:
1513
- 'main'
1614
- 'develop'
1715

1816
jobs:
1917
build:
20-
name: Build
18+
name: SonarCloud
2119
runs-on: ubuntu-latest
2220
timeout-minutes: 15
2321

2422
steps:
25-
- uses: actions/checkout@v2
23+
- name: Checkout
24+
uses: actions/checkout@v2
2625
with:
2726
fetch-depth: 0
2827

2928
- name: Set up JDK 1.11
30-
uses: actions/setup-java@v2.3.1
29+
uses: actions/setup-java@v2.4.0
3130
with:
3231
distribution: 'zulu'
3332
java-version: '11'

app/pom.xml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,12 @@ SPDX-License-Identifier: Apache-2.0
1818
<packaging>jar</packaging>
1919

2020
<properties>
21-
<quarkus.platform.version>2.4.1.Final</quarkus.platform.version>
22-
2321
<quarkus.container-image.group>lfenergy</quarkus.container-image.group>
2422
<quarkus.container-image.name>compas-scl-auto-alignment</quarkus.container-image.name>
2523
</properties>
2624

2725
<dependencyManagement>
2826
<dependencies>
29-
<dependency>
30-
<groupId>io.quarkus</groupId>
31-
<artifactId>quarkus-universe-bom</artifactId>
32-
<version>${quarkus.platform.version}</version>
33-
<type>pom</type>
34-
<scope>import</scope>
35-
</dependency>
3627
</dependencies>
3728
</dependencyManagement>
3829

@@ -44,7 +35,7 @@ SPDX-License-Identifier: Apache-2.0
4435

4536
<dependency>
4637
<groupId>org.lfenergy.compas.core</groupId>
47-
<artifactId>scl2007b4</artifactId>
38+
<artifactId>commons</artifactId>
4839
</dependency>
4940
<dependency>
5041
<groupId>org.lfenergy.compas.core</groupId>

app/src/main/docker/Dockerfile.legacy-jar

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

app/src/main/docker/Dockerfile.native-distroless

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// SPDX-FileCopyrightText: 2021 Alliander N.V.
2+
//
3+
// SPDX-License-Identifier: Apache-2.0
4+
package org.lfenergy.compas.scl.auto.alignment.rest;
5+
6+
import io.quarkus.runtime.annotations.RegisterForReflection;
7+
import org.lfenergy.compas.core.commons.ElementConverter;
8+
9+
import javax.enterprise.context.ApplicationScoped;
10+
import javax.enterprise.inject.Produces;
11+
12+
/**
13+
* Create Beans from other dependencies that are used in the application.
14+
*/
15+
@RegisterForReflection(targets = {com.powsybl.sld.library.Components.class,
16+
com.powsybl.sld.library.Component.class})
17+
public class CompasSclAutoAlignmentConfiguration {
18+
@Produces
19+
@ApplicationScoped
20+
public ElementConverter createElementConverter() {
21+
return new ElementConverter();
22+
}
23+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// SPDX-FileCopyrightText: 2021 Alliander N.V.
2+
//
3+
// SPDX-License-Identifier: Apache-2.0
4+
package org.lfenergy.compas.scl.auto.alignment.rest;
5+
6+
import io.smallrye.config.ConfigMapping;
7+
import io.smallrye.config.WithName;
8+
9+
@ConfigMapping(prefix = "compas.userinfo")
10+
public interface UserInfoProperties {
11+
@WithName("who.claimname")
12+
String who();
13+
}

0 commit comments

Comments
 (0)