-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5b4bda
commit 7534eaa
Showing
7 changed files
with
45 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import org.gradle.api.Project | ||
import org.gradle.api.artifacts.dsl.RepositoryHandler | ||
import org.gradle.api.publish.maven.MavenPom | ||
import utils.by | ||
import utils.systemProperty | ||
import java.net.URI | ||
|
||
|
@@ -16,23 +14,23 @@ fun RepositoryHandler.configPublishMaven(sonatype: Sonatype, username: String?, | |
} | ||
} | ||
|
||
fun MavenPom.setupPom(project: Project) { | ||
name.set("Kotlin suspend transform compiler plugin - ${project.name}") | ||
description.set(project.description ?: "") | ||
url.set("https://github.com/ForteScarlet/kotlin-suspend-transform-compiler-plugin") | ||
licenses { | ||
license { | ||
name by "MIT License" | ||
url by "https://mit-license.org/" | ||
} | ||
} | ||
scm { | ||
url.set("https://github.com/ForteScarlet/kotlin-suspend-transform-compiler-plugin") | ||
connection.set("scm:git:https://github.com/ForteScarlet/kotlin-suspend-transform-compiler-plugin.git") | ||
developerConnection.set("scm:git:ssh://[email protected]/ForteScarlet/kotlin-suspend-transform-compiler-plugin.git") | ||
} | ||
setupDevelopers() | ||
} | ||
//fun MavenPom.setupPom(project: Project) { | ||
// name.set("Kotlin suspend transform compiler plugin - ${project.name}") | ||
// description.set(project.description ?: "") | ||
// url.set("https://github.com/ForteScarlet/kotlin-suspend-transform-compiler-plugin") | ||
// licenses { | ||
// license { | ||
// name by "MIT License" | ||
// url by "https://mit-license.org/" | ||
// } | ||
// } | ||
// scm { | ||
// url.set("https://github.com/ForteScarlet/kotlin-suspend-transform-compiler-plugin") | ||
// connection.set("scm:git:https://github.com/ForteScarlet/kotlin-suspend-transform-compiler-plugin.git") | ||
// developerConnection.set("scm:git:ssh://[email protected]/ForteScarlet/kotlin-suspend-transform-compiler-plugin.git") | ||
// } | ||
// setupDevelopers() | ||
//} | ||
|
||
/** | ||
* 配置开发者/协作者信息。 | ||
|
@@ -72,4 +70,4 @@ operator fun SonatypeUserInfo?.component2(): String? = this?.sonatypePassword | |
|
||
fun isPublishConfigurable(): Boolean { | ||
return sonatypeUserInfoOrNull != null | ||
} | ||
} |
5 changes: 3 additions & 2 deletions
5
buildSrc/src/main/kotlin/suspend-transform.gradle-publish.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters