Skip to content

Commit

Permalink
Revert Gradle version, keep other changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nomisRev committed Jan 31, 2024
1 parent fc3a3ff commit b5bd0a0
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 55 deletions.
9 changes: 1 addition & 8 deletions arrow-gradle-config-formatter/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,13 @@ gradlePlugin {
plugins {
named("io.arrow-kt.arrow-gradle-config-formatter") {
id = "io.arrow-kt.arrow-gradle-config-formatter"
tags.set(listOf("Arrow", "formatter"))
displayName = "Arrow formatter Gradle Config"
description = "Basic formatter Gradle config for Arrow projects"
}
}
}

pluginBundle {
tags =
listOf(
"Arrow",
"formatter",
)
}

dependencies {
compileOnly(libs.kotlin.gradlePlugin)
implementation(libs.spotless)
Expand Down
9 changes: 1 addition & 8 deletions arrow-gradle-config-kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,13 @@ gradlePlugin {
plugins {
named("io.arrow-kt.arrow-gradle-config-kotlin") {
id = "io.arrow-kt.arrow-gradle-config-kotlin"
tags.set(listOf("Arrow", "Arrow multiplatform"))
displayName = "Arrow Kotlin Gradle Config"
description = "Basic Gradle config for Kotlin Arrow projects"
}
}
}

pluginBundle {
tags =
listOf(
"Arrow",
"Arrow multiplatform",
)
}

dependencies {
compileOnly(libs.kotlin.gradlePlugin)
}
Expand Down
9 changes: 1 addition & 8 deletions arrow-gradle-config-nexus/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,13 @@ gradlePlugin {
plugins {
named("io.arrow-kt.arrow-gradle-config-nexus") {
id = "io.arrow-kt.arrow-gradle-config-nexus"
tags.set(listOf("Arrow", "Arrow Nexus"))
displayName = "Arrow Nexus Gradle Config"
description = "Basic Nexus Gradle config for Arrow publications"
}
}
}

pluginBundle {
tags =
listOf(
"Arrow",
"Arrow Nexus",
)
}

dependencies {
implementation(libs.gradleNexus.publishPlugin)
}
Expand Down
9 changes: 1 addition & 8 deletions arrow-gradle-config-publish/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,13 @@ gradlePlugin {
plugins {
named("io.arrow-kt.arrow-gradle-config-publish") {
id = "io.arrow-kt.arrow-gradle-config-publish"
tags.set(listOf("Arrow", "Arrow publish multiplatform"))
displayName = "Arrow Kotlin publishing Gradle Config"
description = "Basic publishing Gradle config for Kotlin Arrow projects"
}
}
}

pluginBundle {
tags =
listOf(
"Arrow",
"Arrow publish multiplatform",
)
}

dependencies {
// compileOnly(libs.android)
compileOnly(libs.kotlin.gradlePlugin)
Expand Down
9 changes: 1 addition & 8 deletions arrow-gradle-config-versioning/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,13 @@ gradlePlugin {
plugins {
named("io.arrow-kt.arrow-gradle-config-versioning") {
id = "io.arrow-kt.arrow-gradle-config-versioning"
tags.set(listOf("Arrow", "Arrow versioning"))
displayName = "Arrow Versioning Gradle Config"
description = "Basic versioning Gradle config for Arrow projects"
}
}
}

pluginBundle {
tags =
listOf(
"Arrow",
"Arrow versioning",
)
}

dependencies {
api(libs.javiersc.semver.semverGradlePlugin)
implementation(libs.gradle.publishPlugin)
Expand Down
14 changes: 1 addition & 13 deletions build-src/src/main/kotlin/SignPublications.kt
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import org.gradle.api.Project
import org.gradle.api.publish.PublishingExtension
import org.gradle.api.publish.maven.tasks.AbstractPublishToMaven
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.getByName
import org.gradle.kotlin.dsl.withType
import org.gradle.plugins.signing.Sign
import org.gradle.plugins.signing.SigningExtension

fun Project.signPublications(createMavenFromJava: Boolean = false) {
fun Project.signPublications() {
configure<SigningExtension> {
if (shouldSign) {
try {
Expand All @@ -16,15 +13,6 @@ fun Project.signPublications(createMavenFromJava: Boolean = false) {
useGpgCmd()
}
sign(project.extensions.getByName<PublishingExtension>("publishing").publications)
if (!createMavenFromJava) {
tasks.withType<AbstractPublishToMaven> {
afterEvaluate { dependsOn("javadocJar") }
dependsOn(tasks.withType<Sign>())
}
tasks.withType<Sign> {
afterEvaluate { dependsOn("javadocJar") }
}
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion build-src/src/main/kotlin/publish-kotlin-jvm.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ project.tasks.creating(Jar::class) {

setupPublishing(docsJar, sourcesJar, createMavenFromJava = true)

signPublications(createMavenFromJava = true)
signPublications()
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ coroutines = "1.7.3"
dokka = "1.9.10"
gradlePublish = "0.21.0"
javierscSemverGradlePlugin = "0.5.0-rc.6"
kotlin = "1.9.22"
kotlin = "1.9.20"
nexusPublish = "1.3.0"
spotless = "6.25.0"

Expand Down

0 comments on commit b5bd0a0

Please sign in to comment.