1- import org.gradle.api.Project
21import org.gradle.api.artifacts.dsl.RepositoryHandler
32import org.gradle.api.publish.maven.MavenPom
4- import utils.by
53import utils.systemProperty
64import java.net.URI
75
@@ -16,23 +14,23 @@ fun RepositoryHandler.configPublishMaven(sonatype: Sonatype, username: String?,
1614 }
1715}
1816
19- fun MavenPom.setupPom (project : Project ) {
20- name.set(" Kotlin suspend transform compiler plugin - ${project.name} " )
21- description.set(project.description ? : " " )
22- url.set(" https://github.com/ForteScarlet/kotlin-suspend-transform-compiler-plugin" )
23- licenses {
24- license {
25- name by " MIT License"
26- url by " https://mit-license.org/"
27- }
28- }
29- scm {
30- url.set(" https://github.com/ForteScarlet/kotlin-suspend-transform-compiler-plugin" )
31- connection.set(" scm:git:https://github.com/ForteScarlet/kotlin-suspend-transform-compiler-plugin.git" )
32- developerConnection.set(" scm:git:ssh://git@github.com/ForteScarlet/kotlin-suspend-transform-compiler-plugin.git" )
33- }
34- setupDevelopers()
35- }
17+ // fun MavenPom.setupPom(project: Project) {
18+ // name.set("Kotlin suspend transform compiler plugin - ${project.name}")
19+ // description.set(project.description ?: "")
20+ // url.set("https://github.com/ForteScarlet/kotlin-suspend-transform-compiler-plugin")
21+ // licenses {
22+ // license {
23+ // name by "MIT License"
24+ // url by "https://mit-license.org/"
25+ // }
26+ // }
27+ // scm {
28+ // url.set("https://github.com/ForteScarlet/kotlin-suspend-transform-compiler-plugin")
29+ // connection.set("scm:git:https://github.com/ForteScarlet/kotlin-suspend-transform-compiler-plugin.git")
30+ // developerConnection.set("scm:git:ssh://git@github.com/ForteScarlet/kotlin-suspend-transform-compiler-plugin.git")
31+ // }
32+ // setupDevelopers()
33+ // }
3634
3735/* *
3836 * 配置开发者/协作者信息。
@@ -72,4 +70,4 @@ operator fun SonatypeUserInfo?.component2(): String? = this?.sonatypePassword
7270
7371fun isPublishConfigurable (): Boolean {
7472 return sonatypeUserInfoOrNull != null
75- }
73+ }
0 commit comments