Skip to content

Commit 8705b3e

Browse files
authored
Fix publication (#3715)
1 parent d853751 commit 8705b3e

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

buildSrc/src/main/kotlin/arrow.kotlin.gradle.kts

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ val projectNameWithDots = project.name.replace('-', '.')
2828
val Project.multiplatformWithAndroid
2929
get() = !project.name.startsWith("suspendapp")
3030

31-
val Project.requiresAndroidCoreLibraryDesugaring
31+
val Project.needsAndroidCoreLibraryDesugaring
3232
get() = project.name == "arrow-collectors"
3333

3434
val Project.needsJava11
@@ -41,8 +41,6 @@ val Project.needsAbiValidation
4141
"suspendapp-test-runner",
4242
)
4343

44-
val shouldPublish = project.name in listOf("arrow-raise-ktor-server")
45-
4644
val Project.isKotlinJvm: Boolean
4745
get() = pluginManager.hasPlugin("org.jetbrains.kotlin.jvm")
4846

@@ -57,7 +55,7 @@ plugins.apply("com.diffplug.spotless")
5755
plugins.apply("ru.vyarus.animalsniffer")
5856
plugins.apply("org.jetbrains.dokka")
5957
plugins.apply("org.jetbrains.kotlinx.kover")
60-
if (shouldPublish) plugins.apply("com.vanniktech.maven.publish.base")
58+
plugins.apply("com.vanniktech.maven.publish.base")
6159

6260
val javaToolchains = project.extensions.getByType<JavaToolchainService>()
6361
tasks {
@@ -309,20 +307,18 @@ dependencies {
309307
signature("org.codehaus.mojo.signature:java18:1.0@signature")
310308
when {
311309
!isKotlinMultiplatform || !multiplatformWithAndroid -> { }
312-
requiresAndroidCoreLibraryDesugaring ->
310+
needsAndroidCoreLibraryDesugaring ->
313311
signature("com.toasttab.android:gummy-bears-api-21:0.12.0:coreLib2@signature")
314312
else ->
315313
signature("com.toasttab.android:gummy-bears-api-21:0.12.0@signature")
316314
}
317315
}
318316

319-
if (shouldPublish) {
320-
configure<com.vanniktech.maven.publish.MavenPublishBaseExtension> {
321-
configureBasedOnAppliedPlugins()
322-
pomFromGradleProperties()
323-
publishToMavenCentral(automaticRelease = true)
324-
signAllPublications()
325-
}
317+
configure<com.vanniktech.maven.publish.MavenPublishBaseExtension> {
318+
configureBasedOnAppliedPlugins()
319+
pomFromGradleProperties()
320+
publishToMavenCentral(automaticRelease = true)
321+
signAllPublications()
326322
}
327323

328324
afterEvaluate {

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ GROUP=io.arrow-kt
77
SONATYPE_HOST=DEFAULT
88
RELEASE_SIGNING_ENABLED=true
99

10-
POM_DESCRIPTION=Functional companion to Kotlin's Standard Library
11-
POM_URL=https://github.com/arrow-kt/arrow/
10+
POM_DESCRIPTION=The perfect companion for your Kotlin journey
11+
POM_URL=https://arrow-kt.io/
1212

1313
POM_LICENSE_NAME=The Apache Software License, Version 2.0
1414
POM_LICENSE_URL=https://www.apache.org/licenses/LICENSE-2.0.txt

0 commit comments

Comments
 (0)