Skip to content

Commit d80dfee

Browse files
authored
Merge pull request #4 from Les-Projects/main
Merge back V1
2 parents b3b75ad + d650bd2 commit d80dfee

File tree

6 files changed

+149
-88
lines changed

6 files changed

+149
-88
lines changed

.all-contributorsrc

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,34 @@
55
"repoHost": "https://github.com",
66
"linkToUsage": false,
77
"skipCi": true,
8-
"contributors": []
9-
}
8+
"contributors": [
9+
{
10+
"login": "vaio2005",
11+
"name": "filliravaz",
12+
"avatar_url": "https://avatars.githubusercontent.com/u/40716956?v=4",
13+
"profile": "https://filliravaz.me/ COMING SOON",
14+
"contributions": [
15+
"code",
16+
"example",
17+
"ideas",
18+
"maintenance"
19+
]
20+
},
21+
{
22+
"login": "LostAndDead",
23+
"name": "LostAndDead",
24+
"avatar_url": "https://avatars.githubusercontent.com/u/39418539?v=4",
25+
"profile": "https://lostanddead.co.uk",
26+
"contributions": [
27+
"mentoring",
28+
"ideas",
29+
"review"
30+
]
31+
}
32+
],
33+
"files": [
34+
"README.md"
35+
],
36+
"commitConvention": "angular",
37+
"contributorsPerLine": 7
38+
}

.github/workflows/Maven-Test.yml

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

.github/workflows/Release-GH-Packages.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish package to the Maven Central Repository
2+
on:
3+
release:
4+
types: [created]
5+
workflow_dispatch:
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Set up Maven Central Repository
13+
uses: actions/setup-java@v3
14+
with:
15+
java-version: '17'
16+
distribution: 'adopt'
17+
server-id: ossrh
18+
server-username: MAVEN_USERNAME
19+
server-password: MAVEN_PASSWORD
20+
gpg-private-key: ${{ secrets.GPG_KEY }}
21+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
22+
- name: Publish package
23+
run: mvn --batch-mode deploy
24+
env:
25+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
26+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
27+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

readme.md renamed to README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![forthebadge](https://forthebadge.com/images/badges/fuck-it-ship-it.svg)](https://forthebadge.com) [![forthebadge](https://forthebadge.com/images/badges/made-with-java.svg)](https://forthebadge.com) [![forthebadge](https://forthebadge.com/images/badges/uses-badges.svg)](https://forthebadge.com)
44
![GitHub issues](https://img.shields.io/github/issues/Les-Projects/mcss-api-java?style=for-the-badge) ![GitHub pull requests](https://img.shields.io/github/issues-pr/Les-Projects/mcss-api-java?label=Pull%20Requests&style=for-the-badge)
55
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
6-
[![All Contributors](https://img.shields.io/badge/all_contributors-13-orange.svg?style=flat-square)](#contributors)
6+
[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors-)
77
<!-- ALL-CONTRIBUTORS-BADGE:END -->
88

99
## Introduction
@@ -18,6 +18,14 @@ You're more than welcome to contribute and improve the code.
1818
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
1919
<!-- prettier-ignore-start -->
2020
<!-- markdownlint-disable -->
21+
<table>
22+
<tbody>
23+
<tr>
24+
<td align="center"><a href="https://filliravaz.me/ COMING SOON"><img src="https://avatars.githubusercontent.com/u/40716956?v=4?s=100" width="100px;" alt="filliravaz"/><br /><sub><b>filliravaz</b></sub></a><br /><a href="https://github.com/Les-Projects/mcss-api-java/commits?author=vaio2005" title="Code">💻</a> <a href="#example-vaio2005" title="Examples">💡</a> <a href="#ideas-vaio2005" title="Ideas, Planning, & Feedback">🤔</a> <a href="#maintenance-vaio2005" title="Maintenance">🚧</a></td>
25+
<td align="center"><a href="https://lostanddead.co.uk"><img src="https://avatars.githubusercontent.com/u/39418539?v=4?s=100" width="100px;" alt="LostAndDead"/><br /><sub><b>LostAndDead</b></sub></a><br /><a href="#mentoring-LostAndDead" title="Mentoring">🧑‍🏫</a> <a href="#ideas-LostAndDead" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/Les-Projects/mcss-api-java/pulls?q=is%3Apr+reviewed-by%3ALostAndDead" title="Reviewed Pull Requests">👀</a></td>
26+
</tr>
27+
</tbody>
28+
</table>
2129

2230
<!-- markdownlint-restore -->
2331
<!-- prettier-ignore-end -->

pom.xml

Lines changed: 82 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>dev.le_app</groupId>
7+
<groupId>dev.le-app</groupId>
88
<artifactId>mcss-api-java</artifactId>
99
<version>1.2.1</version>
1010

@@ -72,10 +72,87 @@
7272
</build>-->
7373

7474
<distributionManagement>
75+
<snapshotRepository>
76+
<id>ossrh</id>
77+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
78+
</snapshotRepository>
7579
<repository>
76-
<id>github</id>
77-
<name>GitHub Les-Projects Apache Maven Packages</name>
78-
<url>https://maven.pkg.github.com/Les-Projects/mcss-api-java/</url>
80+
<id>ossrh</id>
81+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
7982
</repository>
8083
</distributionManagement>
81-
</project>
84+
85+
<build>
86+
<plugins>
87+
<plugin>
88+
<groupId>org.apache.maven.plugins</groupId>
89+
<artifactId>maven-source-plugin</artifactId>
90+
<version>2.2.1</version>
91+
<executions>
92+
<execution>
93+
<id>attach-sources</id>
94+
<goals>
95+
<goal>jar-no-fork</goal>
96+
</goals>
97+
</execution>
98+
</executions>
99+
</plugin>
100+
<plugin>
101+
<groupId>org.apache.maven.plugins</groupId>
102+
<artifactId>maven-javadoc-plugin</artifactId>
103+
<version>3.3.1</version>
104+
<executions>
105+
<execution>
106+
<id>attach-javadocs</id>
107+
<goals>
108+
<goal>jar</goal>
109+
</goals>
110+
</execution>
111+
</executions>
112+
</plugin>
113+
<plugin>
114+
<groupId>org.apache.maven.plugins</groupId>
115+
<artifactId>maven-gpg-plugin</artifactId>
116+
<version>3.0.1</version>
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+
<configuration>
127+
<!-- Prevent gpg from using pinentry programs -->
128+
<gpgArguments>
129+
<arg>--pinentry-mode</arg>
130+
<arg>loopback</arg>
131+
</gpgArguments>
132+
</configuration>
133+
</plugin>
134+
<plugin>
135+
<groupId>org.sonatype.plugins</groupId>
136+
<artifactId>nexus-staging-maven-plugin</artifactId>
137+
<version>1.6.7</version>
138+
<extensions>true</extensions>
139+
<configuration>
140+
<serverId>ossrh</serverId>
141+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
142+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
143+
</configuration>
144+
</plugin>
145+
<plugin>
146+
<groupId>org.apache.maven.plugins</groupId>
147+
<artifactId>maven-release-plugin</artifactId>
148+
<version>2.5.3</version>
149+
<configuration>
150+
<autoVersionSubmodules>true</autoVersionSubmodules>
151+
<useReleaseProfile>false</useReleaseProfile>
152+
<releaseProfiles>release</releaseProfiles>
153+
<goals>deploy</goals>
154+
</configuration>
155+
</plugin>
156+
</plugins>
157+
</build>
158+
</project>

0 commit comments

Comments
 (0)