Skip to content

Commit 91359cf

Browse files
committed
Improve pom metadata
1 parent 1b60c95 commit 91359cf

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

__injected/override/build.gradle.kts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ val gitRepo: String by consts
2828

2929
val taggedRepoUrl: String by consts
3030

31-
val libShortName: String by consts
32-
val libLongName: String by consts
31+
val libName: String by consts
3332
val libDescription: String by consts
3433
val libUrl: String by consts
3534

@@ -42,15 +41,16 @@ val libPackage: String by consts
4241
val publicationName: String by consts
4342

4443
val authorName: String by consts
45-
val authorEmail: String by consts
46-
val authorUrl: String by consts
4744

4845
val licenseName: String by consts
4946
val licenseUrl: String by consts
5047

5148
val issuesSystem: String by consts
5249
val issuesUrl: String by consts
5350

51+
val ciSystem: String by consts
52+
val ciUrl: String by consts
53+
5454
val outputDir: File by consts
5555

5656
val projectEmpty: String by consts
@@ -228,7 +228,7 @@ with(project(projectReflect)) {
228228
classifier = null
229229
// edit manifest
230230
manifest {
231-
attributes["Implementation-Title"] = libShortName
231+
attributes["Implementation-Title"] = libName
232232
attributes["Implementation-Version"] = kotlinVersion
233233
attributes["Implementation-CodeVersion"] = codeVersion
234234
attributes["Implementation-Vendor"] = authorName
@@ -287,7 +287,7 @@ with(project(projectReflect)) {
287287
artifactId = libArtifactId
288288
version = libVersion
289289
pom.buildXml {
290-
"name"..libLongName
290+
"name"..libName
291291
"description"..libDescription
292292
"url"..libUrl
293293
"licenses" {
@@ -300,12 +300,13 @@ with(project(projectReflect)) {
300300
"system"..issuesSystem
301301
"url"..issuesUrl
302302
}
303+
"ciManagement" {
304+
"system"..ciSystem
305+
"url"..ciUrl
306+
}
303307
"developers" {
304308
"developer" {
305309
"name"..authorName
306-
"email"..authorEmail
307-
"organization"..authorName
308-
"organizationUrl"..authorUrl
309310
}
310311
}
311312
"scm" {
@@ -317,6 +318,7 @@ with(project(projectReflect)) {
317318
"properties" {
318319
"codeVersion"..codeVersion
319320
"kotlinVersion"..kotlinVersion
321+
"gitTag"..gitTag
320322
"gitSubmodulesStatus"..gitSubmoduleStatus()
321323
}
322324
}

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ val gitRepo: String by consts
2424

2525
val mainRepoUrl: String by consts
2626

27-
val libShortName: String by consts
27+
val libName: String by consts
2828
val libDescription: String by consts
2929
val libUrl: String by consts
3030

@@ -42,7 +42,7 @@ val bintrayPublish by propertyOrElse(true)
4242
val bintrayOverride by propertyOrElse(false)
4343
val bintrayDryRun by propertyOrElse(false)
4444
val bintrayMavenCentralSync by propertyOrElse(true)
45-
val bintrayMavenCentralClose by propertyOrElse(false)
45+
val bintrayMavenCentralClose by propertyOrElse(true)
4646
val bintrayGpgSign by propertyOrElse(true)
4747

4848
val bintrayRepo = "kotlin-metadata"
@@ -112,7 +112,7 @@ configure<BintrayExtension> {
112112
}
113113
pkg {
114114
repo = bintrayRepo
115-
name = libShortName
115+
name = libName
116116
desc = libDescription
117117
websiteUrl = libUrl
118118
issueTrackerUrl = issuesUrl

consts.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ val consts: Properties by extra(object : Properties() {
2020
val mainRepoUrl by "https://$gitHubRepoDomain"
2121
val taggedRepoUrl by "$mainRepoUrl/tree/$gitTag"
2222

23-
val libShortName by "kotlin-compiler-lite"
24-
val libLongName by "kotlin-metadata:kotlin-compiler-lite"
23+
val libName by "kotlin-compiler-lite"
2524
val libDescription by "A subset of the Kotlin compiler to be used by kotlin-metadata."
2625
val libUrl by mainRepoUrl
2726

@@ -35,8 +34,6 @@ val consts: Properties by extra(object : Properties() {
3534
val publicationName by libArtifactId.split("-").joinToString("") { it.capitalize() }.decapitalize()
3635

3736
val authorName by "Eugenio Marletti"
38-
val authorEmail by "e.marletti@gmail.com"
39-
val authorUrl by "https://github.com/$gitHubUser"
4037

4138
val licenseName by "MIT"
4239
val licenseFile by superRootDir.resolve("LICENSE")
@@ -45,6 +42,9 @@ val consts: Properties by extra(object : Properties() {
4542
val issuesSystem by "GitHub"
4643
val issuesUrl by "$mainRepoUrl/issues"
4744

45+
val ciSystem by "CircleCI"
46+
val ciUrl by "https://circleci.com/gh/$gitHubUser/$gitHubRepo"
47+
4848
val kotlinDir by superRootDir.resolve("kotlin")
4949
val outputDir by superRootDir.resolve("build/out")
5050
val initFile by superRootDir.resolve("kotlin.init.gradle")

0 commit comments

Comments
 (0)