Skip to content

Commit 73cfdb1

Browse files
author
biagio
committed
5.0.2
1 parent a04dc1d commit 73cfdb1

File tree

5 files changed

+105
-37
lines changed

5 files changed

+105
-37
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
branches:
99
- '**'
1010
release:
11-
types: [created]
11+
types: [ created ]
1212

1313
jobs:
1414
build:
@@ -22,9 +22,6 @@ jobs:
2222
with:
2323
java-version: '17'
2424
distribution: 'temurin'
25-
server-id: ossrh
26-
server-username: MAVEN_USERNAME
27-
server-password: MAVEN_PASSWORD
2825

2926
- name: Cache Gradle packages
3027
uses: actions/cache@v4
@@ -46,24 +43,50 @@ jobs:
4643
steps:
4744
- name: Checkout code
4845
uses: actions/checkout@v4
46+
with:
47+
fetch-depth: 0
4948

5049
- name: Set up JDK 17
5150
uses: actions/setup-java@v4
5251
with:
5352
java-version: '17'
5453
distribution: 'temurin'
55-
server-id: ossrh
56-
server-username: SONATYPE_USER
57-
server-password: SONATYPE_TOKEN
54+
server-id: central
55+
server-username: MAVEN_USERNAME
56+
server-password: MAVEN_CENTRAL_TOKEN
5857

5958
- name: Import GPG key
6059
run: |
61-
cat <(echo -e "${{ secrets.GPG_SIGNING_KEY }}") | gpg --batch --import
60+
cat <(echo -e "${{ secrets.GPG_SIGNING_KEY }}") | gpg --batch --import
6261
env:
6362
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
64-
65-
- name: Publish to Maven Central
66-
run: ./gradlew -Psigning.gnupg.passphrase=${{ secrets.GPG_SIGNING_PASSWORD }} -Psigning.gnupg.keyName=${{ secrets.GPG_SIGNING_KEY_ID }} publish closeAndReleaseStagingRepositories
63+
64+
- name: Publish
65+
run: |
66+
./gradlew publish
6767
env:
68-
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
69-
SONATYPE_TOKEN: ${{ secrets.SONATYPE_TOKEN }}
68+
MAVEN_USERNAME: ${{ secrets.JRELEASER_MAVENCENTRAL_USERNAME }}
69+
MAVEN_CENTRAL_TOKEN: ${{ secrets.JRELEASER_MAVENCENTRAL_PASSWORD }}
70+
MAVEN_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
71+
72+
- name: Release
73+
with:
74+
arguments: full-release
75+
uses: jreleaser/release-action@v2
76+
env:
77+
JRELEASER_MAVENCENTRAL_PASSWORD: ${{ secrets.JRELEASER_MAVENCENTRAL_PASSWORD }}
78+
JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.JRELEASER_MAVENCENTRAL_USERNAME }}
79+
JRELEASER_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
80+
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }}
81+
JRELEASER_GPG_SECRET_KEY: ${{ secrets.JRELEASER_GPG_SECRET_KEY }}
82+
JRELEASER_GITHUB_TOKEN: ${{ secrets.JRELEASER_GITHUB_TOKEN }}
83+
JRELEASER_PROJECT_VERSION: ${{ github.event.release.tag_name }}
84+
85+
- name: Output
86+
uses: actions/upload-artifact@v3
87+
if: always()
88+
with:
89+
name: jreleaser-release
90+
path: |
91+
out/jreleaser/trace.log
92+
out/jreleaser/output.properties

README.MD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Attenzione: le versioni precedenti alla 5.0.0 sono state rilasciato con groupId
99
<dependency>
1010
<groupId>app.tozzi</groupId>
1111
<artifactId>pec-parser</artifactId>
12-
<version>5.0.1</version>
12+
<version>5.0.2</version>
1313
</dependency>
1414
```
1515

1616
##### Gradle
1717
```
18-
implementation 'app.tozzi:pec-parser:5.0.1
18+
implementation 'app.tozzi:pec-parser:5.0.2
1919
```
2020

2121
### Requisiti

build.gradle

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
plugins {
22
id 'java-library'
33
id 'maven-publish'
4-
id 'signing'
54
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'
65
}
76

87
group = 'app.tozzi'
9-
version = '5.0.1'
8+
version = '5.0.2'
9+
10+
compileJava {
11+
sourceCompatibility = JavaVersion.VERSION_17
12+
targetCompatibility = JavaVersion.VERSION_17
13+
}
1014

1115
java {
1216
sourceCompatibility = JavaVersion.VERSION_17
1317
targetCompatibility = JavaVersion.VERSION_17
1418
withSourcesJar()
1519
withJavadocJar()
20+
toolchain {
21+
languageVersion = JavaLanguageVersion.of(17)
22+
}
1623
}
1724

1825
repositories {
@@ -29,8 +36,8 @@ dependencies {
2936
runtimeOnly 'org.eclipse.angus:angus-activation:2.0.2'
3037

3138
// Lombok
32-
compileOnly 'org.projectlombok:lombok:1.18.34'
33-
annotationProcessor 'org.projectlombok:lombok:1.18.34'
39+
compileOnly 'org.projectlombok:lombok:1.18.36'
40+
annotationProcessor 'org.projectlombok:lombok:1.18.36'
3441

3542
// Log
3643
implementation 'org.slf4j:slf4j-api:2.0.16'
@@ -59,7 +66,7 @@ publishing {
5966
maven(MavenPublication) {
6067
group = 'app.tozzi'
6168
artifactId = 'pec-parser'
62-
version = "5.0.1"
69+
version = "5.0.2"
6370
from components.java
6471
pom {
6572
name = 'pec-parser'
@@ -93,21 +100,11 @@ publishing {
93100

94101
repositories {
95102
maven {
96-
name "ossrh"
97-
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
98-
credentials {
99-
username = project.findProperty("sonatypeUsername") ?: System.getenv("SONATYPE_USER")
100-
password = project.findProperty("sonatypePassword") ?: System.getenv("SONATYPE_TOKEN")
101-
}
103+
url = layout.buildDirectory.dir('staging-deploy')
102104
}
103105
}
104106
}
105107

106-
signing {
107-
useGpgCmd()
108-
sign publishing.publications.maven
109-
}
110-
111108
javadoc {
112109
options.addBooleanOption('html5', true)
113110
options.encoding = 'UTF-8'

jreleaser.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
project:
2+
name: jpa-search-helper
3+
description: Utility per l'elaborazione di messaggi di Posta Elettronica Certificata (e messaggi di posta ordinaria)
4+
longDescription: |
5+
Utility per l'elaborazione di messaggi di Posta Elettronica Certificata (e messaggi di posta ordinaria)
6+
inceptionYear: '2024'
7+
links:
8+
homepage: https://tozzi.app
9+
documentation: https://tozzi.app
10+
license: https://github.com/biagioT/java-pec-parser/blob/main/LICENSE
11+
authors:
12+
- Biagio Placido Tozzi
13+
license: APACHE-2.0
14+
tags:
15+
- java
16+
- jpa
17+
java:
18+
groupId: app.tozzi
19+
artifactId: pec-parser
20+
version: '17'
21+
22+
signing:
23+
active: ALWAYS
24+
armored: true
25+
mode: MEMORY
26+
checksums: false
27+
28+
release:
29+
github:
30+
skipRelease: true
31+
skipTag: true
32+
enabled: false
33+
draft: false
34+
35+
deploy:
36+
maven:
37+
mavenCentral:
38+
sonatype:
39+
active: RELEASE
40+
url: https://central.sonatype.com/api/v1/publisher
41+
stagingRepositories:
42+
- build/staging-deploy
43+
sign: true
44+
checksums: true
45+
sourceJar: true
46+
javadocJar: true
47+
applyMavenCentralRules: true
48+
49+
checksum:
50+
individual: true
51+
52+

publiccode.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,15 @@ description:
2929
_Maven_
3030
3131
`<dependency>
32-
3332
<groupId>app.tozzi</groupId>
34-
3533
<artifactId>pec-parser</artifactId>
36-
37-
<version>5.0.0</version>
38-
34+
<version>5.0.2</version>
3935
</dependency>`
4036
4137
4238
_Gradle_
4339
44-
`implementation 'app.tozzi:pec-parser:5.0.0`
40+
`implementation 'app.tozzi:pec-parser:5.0.2`
4541
4642
**Requisiti**
4743

0 commit comments

Comments
 (0)