Skip to content

Commit 6fa3fdf

Browse files
committed
v1.0.2
1 parent 9f6e09a commit 6fa3fdf

File tree

9 files changed

+186
-52
lines changed

9 files changed

+186
-52
lines changed

.github/workflows/publish.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,34 @@ jobs:
77
runs-on: ubuntu-latest
88
defaults:
99
run:
10-
working-directory: ./src
10+
working-directory: .
1111
steps:
1212
- uses: actions/checkout@v2
13-
- name: Set up Maven Repository
13+
- name: Set up Java for publishing to Maven Central Repository
14+
uses: actions/setup-java@v2
15+
with:
16+
java-version: '11'
17+
distribution: 'adopt'
18+
server-id: ossrh
19+
server-username: MAVEN_USERNAME
20+
server-password: MAVEN_PASSWORD
21+
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
22+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
23+
- name: Publish to the Maven Central Repository
24+
run: mvn -DreleaseFor=ossrh -B deploy
25+
env:
26+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
27+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
28+
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
29+
- name: Set up Java for publishing to GitHub Packages
1430
uses: actions/setup-java@v1
1531
with:
1632
java-version: 11
1733
server-id: github
1834
server-username: GITHUB_USERNAME
1935
server-password: GITHUB_PASSWORD
20-
- name: Publish package
21-
run: mvn -B deploy
36+
- name: Publish to GitHub Packages
37+
run: mvn -DreleaseFor=github -B deploy
2238
env:
2339
GITHUB_USERNAME: ${{ github.actor }}
2440
GITHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/sonar.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
defaults:
1313
run:
14-
working-directory: ./src
14+
working-directory: .
1515
steps:
1616
- uses: actions/checkout@v2
1717
with:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
defaults:
1010
run:
11-
working-directory: ./src
11+
working-directory: .
1212
steps:
1313
- uses: actions/checkout@v2
1414
with:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ cmake-build-release/
133133

134134
## File-based project format:
135135
*.iws
136+
*.iml
136137

137138
## Plugin-specific files:
138139

pom.xml

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>xyz.brandonfl</groupId>
8+
<artifactId>throwable-optional</artifactId>
9+
<version>1.0.2</version>
10+
11+
<name>Throwable Optional</name>
12+
<description>Java utility class that enables the possibility to use the Optional with functions that can throw exceptions</description>
13+
<url>https://github.com/brandonfl/throwable-optional</url>
14+
15+
<licenses>
16+
<license>
17+
<name>MIT License</name>
18+
<url>https://github.com/brandonfl/throwable-optional/blob/master/LICENSE</url>
19+
</license>
20+
</licenses>
21+
22+
<developers>
23+
<developer>
24+
<name>Brandon Fontany-Legall</name>
25+
<email>brandon@fontany-legall.xyz</email>
26+
<organization>BrandonFL</organization>
27+
<organizationUrl>https://brandonfl.xyz/</organizationUrl>
28+
</developer>
29+
</developers>
30+
31+
<scm>
32+
<connection>scm:git:git://github.com/brandonfl/throwable-optional.git</connection>
33+
<developerConnection>scm:git:ssh://github.com:brandonfl/throwable-optional.git</developerConnection>
34+
<url>http://github.com/brandonfl/throwable-optional/tree/master</url>
35+
</scm>
36+
37+
<properties>
38+
<maven.compiler.source>11</maven.compiler.source>
39+
<maven.compiler.target>11</maven.compiler.target>
40+
41+
<sonar.projectKey>brandonfl_throwable-optional</sonar.projectKey>
42+
<sonar.organization>fontanylegall-brandon</sonar.organization>
43+
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
44+
</properties>
45+
46+
<build>
47+
<plugins>
48+
<plugin>
49+
<groupId>org.apache.maven.plugins</groupId>
50+
<artifactId>maven-source-plugin</artifactId>
51+
<version>2.2.1</version>
52+
<executions>
53+
<execution>
54+
<id>attach-sources</id>
55+
<goals>
56+
<goal>jar-no-fork</goal>
57+
</goals>
58+
</execution>
59+
</executions>
60+
</plugin>
61+
<plugin>
62+
<groupId>org.apache.maven.plugins</groupId>
63+
<artifactId>maven-javadoc-plugin</artifactId>
64+
<version>2.9.1</version>
65+
<executions>
66+
<execution>
67+
<id>attach-javadocs</id>
68+
<goals>
69+
<goal>jar</goal>
70+
</goals>
71+
</execution>
72+
</executions>
73+
</plugin>
74+
75+
</plugins>
76+
</build>
77+
78+
<profiles>
79+
<profile>
80+
<id>release-ossrh</id>
81+
<activation>
82+
<property>
83+
<name>releaseFor</name>
84+
<value>ossrh</value>
85+
</property>
86+
</activation>
87+
<distributionManagement>
88+
<repository>
89+
<id>ossrh</id>
90+
<name>Central Repository OSSRH</name>
91+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
92+
</repository>
93+
</distributionManagement>
94+
<build>
95+
<plugins>
96+
<plugin>
97+
<groupId>org.sonatype.plugins</groupId>
98+
<artifactId>nexus-staging-maven-plugin</artifactId>
99+
<version>1.6.7</version>
100+
<extensions>true</extensions>
101+
<configuration>
102+
<serverId>ossrh</serverId>
103+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
104+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
105+
</configuration>
106+
</plugin>
107+
<plugin>
108+
<groupId>org.apache.maven.plugins</groupId>
109+
<artifactId>maven-gpg-plugin</artifactId>
110+
<version>1.6</version>
111+
<configuration>
112+
<gpgArguments>
113+
<arg>--pinentry-mode</arg>
114+
<arg>loopback</arg>
115+
</gpgArguments>
116+
</configuration>
117+
<executions>
118+
<execution>
119+
<id>sign-artifacts</id>
120+
<phase>verify</phase>
121+
<goals>
122+
<goal>sign</goal>
123+
</goals>
124+
</execution>
125+
</executions>
126+
</plugin>
127+
</plugins>
128+
</build>
129+
</profile>
130+
131+
<profile>
132+
<id>release-github</id>
133+
<activation>
134+
<property>
135+
<name>releaseFor</name>
136+
<value>github</value>
137+
</property>
138+
</activation>
139+
<distributionManagement>
140+
<repository>
141+
<id>github</id>
142+
<name>GitHub brandonfl Apache Maven Packages</name>
143+
<url>https://maven.pkg.github.com/brandonfl/throwable-optional</url>
144+
</repository>
145+
</distributionManagement>
146+
</profile>
147+
</profiles>
148+
149+
<dependencies>
150+
<dependency>
151+
<groupId>org.junit.jupiter</groupId>
152+
<artifactId>junit-jupiter-engine</artifactId>
153+
<version>5.1.0</version>
154+
<scope>test</scope>
155+
</dependency>
156+
<dependency>
157+
<groupId>junit</groupId>
158+
<artifactId>junit</artifactId>
159+
<version>RELEASE</version>
160+
<scope>test</scope>
161+
</dependency>
162+
</dependencies>
163+
</project>

src/src/main/java/xyz/brandonfl/throwableoptional/ThrowableOptional.java renamed to src/main/java/xyz/brandonfl/throwableoptional/ThrowableOptional.java

File renamed without changes.

src/pom.xml

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

src/src/test/java/xyz/brandonfl/throwableoptional/ThrowableOptionalTest.java renamed to src/test/java/xyz/brandonfl/throwableoptional/ThrowableOptionalTest.java

File renamed without changes.

src/throwable-optional.iml

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

0 commit comments

Comments
 (0)