Skip to content

Commit d9ed258

Browse files
committed
use extra properties to define the description
1 parent 1c52508 commit d9ed258

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/trigger-java-publish.yml

+12-13
Original file line numberDiff line numberDiff line change
@@ -36,31 +36,30 @@ jobs:
3636
id 'signing'
3737
id 'org.jreleaser' version '1.12.0'
3838
}
39-
39+
4040
group = 'io.github.kevaundray.dummy'
4141
version = '0.0.1-SNAPSHOT'
42-
42+
43+
ext.projectDescription = 'A dummy library for testing PeerDAS KZG operations publication'
4344
def year = java.time.Year.now().getValue()
4445
def copyrightYear = (year == 2024) ? \"2024\" : \"2024-\$year\"
45-
46-
description = 'A dummy library for testing PeerDAS KZG operations publication'
47-
46+
4847
java {
4948
withJavadocJar()
5049
withSourcesJar()
5150
}
52-
51+
5352
repositories {
5453
mavenCentral()
5554
}
56-
55+
5756
publishing {
5857
publications {
5958
mavenJava(MavenPublication) {
6059
from components.java
6160
pom {
6261
name = 'PeerDAS KZG Dummy Library'
63-
description = 'Using a dummy description, want to use project.description but get errors'
62+
description = projectDescription
6463
url = 'https://github.com/crate-crypto/peerdas-kzg'
6564
licenses {
6665
license {
@@ -84,17 +83,17 @@ jobs:
8483
}
8584
}
8685
}
87-
86+
8887
signing {
8988
def signingKey = System.getenv('GPG_PRIVATE_KEY')
9089
def signingPassword = System.getenv('GPG_PASSPHRASE')
9190
useInMemoryPgpKeys(signingKey, signingPassword)
9291
sign publishing.publications.mavenJava
9392
}
94-
93+
9594
jreleaser {
9695
project {
97-
description = 'Using a dummy description, want to use project.description but get errors'
96+
description = projectDescription
9897
copyright = \"Copyright © \${copyrightYear} The PeerDAS KZG authors\"
9998
}
10099
signing {
@@ -107,7 +106,7 @@ jobs:
107106
sonatype {
108107
active = 'ALWAYS'
109108
url = 'https://central.sonatype.com/api/v1/publisher'
110-
stagingRepositories = ['target/staging-deploy']
109+
stagingRepository('target/staging-deploy')
111110
}
112111
}
113112
}
@@ -137,4 +136,4 @@ jobs:
137136
name: jreleaser-logs
138137
path: |
139138
build/jreleaser/trace.log
140-
build/jreleaser/output.properties
139+
build/jreleaser/output.properties

0 commit comments

Comments
 (0)