From 6fa3fdf7c6565eb8b3dedc9068bc2f56be846ad0 Mon Sep 17 00:00:00 2001 From: Fontany--Legall Brandon Date: Sat, 10 Apr 2021 18:31:41 +0200 Subject: [PATCH] v1.0.2 --- .github/workflows/publish.yml | 24 ++- .github/workflows/sonar.yml | 2 +- .github/workflows/test.yml | 2 +- .gitignore | 1 + pom.xml | 163 ++++++++++++++++++ .../throwableoptional/ThrowableOptional.java | 0 src/pom.xml | 44 ----- .../ThrowableOptionalTest.java | 0 src/throwable-optional.iml | 2 - 9 files changed, 186 insertions(+), 52 deletions(-) create mode 100644 pom.xml rename src/{src => }/main/java/xyz/brandonfl/throwableoptional/ThrowableOptional.java (100%) delete mode 100644 src/pom.xml rename src/{src => }/test/java/xyz/brandonfl/throwableoptional/ThrowableOptionalTest.java (100%) delete mode 100644 src/throwable-optional.iml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e04d1be..1516263 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,18 +7,34 @@ jobs: runs-on: ubuntu-latest defaults: run: - working-directory: ./src + working-directory: . steps: - uses: actions/checkout@v2 - - name: Set up Maven Repository + - name: Set up Java for publishing to Maven Central Repository + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + server-id: ossrh + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} + gpg-passphrase: MAVEN_GPG_PASSPHRASE + - name: Publish to the Maven Central Repository + run: mvn -DreleaseFor=ossrh -B deploy + env: + MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} + - name: Set up Java for publishing to GitHub Packages uses: actions/setup-java@v1 with: java-version: 11 server-id: github server-username: GITHUB_USERNAME server-password: GITHUB_PASSWORD - - name: Publish package - run: mvn -B deploy + - name: Publish to GitHub Packages + run: mvn -DreleaseFor=github -B deploy env: GITHUB_USERNAME: ${{ github.actor }} GITHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index e4737c7..976e995 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest defaults: run: - working-directory: ./src + working-directory: . steps: - uses: actions/checkout@v2 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9c746af..2f3d88d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest defaults: run: - working-directory: ./src + working-directory: . steps: - uses: actions/checkout@v2 with: diff --git a/.gitignore b/.gitignore index 5ddaf46..e7c936f 100644 --- a/.gitignore +++ b/.gitignore @@ -133,6 +133,7 @@ cmake-build-release/ ## File-based project format: *.iws +*.iml ## Plugin-specific files: diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..9531e07 --- /dev/null +++ b/pom.xml @@ -0,0 +1,163 @@ + + + 4.0.0 + + xyz.brandonfl + throwable-optional + 1.0.2 + + Throwable Optional + Java utility class that enables the possibility to use the Optional with functions that can throw exceptions + https://github.com/brandonfl/throwable-optional + + + + MIT License + https://github.com/brandonfl/throwable-optional/blob/master/LICENSE + + + + + + Brandon Fontany-Legall + brandon@fontany-legall.xyz + BrandonFL + https://brandonfl.xyz/ + + + + + scm:git:git://github.com/brandonfl/throwable-optional.git + scm:git:ssh://github.com:brandonfl/throwable-optional.git + http://github.com/brandonfl/throwable-optional/tree/master + + + + 11 + 11 + + brandonfl_throwable-optional + fontanylegall-brandon + https://sonarcloud.io + + + + + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.9.1 + + + attach-javadocs + + jar + + + + + + + + + + + release-ossrh + + + releaseFor + ossrh + + + + + ossrh + Central Repository OSSRH + https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + ossrh + https://s01.oss.sonatype.org/ + true + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + --pinentry-mode + loopback + + + + + sign-artifacts + verify + + sign + + + + + + + + + + release-github + + + releaseFor + github + + + + + github + GitHub brandonfl Apache Maven Packages + https://maven.pkg.github.com/brandonfl/throwable-optional + + + + + + + + org.junit.jupiter + junit-jupiter-engine + 5.1.0 + test + + + junit + junit + RELEASE + test + + + diff --git a/src/src/main/java/xyz/brandonfl/throwableoptional/ThrowableOptional.java b/src/main/java/xyz/brandonfl/throwableoptional/ThrowableOptional.java similarity index 100% rename from src/src/main/java/xyz/brandonfl/throwableoptional/ThrowableOptional.java rename to src/main/java/xyz/brandonfl/throwableoptional/ThrowableOptional.java diff --git a/src/pom.xml b/src/pom.xml deleted file mode 100644 index af86d59..0000000 --- a/src/pom.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - 4.0.0 - - xyz.brandonfl - throwable-optional - 1.0.0 - - 11 - 11 - - brandonfl_throwable-optional - fontanylegall-brandon - https://sonarcloud.io - - - - - github - GitHub brandonfl Apache Maven Packages - https://maven.pkg.github.com/brandonfl/throwable-optional - - - - - - org.junit.jupiter - junit-jupiter-engine - 5.1.0 - test - - - junit - junit - RELEASE - test - - - - - - diff --git a/src/src/test/java/xyz/brandonfl/throwableoptional/ThrowableOptionalTest.java b/src/test/java/xyz/brandonfl/throwableoptional/ThrowableOptionalTest.java similarity index 100% rename from src/src/test/java/xyz/brandonfl/throwableoptional/ThrowableOptionalTest.java rename to src/test/java/xyz/brandonfl/throwableoptional/ThrowableOptionalTest.java diff --git a/src/throwable-optional.iml b/src/throwable-optional.iml deleted file mode 100644 index 78b2cc5..0000000 --- a/src/throwable-optional.iml +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file