-
Notifications
You must be signed in to change notification settings - Fork 3
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 #77 from com-pas/develop
New Release with refactoring
- Loading branch information
Showing
22 changed files
with
72 additions
and
84 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 |
---|---|---|
|
@@ -15,12 +15,12 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.11 | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '11' | ||
- name: Create custom Maven Settings.xml | ||
uses: whelk-io/maven-settings-xml-action@v18 | ||
uses: whelk-io/maven-settings-xml-action@v20 | ||
with: | ||
output_file: custom_maven_settings.xml | ||
servers: '[{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]' | ||
|
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 |
---|---|---|
|
@@ -22,12 +22,12 @@ jobs: | |
# Extra the tagname form the git reference, value of GITHUB_REF will be something like refs/tags/<tag_name>. | ||
run: echo "##[set-output name=tagname;]$(echo ${GITHUB_REF##*/})" | ||
- name: Set up JDK 1.11 | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '11' | ||
- name: Create custom Maven Settings.xml | ||
uses: whelk-io/maven-settings-xml-action@v18 | ||
uses: whelk-io/maven-settings-xml-action@v20 | ||
with: | ||
output_file: custom_maven_settings.xml | ||
servers: '[{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]' | ||
|
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
- name: Set up JDK 1.11 | ||
uses: actions/[email protected].0 | ||
uses: actions/[email protected].1 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '11' | ||
|
@@ -32,7 +32,7 @@ jobs: | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
- name: Create custom Maven Settings.xml | ||
uses: whelk-io/maven-settings-xml-action@v18 | ||
uses: whelk-io/maven-settings-xml-action@v20 | ||
with: | ||
output_file: custom_maven_settings.xml | ||
servers: '[{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]' | ||
|
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
12 changes: 12 additions & 0 deletions
12
jaxrs-commons/src/main/java/org/lfenergy/compas/core/jaxrs/JaxrsConstants.java
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,12 @@ | ||
// SPDX-FileCopyrightText: 2021 Alliander N.V. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
package org.lfenergy.compas.core.jaxrs; | ||
|
||
public class JaxrsConstants { | ||
JaxrsConstants() { | ||
throw new UnsupportedOperationException("JaxrsConstants class"); | ||
} | ||
|
||
public static final String COMPAS_COMMONS_V1_NS_URI = "https://www.lfenergy.org/compas/commons/v1"; | ||
} |
4 changes: 2 additions & 2 deletions
4
...est/exception/CompasExceptionHandler.java → ...xrs/exception/CompasExceptionHandler.java
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
4 changes: 2 additions & 2 deletions
4
.../ConstraintViolationExceptionHandler.java → .../ConstraintViolationExceptionHandler.java
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
4 changes: 2 additions & 2 deletions
4
...st/exception/GenericExceptionHandler.java → ...rs/exception/GenericExceptionHandler.java
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
10 changes: 5 additions & 5 deletions
10
.../compas/core/rest/model/ErrorMessage.java → ...compas/core/jaxrs/model/ErrorMessage.java
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
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
10 changes: 10 additions & 0 deletions
10
jaxrs-commons/src/main/java/org/lfenergy/compas/core/jaxrs/model/package-info.java
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,10 @@ | ||
// SPDX-FileCopyrightText: 2021 Alliander N.V. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
@XmlSchema(xmlns = {@XmlNs(prefix = "compas-commons", namespaceURI = COMPAS_COMMONS_V1_NS_URI)}) | ||
package org.lfenergy.compas.core.jaxrs.model; | ||
|
||
import javax.xml.bind.annotation.XmlNs; | ||
import javax.xml.bind.annotation.XmlSchema; | ||
|
||
import static org.lfenergy.compas.core.jaxrs.JaxrsConstants.COMPAS_COMMONS_V1_NS_URI; |
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,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
SPDX-FileCopyrightText: 2021 Alliander N.V. | ||
SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_2_0.xsd" | ||
bean-discovery-mode="annotated" version="2.0"> | ||
</beans> |
6 changes: 3 additions & 3 deletions
6
...y/compas/core/rest/RestConstantsTest.java → ...compas/core/jaxrs/JaxrsConstantsTest.java
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
// SPDX-FileCopyrightText: 2021 Alliander N.V. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
package org.lfenergy.compas.core.rest; | ||
package org.lfenergy.compas.core.jaxrs; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertThrows; | ||
|
||
class RestConstantsTest { | ||
class JaxrsConstantsTest { | ||
@Test | ||
void constructor_WhenConstructorCalled_ThenShouldThrowExceptionCauseForbidden() { | ||
assertThrows(UnsupportedOperationException.class, RestConstants::new); | ||
assertThrows(UnsupportedOperationException.class, JaxrsConstants::new); | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...exception/CompasExceptionHandlerTest.java → ...exception/CompasExceptionHandlerTest.java
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
4 changes: 2 additions & 2 deletions
4
...straintViolationExceptionHandlerTest.java → ...straintViolationExceptionHandlerTest.java
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
6 changes: 3 additions & 3 deletions
6
...xception/GenericExceptionHandlerTest.java → ...xception/GenericExceptionHandlerTest.java
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
2 changes: 1 addition & 1 deletion
2
...s/core/rest/model/AbstractPojoTester.java → .../core/jaxrs/model/AbstractPojoTester.java
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
2 changes: 1 addition & 1 deletion
2
...pas/core/rest/model/ErrorMessageTest.java → ...as/core/jaxrs/model/ErrorMessageTest.java
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
2 changes: 1 addition & 1 deletion
2
...as/core/rest/model/ErrorResponseTest.java → ...s/core/jaxrs/model/ErrorResponseTest.java
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
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
12 changes: 0 additions & 12 deletions
12
rest-commons/src/main/java/org/lfenergy/compas/core/rest/RestConstants.java
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
rest-commons/src/main/java/org/lfenergy/compas/core/rest/model/package-info.java
This file was deleted.
Oops, something went wrong.