Skip to content

Commit f80cedd

Browse files
committed
Deploy maven
1 parent 72f0a32 commit f80cedd

File tree

5 files changed

+52
-62
lines changed

5 files changed

+52
-62
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"changes":{"libs/vespera-bridge/build.gradle.kts":"Patch"},"note":"Deploy maven","date":"2026-03-23T10:34:47.462825400Z"}

.github/workflows/CI.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,11 @@ jobs:
7070
pull-requests: write
7171

7272
# Actions > General > Workflow permissions for creating pull request
73-
# Create brench to create pull request
73+
# Create branch to create pull request
7474
contents: write
75+
76+
# Publish to GitHub Packages
77+
packages: write
7578
steps:
7679
- uses: actions/checkout@v6
7780
- uses: actions/setup-java@v5
@@ -89,6 +92,12 @@ jobs:
8992
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
9093
GITHUB_ACTOR: ${{ github.actor }}
9194
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95+
# Maven Central (Central Portal) credentials
96+
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
97+
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
98+
# GPG signing (in-memory key, no keyring file)
99+
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_SIGNING_KEY }}
100+
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_SIGNING_PASSWORD }}
92101
outputs:
93102
changepacks: ${{ steps.changepacks.outputs.changepacks }}
94103
release_assets_urls: ${{ steps.changepacks.outputs.release_assets_urls }}

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 29 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
plugins {
22
`java-library`
3-
`maven-publish`
4-
signing
3+
id("com.vanniktech.maven.publish") version "0.30.0"
54
}
65

76
group = "io.github.dev-five-git"
8-
version = "0.0.4"
7+
version = "0.0.3"
98

109
java {
1110
toolchain {
1211
languageVersion.set(JavaLanguageVersion.of(17))
1312
}
14-
withSourcesJar()
15-
withJavadocJar()
1613
}
1714

1815
tasks.withType<Javadoc> {
@@ -33,64 +30,40 @@ dependencies {
3330
api("com.fasterxml.jackson.core:jackson-databind:2.17.0")
3431
}
3532

36-
publishing {
37-
publications {
38-
create<MavenPublication>("mavenJava") {
39-
from(components["java"])
33+
mavenPublishing {
34+
publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost.CENTRAL_PORTAL, automaticRelease = true)
35+
signAllPublications()
4036

41-
groupId = project.group.toString()
42-
artifactId = "vespera-bridge"
43-
version = project.version.toString()
37+
coordinates(
38+
groupId = "kr.devfive",
39+
artifactId = "vespera-bridge",
40+
version = project.version.toString(),
41+
)
4442

45-
pom {
46-
name.set("vespera-bridge")
47-
description.set("JNI bridge for Rust vespera engine drop-in Spring proxy with single-JAR deployment")
48-
url.set("https://github.com/dev-five-git/vespera")
43+
pom {
44+
name.set("vespera-bridge")
45+
description.set("JNI bridge for Rust vespera engine - drop-in Spring proxy with single-JAR deployment")
46+
url.set("https://github.com/dev-five-git/vespera")
4947

50-
licenses {
51-
license {
52-
name.set("MIT License")
53-
url.set("https://opensource.org/licenses/MIT")
54-
}
55-
}
56-
57-
developers {
58-
developer {
59-
id.set("owjs3901")
60-
name.set("devfive")
61-
email.set("contact@devfive.kr")
62-
}
63-
}
64-
65-
scm {
66-
url.set("https://github.com/dev-five-git/vespera")
67-
connection.set("scm:git:git://github.com/dev-five-git/vespera.git")
68-
developerConnection.set("scm:git:ssh://git@github.com:dev-five-git/vespera.git")
69-
}
48+
licenses {
49+
license {
50+
name.set("MIT License")
51+
url.set("https://opensource.org/licenses/MIT")
7052
}
7153
}
72-
}
7354

74-
repositories {
75-
val ghUser = System.getenv("GITHUB_ACTOR")
76-
val ghToken = System.getenv("GITHUB_TOKEN")
77-
maven {
78-
name = "GitHubPackages"
79-
url = uri("https://maven.pkg.github.com/dev-five-git/vespera")
80-
credentials {
81-
username = ghUser
82-
password = ghToken
55+
developers {
56+
developer {
57+
id.set("owjs3901")
58+
name.set("devfive")
59+
email.set("contact@devfive.kr")
8360
}
8461
}
85-
}
86-
}
87-
88-
signing {
89-
val signingKey = System.getenv("SIGNING_KEY")
90-
val signingPassword = System.getenv("SIGNING_PASSWORD")
9162

92-
if (!signingKey.isNullOrBlank() && !signingPassword.isNullOrBlank()) {
93-
useInMemoryPgpKeys(signingKey, signingPassword)
94-
sign(publishing.publications)
63+
scm {
64+
url.set("https://github.com/dev-five-git/vespera")
65+
connection.set("scm:git:git://github.com/dev-five-git/vespera.git")
66+
developerConnection.set("scm:git:ssh://git@github.com:dev-five-git/vespera.git")
67+
}
9568
}
96-
}
69+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1+
pluginManagement {
2+
repositories {
3+
gradlePluginPortal()
4+
mavenCentral()
5+
}
6+
}
7+
18
rootProject.name = "vespera-bridge"

0 commit comments

Comments
 (0)