@@ -36,31 +36,30 @@ jobs:
36
36
id 'signing'
37
37
id 'org.jreleaser' version '1.12.0'
38
38
}
39
-
39
+
40
40
group = 'io.github.kevaundray.dummy'
41
41
version = '0.0.1-SNAPSHOT'
42
-
42
+
43
+ ext.projectDescription = 'A dummy library for testing PeerDAS KZG operations publication'
43
44
def year = java.time.Year.now().getValue()
44
45
def copyrightYear = (year == 2024) ? \"2024\" : \"2024-\$year\"
45
-
46
- description = 'A dummy library for testing PeerDAS KZG operations publication'
47
-
46
+
48
47
java {
49
48
withJavadocJar()
50
49
withSourcesJar()
51
50
}
52
-
51
+
53
52
repositories {
54
53
mavenCentral()
55
54
}
56
-
55
+
57
56
publishing {
58
57
publications {
59
58
mavenJava(MavenPublication) {
60
59
from components.java
61
60
pom {
62
61
name = 'PeerDAS KZG Dummy Library'
63
- description = 'Using a dummy description, want to use project.description but get errors'
62
+ description = projectDescription
64
63
url = 'https://github.com/crate-crypto/peerdas-kzg'
65
64
licenses {
66
65
license {
@@ -84,17 +83,17 @@ jobs:
84
83
}
85
84
}
86
85
}
87
-
86
+
88
87
signing {
89
88
def signingKey = System.getenv('GPG_PRIVATE_KEY')
90
89
def signingPassword = System.getenv('GPG_PASSPHRASE')
91
90
useInMemoryPgpKeys(signingKey, signingPassword)
92
91
sign publishing.publications.mavenJava
93
92
}
94
-
93
+
95
94
jreleaser {
96
95
project {
97
- description = 'Using a dummy description, want to use project.description but get errors'
96
+ description = projectDescription
98
97
copyright = \"Copyright © \${copyrightYear} The PeerDAS KZG authors\"
99
98
}
100
99
signing {
@@ -107,7 +106,7 @@ jobs:
107
106
sonatype {
108
107
active = 'ALWAYS'
109
108
url = 'https://central.sonatype.com/api/v1/publisher'
110
- stagingRepositories = [ 'target/staging-deploy']
109
+ stagingRepository( 'target/staging-deploy')
111
110
}
112
111
}
113
112
}
@@ -137,4 +136,4 @@ jobs:
137
136
name : jreleaser-logs
138
137
path : |
139
138
build/jreleaser/trace.log
140
- build/jreleaser/output.properties
139
+ build/jreleaser/output.properties
0 commit comments