11plugins {
22 `maven- publish`
3+ id(" com.vanniktech.maven.publish" )
34 signing
45}
56
6- val javadocJar by tasks.registering(Jar ::class ) {
7- archiveClassifier.set(" javadoc" )
8- }
9-
10- publishing {
11- publications.withType<MavenPublication >().configureEach {
12- if (name.contains(" jvm" , ignoreCase = true )) {
13- artifact(javadocJar)
14- }
7+ mavenPublishing {
8+ signAllPublications()
9+ publishToMavenCentral(automaticRelease = true )
1510
16- pom {
17- name = project.name
18- description = " Kotlin implementation of the Model Context Protocol (MCP)"
19- url = " https://github.com/modelcontextprotocol/kotlin-sdk"
11+ pom {
12+ name = project.name
13+ description = " Kotlin implementation of the Model Context Protocol (MCP)"
14+ url = " https://github.com/modelcontextprotocol/kotlin-sdk"
2015
21- licenses {
22- license {
23- name = " MIT License"
24- url = " https://github.com/modelcontextprotocol/kotlin-sdk/blob/main/LICENSE"
25- distribution = " repo"
26- }
16+ licenses {
17+ license {
18+ name = " MIT License"
19+ url = " https://github.com/modelcontextprotocol/kotlin-sdk/blob/main/LICENSE"
20+ distribution = " repo"
2721 }
22+ }
2823
29- organization {
30- name = " Anthropic"
31- url = " https://www.anthropic.com"
32- }
24+ organization {
25+ name = " Anthropic"
26+ url = " https://www.anthropic.com"
27+ }
3328
34- developers {
35- developer {
36- id = " JetBrains"
37- name = " JetBrains Team"
38- organization = " JetBrains"
39- organizationUrl = " https://www.jetbrains.com"
40- }
29+ developers {
30+ developer {
31+ id = " JetBrains"
32+ name = " JetBrains Team"
33+ organization = " JetBrains"
34+ organizationUrl = " https://www.jetbrains.com"
4135 }
36+ }
4237
43- scm {
44- url = " https://github.com/modelcontextprotocol/kotlin-sdk"
45- connection = " scm:git:git://github.com/modelcontextprotocol/kotlin-sdk.git"
46- developerConnection
= " scm:git:[email protected] :modelcontextprotocol/kotlin-sdk.git" 47- }
38+ scm {
39+ url = " https://github.com/modelcontextprotocol/kotlin-sdk"
40+ connection = " scm:git:git://github.com/modelcontextprotocol/kotlin-sdk.git"
41+ developerConnection
= " scm:git:[email protected] :modelcontextprotocol/kotlin-sdk.git" 4842 }
4943 }
44+ }
5045
46+ publishing {
5147 repositories {
52- maven {
53- name = " staging"
54- url = uri(layout.buildDirectory.dir(" staging-deploy" ))
55- }
48+ mavenLocal()
5649 }
5750}
5851
@@ -68,4 +61,4 @@ signing {
6861 useInMemoryPgpKeys(signingKey.get(), signingPassphrase.get())
6962 sign(publishing.publications)
7063 }
71- }
64+ }
0 commit comments