@@ -31,35 +31,27 @@ jobs:
31
31
echo "package org.peerdas.kzg; public class DummyClass { public static void main(String[] args) { System.out.println(\"Hello from PeerDAS KZG DummyClass\"); } }" > src/main/java/org/peerdas/kzg/DummyClass.java
32
32
33
33
echo "plugins {
34
- id 'java'
34
+ id 'java-library '
35
35
id 'maven-publish'
36
- id 'signing'
37
36
id 'org.jreleaser' version '1.12.0'
38
37
}
39
38
40
39
group = 'io.github.kevaundray.dummy'
41
40
version = '0.0.1-SNAPSHOT'
42
41
43
- ext.projectDescription = 'A dummy library for testing PeerDAS KZG operations publication'
44
- def year = java.time.Year.now().getValue()
45
- def copyrightYear = (year == 2024) ? \"2024\" : \"2024-\$year\"
46
-
47
42
java {
48
43
withJavadocJar()
49
44
withSourcesJar()
50
45
}
51
46
52
- repositories {
53
- mavenCentral()
54
- }
55
-
56
47
publishing {
57
48
publications {
58
- mavenJava (MavenPublication) {
49
+ maven (MavenPublication) {
59
50
from components.java
51
+
60
52
pom {
61
53
name = 'PeerDAS KZG Dummy Library'
62
- description = projectDescription
54
+ description = 'A dummy library for testing PeerDAS KZG operations publication'
63
55
url = 'https://github.com/crate-crypto/peerdas-kzg'
64
56
licenses {
65
57
license {
@@ -82,20 +74,15 @@ jobs:
82
74
}
83
75
}
84
76
}
85
- }
86
77
87
- signing {
88
- def signingKey = System.getenv('GPG_PRIVATE_KEY')
89
- def signingPassword = System.getenv('GPG_PASSPHRASE ')
90
- useInMemoryPgpKeys(signingKey, signingPassword)
91
- sign publishing.publications.mavenJava
78
+ repositories {
79
+ maven {
80
+ url = layout.buildDirectory.dir('staging-deploy ')
81
+ }
82
+ }
92
83
}
93
84
94
85
jreleaser {
95
- project {
96
- description = projectDescription
97
- copyright = \"Copyright © \${copyrightYear} The PeerDAS KZG authors\"
98
- }
99
86
signing {
100
87
active = 'ALWAYS'
101
88
armored = true
106
93
sonatype {
107
94
active = 'ALWAYS'
108
95
url = 'https://central.sonatype.com/api/v1/publisher'
109
- stagingRepository('target/staging-deploy')
96
+ stagingRepository('build/staging-deploy')
97
+ snapshotUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
110
98
}
111
99
}
112
100
}
@@ -124,10 +112,8 @@ jobs:
124
112
JRELEASER_GPG_SECRET_KEY : ${{ secrets.GPG_PRIVATE_KEY_JAVA_PUBLISHING }}
125
113
JRELEASER_GPG_PUBLIC_KEY : ${{ secrets.GPG_PUBLIC_KEY_JAVA_PUBLISHING }}
126
114
JRELEASER_GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
127
- GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY_JAVA_PUBLISHING }}
128
- GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE_JAVA_PUBLISHING }}
129
115
run : |
130
- ./gradlew jreleaserDeploy --stacktrace --info
116
+ ./gradlew clean publish jreleaserDeploy --stacktrace --info
131
117
132
118
- name : JReleaser output
133
119
if : always()
0 commit comments