Skip to content

Commit

Permalink
v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonfl committed Apr 10, 2021
1 parent 9f6e09a commit 6fa3fdf
Show file tree
Hide file tree
Showing 9 changed files with 186 additions and 52 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src
working-directory: .
steps:
- uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src
working-directory: .
steps:
- uses: actions/checkout@v2
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ cmake-build-release/

## File-based project format:
*.iws
*.iml

## Plugin-specific files:

Expand Down
163 changes: 163 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>xyz.brandonfl</groupId>
<artifactId>throwable-optional</artifactId>
<version>1.0.2</version>

<name>Throwable Optional</name>
<description>Java utility class that enables the possibility to use the Optional with functions that can throw exceptions</description>
<url>https://github.com/brandonfl/throwable-optional</url>

<licenses>
<license>
<name>MIT License</name>
<url>https://github.com/brandonfl/throwable-optional/blob/master/LICENSE</url>
</license>
</licenses>

<developers>
<developer>
<name>Brandon Fontany-Legall</name>
<email>[email protected]</email>
<organization>BrandonFL</organization>
<organizationUrl>https://brandonfl.xyz/</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/brandonfl/throwable-optional.git</connection>
<developerConnection>scm:git:ssh://github.com:brandonfl/throwable-optional.git</developerConnection>
<url>http://github.com/brandonfl/throwable-optional/tree/master</url>
</scm>

<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>

<sonar.projectKey>brandonfl_throwable-optional</sonar.projectKey>
<sonar.organization>fontanylegall-brandon</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>

<profiles>
<profile>
<id>release-ossrh</id>
<activation>
<property>
<name>releaseFor</name>
<value>ossrh</value>
</property>
</activation>
<distributionManagement>
<repository>
<id>ossrh</id>
<name>Central Repository OSSRH</name>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>release-github</id>
<activation>
<property>
<name>releaseFor</name>
<value>github</value>
</property>
</activation>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub brandonfl Apache Maven Packages</name>
<url>https://maven.pkg.github.com/brandonfl/throwable-optional</url>
</repository>
</distributionManagement>
</profile>
</profiles>

<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>RELEASE</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
44 changes: 0 additions & 44 deletions src/pom.xml

This file was deleted.

2 changes: 0 additions & 2 deletions src/throwable-optional.iml

This file was deleted.

0 comments on commit 6fa3fdf

Please sign in to comment.