@@ -116,34 +116,42 @@ publishing {
116116 publications {
117117 withType<MavenPublication > {
118118 val pubName = name.replaceFirstChar { if (it.isLowerCase()) it.titlecase(Locale .getDefault()) else " $it " }
119- afterEvaluate {
120- val emptyJavadocJar by tasks.register< org.gradle.api.tasks.bundling.Jar > (" emptyJavadocJar$pubName " ) {
121- archiveClassifier = " javadoc"
122- archiveBaseName = artifactId
123- }
124- artifact(emptyJavadocJar)
119+ val emptyJavadocJar by tasks.register<Jar >(" emptyJavadocJar$pubName " ) {
120+ archiveClassifier = " javadoc"
121+ archiveBaseName = artifactId
125122 }
123+ artifact(emptyJavadocJar)
126124 pom {
127- name.set(" kotlinx-serialization-bencoding" )
128- description.set(" A Kotlin serialization codec for bencoding format." )
129- url.set(" https://github.com/iseki0/kotlinx-serialization-bencoding" )
125+ val projectUrl = " https://github.com/iseki0/kotlinx-serialization-bencoding"
126+ name = " kotlinx-serialization-bencoding"
127+ description = " A Kotlin serialization codec for bencoding format."
128+ url = projectUrl
130129 licenses {
131130 license {
132- name.set( " Apache-2.0" )
133- url.set( " https://www.apache.org/licenses/LICENSE-2.0" )
131+ name = " Apache-2.0"
132+ url = " https://www.apache.org/licenses/LICENSE-2.0"
134133 }
135134 }
136135 developers {
137136 developer {
138- id.set( " iseki0" )
139- name.set( " iseki zero" )
140- email.set( " iseki@iseki.space" )
137+ id = " iseki0"
138+ name = " iseki zero"
139+ email = " iseki@iseki.space"
141140 }
142141 }
142+ inceptionYear = " 2024"
143143 scm {
144- connection.set(" scm:git:https://github.com/iseki0/kotlinx-serialization-bencoding.git" )
145- developerConnection.set(" scm:git:https://github.com/iseki0/kotlinx-serialization-bencoding.git" )
146- url.set(" https://github.com/iseki0/kotlinx-serialization-bencoding" )
144+ connection = " scm:git:$projectUrl .git"
145+ developerConnection = " scm:git:$projectUrl .git"
146+ url = projectUrl
147+ }
148+ issueManagement {
149+ system = " GitHub"
150+ url = " $projectUrl /issues"
151+ }
152+ ciManagement {
153+ system = " GitHub"
154+ url = " $projectUrl /actions"
147155 }
148156 }
149157 }
0 commit comments