Skip to content

Commit f52a6f0

Browse files
committed
Fix gradle
1 parent 9697e1f commit f52a6f0

3 files changed

Lines changed: 55 additions & 11 deletions

File tree

Lines changed: 52 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
11
plugins {
22
`java-library`
33
`maven-publish`
4+
signing
45
}
56

6-
group = "com.devfive.vespera"
7+
group = "io.github.dev-five-git"
78
version = "0.0.2"
89

910
java {
10-
sourceCompatibility = JavaVersion.VERSION_17
11-
targetCompatibility = JavaVersion.VERSION_17
11+
toolchain {
12+
languageVersion.set(JavaLanguageVersion.of(17))
13+
}
1214
withSourcesJar()
15+
withJavadocJar()
16+
}
17+
18+
tasks.withType<Javadoc> {
19+
options.encoding = "UTF-8"
20+
(options as StandardJavadocDocletOptions).addStringOption("Xdoclint:none", "-quiet")
21+
}
22+
23+
tasks.withType<JavaCompile> {
24+
options.encoding = "UTF-8"
1325
}
1426

1527
repositories {
@@ -23,30 +35,62 @@ dependencies {
2335

2436
publishing {
2537
publications {
26-
create<MavenPublication>("maven") {
38+
create<MavenPublication>("mavenJava") {
2739
from(components["java"])
2840

41+
groupId = project.group.toString()
42+
artifactId = "vespera-bridge"
43+
version = project.version.toString()
44+
2945
pom {
3046
name.set("vespera-bridge")
3147
description.set("JNI bridge for Rust vespera engine — drop-in Spring proxy with single-JAR deployment")
3248
url.set("https://github.com/dev-five-git/vespera")
49+
3350
licenses {
3451
license {
35-
name.set("MIT")
36-
url.set("https://github.com/dev-five-git/vespera/blob/main/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")
3762
}
3863
}
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+
}
3970
}
4071
}
4172
}
73+
4274
repositories {
75+
val ghUser = System.getenv("GITHUB_ACTOR")
76+
val ghToken = System.getenv("GITHUB_TOKEN")
4377
maven {
4478
name = "GitHubPackages"
4579
url = uri("https://maven.pkg.github.com/dev-five-git/vespera")
4680
credentials {
47-
username = System.getenv("GITHUB_ACTOR") ?: ""
48-
password = System.getenv("GITHUB_TOKEN") ?: ""
81+
username = ghUser
82+
password = ghToken
4983
}
5084
}
5185
}
5286
}
87+
88+
signing {
89+
val signingKey = System.getenv("SIGNING_KEY")
90+
val signingPassword = System.getenv("SIGNING_PASSWORD")
91+
92+
if (!signingKey.isNullOrBlank() && !signingPassword.isNullOrBlank()) {
93+
useInMemoryPgpKeys(signingKey, signingPassword)
94+
sign(publishing.publications)
95+
}
96+
}

libs/vespera-bridge/src/main/java/com/devfive/vespera/bridge/VesperaBridge.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/**
77
* JNI bridge to any Rust cdylib built with vespera's JNI feature.
88
*
9-
* <h3>Usage single line in your Spring Boot app</h3>
9+
* <p><strong>Usage - single line in your Spring Boot app</strong></p>
1010
* <pre>{@code
1111
* VesperaBridge.init("rust_jni_demo");
1212
* }</pre>
@@ -40,7 +40,7 @@ public static synchronized void init(String libraryName) {
4040
*/
4141
public static native String dispatch(String requestEnvelopeJson);
4242

43-
// ── Internal: bundled native lib extraction ──────────────────────
43+
// --- Internal: bundled native lib extraction ---
4444

4545
private static void loadBundled(String libraryName) {
4646
String os = detectOs();

libs/vespera-bridge/src/main/java/com/devfive/vespera/bridge/VesperaProxyController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import java.util.*;
1616

1717
/**
18-
* Catch-all proxy controller auto-configured by Spring when
18+
* Catch-all proxy controller - auto-configured by Spring when
1919
* {@code com.devfive.vespera.bridge} is on the classpath.
2020
*
2121
* <p>Forwards every HTTP request to Rust via JNI and returns the

0 commit comments

Comments
 (0)