@@ -6,10 +6,11 @@ plugins {
66 checkstyle
77 jacoco
88 alias(libs.plugins.spotbugs)
9+ alias(libs.plugins.jreleaser)
910}
1011
1112group = " de.siegmar"
12- version = " 6.1.1 "
13+ version = " 6.1.2 "
1314
1415java {
1516 toolchain {
@@ -70,52 +71,45 @@ tasks.jacocoTestCoverageVerification {
7071 }
7172}
7273
73- publishing {
74- publications {
75- create<MavenPublication >(" maven" ) {
76- artifactId = " logback-gelf"
77- from(components[" java" ])
78-
79- pom {
80- name = " Logback GELF"
81- description = " Logback appender for sending GELF messages with zero additional dependencies."
82- url = " https://github.com/osiegmar/logback-gelf"
83- licenses {
84- license {
85- name = " GNU Lesser General Public License version 2.1"
86- url = " https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt"
87- }
88- }
89- scm {
90- url = " https://github.com/osiegmar/logback-gelf"
91- connection = " scm:git:https://github.com/osiegmar/logback-gelf.git"
92- }
93- developers {
94- developer {
95- id = " osiegmar"
96- name = " Oliver Siegmar"
97- 98- }
74+ jreleaser {
75+ project {
76+ gitRootSearch.set(true )
77+ name.set(" Logback GELF" )
78+ description.set(" Logback appender for sending GELF messages with zero additional dependencies." )
79+ authors.set(listOf (" Oliver Siegmar" ))
80+ license.set(" LGPL-2.1" )
81+ links {
82+ homepage.set(" https://github.com/osiegmar/logback-gelf" )
83+ license.set(" https://opensource.org/license/lgpl-2-1" )
84+ }
85+ }
86+ signing {
87+ active.set(org.jreleaser.model.Active .ALWAYS )
88+ armored.set(true )
89+ }
90+ deploy {
91+ maven {
92+ mavenCentral {
93+ create(" sonatype" ) {
94+ active.set(org.jreleaser.model.Active .ALWAYS )
95+ url.set(" https://central.sonatype.com/api/v1/publisher" )
96+ stagingRepositories.add(" build/staging-deploy" )
9997 }
10098 }
10199 }
102100 }
103- repositories {
104- maven {
105- name = " ossrh"
106- credentials(PasswordCredentials ::class )
107- url = if (version.toString().endsWith(" SNAPSHOT" )) {
108- uri(" https://s01.oss.sonatype.org/content/repositories/snapshots/" )
109- } else {
110- uri(" https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" )
101+ release {
102+ github {
103+ changelog {
104+ formatted.set(org.jreleaser.model.Active .ALWAYS )
105+ preset.set(" conventional-commits" )
106+ append {
107+ enabled.set(true )
108+ target.set(file(" CHANGELOG.md" ))
109+ title = " ## [{{tagName}}] - {{#f_now}}YYYY-MM-dd{{/f_now}}"
110+ content = " {{changelogTitle}}\n {{changelogContent}}"
111+ }
111112 }
112113 }
113114 }
114115}
115-
116- signing {
117- val signingKey: String? by project
118- val signingPassword: String? by project
119- useInMemoryPgpKeys(signingKey, signingPassword)
120- sign(publishing.publications[" maven" ])
121- }
0 commit comments