Skip to content

Commit ce4f5f3

Browse files
Fix jreleaser deploy
1 parent 13384f0 commit ce4f5f3

File tree

3 files changed

+41
-35
lines changed

3 files changed

+41
-35
lines changed

build.gradle.kts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import org.jreleaser.model.Active
2+
import org.jreleaser.model.api.deploy.maven.MavenCentralMavenDeployer
3+
4+
plugins {
5+
id("java-library")
6+
id("maven-publish")
7+
id("org.jreleaser")
8+
}
9+
10+
repositories {
11+
mavenCentral()
12+
gradlePluginPortal()
13+
}
14+
15+
jreleaser {
16+
signing {
17+
active = Active.RELEASE
18+
armored = true
19+
}
20+
deploy {
21+
maven {
22+
mavenCentral {
23+
register("sonatype") {
24+
stage = MavenCentralMavenDeployer.Stage.UPLOAD
25+
active = Active.RELEASE
26+
url = "https://central.sonatype.com/api/v1/publisher"
27+
stagingRepository("build/staging-deploy")
28+
}
29+
}
30+
}
31+
}
32+
release {
33+
github {
34+
skipRelease = true
35+
token = "none"
36+
}
37+
}
38+
}

buildSrc/src/main/kotlin/jaskl.gradle.kts

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
import org.jreleaser.model.Active
2-
import org.jreleaser.model.api.deploy.maven.MavenCentralMavenDeployer
3-
41
plugins {
52
id("java-library")
63
id("checkstyle")
74
id("maven-publish")
8-
id("org.jreleaser")
9-
id("signing")
105
id("java-test-fixtures")
116
}
127

@@ -23,9 +18,6 @@ checkstyle {
2318
toolVersion = "9.3"
2419
}
2520

26-
group = "io.github.almighty-satan.jaskl"
27-
version = "1.6.4"
28-
2921
repositories {
3022
mavenCentral()
3123
gradlePluginPortal()
@@ -85,33 +77,7 @@ publishing {
8577
}
8678
repositories {
8779
maven {
88-
setUrl(layout.buildDirectory.dir("staging-deploy"))
89-
}
90-
}
91-
}
92-
}
93-
94-
signing {
95-
val signingKey = System.getenv("SIGNING_KEY")
96-
val signingPassword = System.getenv("SIGNING_PASSWORD")
97-
useInMemoryPgpKeys(signingKey, signingPassword)
98-
sign(publishing.publications.getByName("release"))
99-
}
100-
101-
jreleaser {
102-
signing {
103-
active = Active.RELEASE
104-
armored = true
105-
}
106-
deploy {
107-
maven {
108-
mavenCentral {
109-
register("sonatype") {
110-
stage = MavenCentralMavenDeployer.Stage.UPLOAD
111-
active = Active.RELEASE
112-
url = "https://central.sonatype.com/api/v1/publisher"
113-
stagingRepository("build/staging-deploy")
114-
}
80+
setUrl(rootProject.layout.buildDirectory.dir("staging-deploy"))
11581
}
11682
}
11783
}

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
group=io.github.almighty-satan.jaskl
2+
version=1.6.4

0 commit comments

Comments
 (0)