Skip to content

Commit

Permalink
Supply descriptions and urls in pom. Publish remaining Javadocs.
Browse files Browse the repository at this point in the history
Signed-off-by: Kenneth J. Shackleton <[email protected]>
  • Loading branch information
kennethshackleton committed Apr 8, 2021
1 parent 2d24f0e commit ff456d1
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 17 deletions.
1 change: 0 additions & 1 deletion .github/workflows/publication.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ jobs:
-Psigning.gnupg.passphrase="${{ secrets.GPG_KEY_PASSPHRASE }}" \
-PsonatypePassword="${{ secrets.OSSRH_PASSWORD }}" \
-PsonatypeUsername="${{ secrets.OSSRH_USERNAME }}" \
--info \
publishToSonatype \
closeSonatypeStagingRepository
- name: 'Clean-up'
Expand Down
7 changes: 4 additions & 3 deletions AndroidLib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ android {
}
}

description = "Selekt Android SQLite library."

dependencies {
api(selekt("api", selektVersionName))
compileOnly(selekt("annotations", selektVersionName))
Expand Down Expand Up @@ -125,7 +123,10 @@ afterEvaluate {
artifactId = "selekt-android"
version = android.defaultConfig.versionName
from(components["release"])
pom { commonInitialisation(project) }
pom {
commonInitialisation(project)
description.set("Selekt Android SQLite library.")
}
artifact("$buildDir/libs/selekt-sources.jar") { classifier = "sources" }
}.also {
signing { sign(it) }
Expand Down
9 changes: 6 additions & 3 deletions AndroidLint/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ plugins {
signing
}

description = "Selekt Android Lint library."

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
@Suppress("UnstableApiUsage")
withJavadocJar()
@Suppress("UnstableApiUsage")
withSourcesJar()
}

Expand All @@ -52,6 +52,9 @@ publishing {
artifactId = "selekt-android-lint"
version = selektVersionName
from(components.getByName("java"))
pom { commonInitialisation(project) }
pom {
commonInitialisation(project)
description.set("Selekt Android Lint library.")
}
}
}
7 changes: 6 additions & 1 deletion Annotations/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ plugins {
}

java {
@Suppress("UnstableApiUsage")
withJavadocJar()
@Suppress("UnstableApiUsage")
withSourcesJar()
}
Expand All @@ -43,6 +45,9 @@ publishing {
artifactId = "selekt-annotations"
version = selektVersionName
from(components.getByName("java"))
pom { commonInitialisation(project) }
pom {
commonInitialisation(project)
description.set("Selekt annotations library.")
}
}
}
9 changes: 6 additions & 3 deletions ApiLib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ plugins {
signing
}

description = "Selekt shared API library."

java {
@Suppress("UnstableApiUsage")
withJavadocJar()
@Suppress("UnstableApiUsage")
withSourcesJar()
}
Expand All @@ -54,6 +54,9 @@ publishing {
artifactId = "selekt-api"
version = selektVersionName
from(components.getByName("java"))
pom { commonInitialisation(project) }
pom {
commonInitialisation(project)
description.set("Selekt shared API library.")
}
}
}
9 changes: 6 additions & 3 deletions Lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ plugins {
signing
}

description = "Selekt core library."

disableKotlinCompilerAssertions()

java {
@Suppress("UnstableApiUsage")
withJavadocJar()
@Suppress("UnstableApiUsage")
withSourcesJar()
}
Expand All @@ -53,6 +53,9 @@ publishing {
artifactId = "selekt-java"
version = selektVersionName
from(components.getByName("java"))
pom { commonInitialisation(project) }
pom {
commonInitialisation(project)
description.set("Selekt core library.")
}
}
}
7 changes: 6 additions & 1 deletion SQLite3/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ val cFlags = arrayOf(
disableKotlinCompilerAssertions()

java {
@Suppress("UnstableApiUsage")
withJavadocJar()
@Suppress("UnstableApiUsage")
withSourcesJar()
}
Expand All @@ -73,7 +75,10 @@ publishing {
artifactId = "selekt-sqlite3"
version = selektVersionName
from(components.getByName("java"))
pom { commonInitialisation(project) }
pom {
commonInitialisation(project)
description.set("Selekt Java SQLite interface library.")
}
}
}

Expand Down
6 changes: 4 additions & 2 deletions buildSrc/src/main/kotlin/SelektExtensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ fun MavenPom.commonInitialisation(project: Project) {
email.set("[email protected]")
name.set("Kenneth J. Shackleton")
organization.set("Bloomberg LP")
organizationUrl.set("https://www.bloomberg.com")
organizationUrl.set("https://github.com/bloomberg")
}
developer {
id.set("xouabita")
email.set("[email protected]")
name.set("Alexandre Abita")
organization.set("Bloomberg LP")
organizationUrl.set("https://www.bloomberg.com")
organizationUrl.set("https://github.com/bloomberg")
}
}
inceptionYear.set("2019")
Expand All @@ -120,11 +120,13 @@ fun MavenPom.commonInitialisation(project: Project) {
}
organization {
name.set("Bloomberg LP")
url.set("https://www.bloomberg.com")
}
scm {
connection.set("[email protected]:bloomberg/selekt.git")
developerConnection.set("[email protected]:bloomberg/selekt.git")
tag.set(project.gitCommit())
url.set("https://github.com/bloomberg/Selekt")
}
url.set("https://github.com/bloomberg/selekt")
}

0 comments on commit ff456d1

Please sign in to comment.