Skip to content

Commit

Permalink
5.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
biagio committed Nov 24, 2024
1 parent a04dc1d commit 73cfdb1
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 37 deletions.
49 changes: 36 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- '**'
release:
types: [created]
types: [ created ]

jobs:
build:
Expand All @@ -22,9 +22,6 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD

- name: Cache Gradle packages
uses: actions/cache@v4
Expand All @@ -46,24 +43,50 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
server-id: ossrh
server-username: SONATYPE_USER
server-password: SONATYPE_TOKEN
server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_CENTRAL_TOKEN

- name: Import GPG key
run: |
cat <(echo -e "${{ secrets.GPG_SIGNING_KEY }}") | gpg --batch --import
cat <(echo -e "${{ secrets.GPG_SIGNING_KEY }}") | gpg --batch --import
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}

- name: Publish to Maven Central
run: ./gradlew -Psigning.gnupg.passphrase=${{ secrets.GPG_SIGNING_PASSWORD }} -Psigning.gnupg.keyName=${{ secrets.GPG_SIGNING_KEY_ID }} publish closeAndReleaseStagingRepositories

- name: Publish
run: |
./gradlew publish
env:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_TOKEN: ${{ secrets.SONATYPE_TOKEN }}
MAVEN_USERNAME: ${{ secrets.JRELEASER_MAVENCENTRAL_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.JRELEASER_MAVENCENTRAL_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }}

- name: Release
with:
arguments: full-release
uses: jreleaser/release-action@v2
env:
JRELEASER_MAVENCENTRAL_PASSWORD: ${{ secrets.JRELEASER_MAVENCENTRAL_PASSWORD }}
JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.JRELEASER_MAVENCENTRAL_USERNAME }}
JRELEASER_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }}
JRELEASER_GPG_SECRET_KEY: ${{ secrets.JRELEASER_GPG_SECRET_KEY }}
JRELEASER_GITHUB_TOKEN: ${{ secrets.JRELEASER_GITHUB_TOKEN }}
JRELEASER_PROJECT_VERSION: ${{ github.event.release.tag_name }}

- name: Output
uses: actions/upload-artifact@v3
if: always()
with:
name: jreleaser-release
path: |
out/jreleaser/trace.log
out/jreleaser/output.properties
4 changes: 2 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ Attenzione: le versioni precedenti alla 5.0.0 sono state rilasciato con groupId
<dependency>
<groupId>app.tozzi</groupId>
<artifactId>pec-parser</artifactId>
<version>5.0.1</version>
<version>5.0.2</version>
</dependency>
```

##### Gradle
```
implementation 'app.tozzi:pec-parser:5.0.1
implementation 'app.tozzi:pec-parser:5.0.2
```

### Requisiti
Expand Down
29 changes: 13 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'
}

group = 'app.tozzi'
version = '5.0.1'
version = '5.0.2'

compileJava {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
withSourcesJar()
withJavadocJar()
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

repositories {
Expand All @@ -29,8 +36,8 @@ dependencies {
runtimeOnly 'org.eclipse.angus:angus-activation:2.0.2'

// Lombok
compileOnly 'org.projectlombok:lombok:1.18.34'
annotationProcessor 'org.projectlombok:lombok:1.18.34'
compileOnly 'org.projectlombok:lombok:1.18.36'
annotationProcessor 'org.projectlombok:lombok:1.18.36'

// Log
implementation 'org.slf4j:slf4j-api:2.0.16'
Expand Down Expand Up @@ -59,7 +66,7 @@ publishing {
maven(MavenPublication) {
group = 'app.tozzi'
artifactId = 'pec-parser'
version = "5.0.1"
version = "5.0.2"
from components.java
pom {
name = 'pec-parser'
Expand Down Expand Up @@ -93,21 +100,11 @@ publishing {

repositories {
maven {
name "ossrh"
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = project.findProperty("sonatypeUsername") ?: System.getenv("SONATYPE_USER")
password = project.findProperty("sonatypePassword") ?: System.getenv("SONATYPE_TOKEN")
}
url = layout.buildDirectory.dir('staging-deploy')
}
}
}

signing {
useGpgCmd()
sign publishing.publications.maven
}

javadoc {
options.addBooleanOption('html5', true)
options.encoding = 'UTF-8'
Expand Down
52 changes: 52 additions & 0 deletions jreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
project:
name: jpa-search-helper
description: Utility per l'elaborazione di messaggi di Posta Elettronica Certificata (e messaggi di posta ordinaria)
longDescription: |
Utility per l'elaborazione di messaggi di Posta Elettronica Certificata (e messaggi di posta ordinaria)
inceptionYear: '2024'
links:
homepage: https://tozzi.app
documentation: https://tozzi.app
license: https://github.com/biagioT/java-pec-parser/blob/main/LICENSE
authors:
- Biagio Placido Tozzi
license: APACHE-2.0
tags:
- java
- jpa
java:
groupId: app.tozzi
artifactId: pec-parser
version: '17'

signing:
active: ALWAYS
armored: true
mode: MEMORY
checksums: false

release:
github:
skipRelease: true
skipTag: true
enabled: false
draft: false

deploy:
maven:
mavenCentral:
sonatype:
active: RELEASE
url: https://central.sonatype.com/api/v1/publisher
stagingRepositories:
- build/staging-deploy
sign: true
checksums: true
sourceJar: true
javadocJar: true
applyMavenCentralRules: true

checksum:
individual: true


8 changes: 2 additions & 6 deletions publiccode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,15 @@ description:
_Maven_
`<dependency>
<groupId>app.tozzi</groupId>
<artifactId>pec-parser</artifactId>
<version>5.0.0</version>
<version>5.0.2</version>
</dependency>`
_Gradle_
`implementation 'app.tozzi:pec-parser:5.0.0`
`implementation 'app.tozzi:pec-parser:5.0.2`
**Requisiti**
Expand Down

0 comments on commit 73cfdb1

Please sign in to comment.