-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up repository and add minor utility improvements
- Loading branch information
1 parent
30e2670
commit fa5f044
Showing
12 changed files
with
191 additions
and
64 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Release and Publish | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- name: Check-out | ||
uses: actions/checkout@v4 | ||
- name: Set up Java for publishing to Maven Central Packages | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'temurin' | ||
cache: maven | ||
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
server-id: central | ||
server-username: SONATYPE_USERNAME | ||
server-password: SONATYPE_TOKEN | ||
- name: Release with Maven | ||
run: | | ||
git config user.name "github-actions[bot]" | ||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
mvn -B -ntp -Dstyle.color=always release:prepare | ||
VERSION=`cat release.properties | grep scm.tag= | cut -d'=' -f2` | ||
mvn -B -ntp -Dstyle.color=always release:perform | ||
echo "Released ${VERSION} 🚀" >> $GITHUB_STEP_SUMMARY | ||
env: | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
SONATYPE_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
SONATYPE_TOKEN: ${{ secrets.OSSRH_TOKEN }} | ||
GITHUB_TOKEN: ${{ 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 |
---|---|---|
@@ -1,35 +1,21 @@ | ||
name: Release and Publish | ||
name: Publish package to GitHub Packages | ||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [created] | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- name: Check-out | ||
uses: actions/checkout@v4 | ||
- name: Set up Java for publishing to Maven Central Packages | ||
- uses: actions/checkout@v4 | ||
- name: Set up Java for publishing to GitHub Packages | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'temurin' | ||
cache: maven | ||
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
server-id: central | ||
server-username: SONATYPE_USERNAME | ||
server-password: SONATYPE_TOKEN | ||
- name: Release with Maven | ||
run: | | ||
git config user.name "github-actions[bot]" | ||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
mvn -B -ntp -Dstyle.color=always release:prepare | ||
VERSION=`cat release.properties | grep scm.tag= | cut -d'=' -f2` | ||
mvn -B -ntp -Dstyle.color=always release:perform | ||
echo "Released ${VERSION} 🚀" >> $GITHUB_STEP_SUMMARY | ||
- name: Publish to GitHub Packages | ||
run: mvn --batch-mode deploy | ||
env: | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
SONATYPE_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
SONATYPE_TOKEN: ${{ secrets.OSSRH_TOKEN }} | ||
GITHUB_TOKEN: ${{ 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
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
34 changes: 34 additions & 0 deletions
34
commons-testing/src/main/java/be/sddevelopment/commons/testing/BaseTest.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,34 @@ | ||
/*- | ||
* #%L | ||
* commons-testing | ||
* %% | ||
* Copyright (C) 2020 - 2024 SD Development | ||
* %% | ||
* Licensed under the EUPL, Version 1.1 or – as soon they will be | ||
* approved by the European Commission - subsequent versions of the | ||
* EUPL (the "Licence"); | ||
* | ||
* You may not use this work except in compliance with the Licence. | ||
* You may obtain a copy of the Licence at: | ||
* | ||
* http://ec.europa.eu/idabc/eupl5 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the Licence is distributed on an "AS IS" basis, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the Licence for the specific language governing permissions and | ||
* limitations under the Licence. | ||
* #L% | ||
*/ | ||
|
||
package be.sddevelopment.commons.testing; | ||
|
||
|
||
import be.sddevelopment.commons.testing.naming.ReplaceUnderscoredCamelCasing; | ||
import org.assertj.core.api.WithAssertions; | ||
import org.junit.jupiter.api.DisplayNameGeneration; | ||
|
||
@DisplayNameGeneration(ReplaceUnderscoredCamelCasing.class) | ||
public interface BaseTest extends WithAssertions { | ||
|
||
} |
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
37 changes: 37 additions & 0 deletions
37
commons-testing/src/main/java/be/sddevelopment/commons/testing/annotations/WIP.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,37 @@ | ||
/*- | ||
* #%L | ||
* commons-testing | ||
* %% | ||
* Copyright (C) 2020 - 2024 SD Development | ||
* %% | ||
* Licensed under the EUPL, Version 1.1 or – as soon they will be | ||
* approved by the European Commission - subsequent versions of the | ||
* EUPL (the "Licence"); | ||
* | ||
* You may not use this work except in compliance with the Licence. | ||
* You may obtain a copy of the Licence at: | ||
* | ||
* http://ec.europa.eu/idabc/eupl5 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the Licence is distributed on an "AS IS" basis, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the Licence for the specific language governing permissions and | ||
* limitations under the Licence. | ||
* #L% | ||
*/ | ||
|
||
package be.sddevelopment.commons.testing.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
import org.junit.jupiter.api.Disabled; | ||
|
||
@Disabled("Disabled: Work In Progress") | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target({ElementType.TYPE, ElementType.METHOD}) | ||
public @interface WIP { | ||
|
||
} |
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
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
Oops, something went wrong.