Skip to content

Commit 6a1da98

Browse files
committed
Try to configure gralde release and publish #7
1 parent 2e17f54 commit 6a1da98

File tree

3 files changed

+2
-31
lines changed

3 files changed

+2
-31
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Publish package
1818
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629
1919
with:
20-
arguments: -Pversion=${NEW_VERSION} build publish
20+
arguments: -Pversion=${NEW_VERSION} publishToSonatype closeAndReleaseSonatypeStagingRepository
2121
env:
2222
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.OSSRH_PASSWORD }}
2323
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.OSSRH_USERNAME }}

build.gradle.kts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,3 @@ nexusPublishing {
1515
}
1616
}
1717
}
18-
19-
//subprojects {
20-
//// plugins {
21-
//// `maven-publish`
22-
//// signing
23-
//// id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
24-
//// }
25-
//
26-
//// publishing {
27-
//// publications {
28-
//// create<MavenPublication>("maven") {
29-
//// from(components["java"])
30-
//// groupId = "io.github.petitcl"
31-
//// artifactId = project.name
32-
//// version = System.getenv("NEW_VERSION")
33-
//// }
34-
//// }
35-
//// }
36-
//}
37-
38-
//
39-
//signing {
40-
// val signingKey: String? by project
41-
// val signingPassword: String? by project
42-
// useInMemoryPgpKeys(signingKey, signingPassword)
43-
//
44-
// sign(publishing.publications["maven"])
45-
//}

buildSrc/src/main/kotlin/publishing-conventions.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ plugins {
44
id("signing")
55
}
66

7-
87
group = "io.github.petitcl"
98
version = if (System.getenv("NEW_VERSION") != null) { System.getenv("NEW_VERSION") } else { "0.0.1-SNAPSHOT" }
109

@@ -48,5 +47,5 @@ signing {
4847
val signingKey: String? by project
4948
val signingPassword: String? by project
5049
useInMemoryPgpKeys(signingKey, signingPassword)
51-
sign(publishing.publications["maven"])
50+
sign(publishing.publications["mavenJava"])
5251
}

0 commit comments

Comments
 (0)