11plugins {
22 `java- library`
33 `maven- publish`
4+ signing
45}
56
6- group = " com.devfive.vespera "
7+ group = " io.github.dev-five-git "
78version = " 0.0.2"
89
910java {
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
1527repositories {
@@ -23,30 +35,62 @@ dependencies {
2335
2436publishing {
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+ }
0 commit comments