11plugins {
22 `java- library`
3- `maven- publish`
4- signing
3+ id(" com.vanniktech.maven.publish" ) version " 0.30.0"
54}
65
76group = " io.github.dev-five-git"
8- version = " 0.0.4 "
7+ version = " 0.0.3 "
98
109java {
1110 toolchain {
1211 languageVersion.set(JavaLanguageVersion .of(17 ))
1312 }
14- withSourcesJar()
15- withJavadocJar()
1613}
1714
1815tasks.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+ }
0 commit comments