Skip to content

Commit

Permalink
Remove tombstones (#6222)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbonnin authored Oct 28, 2024
1 parent 174cb22 commit 2b5d778
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 71 deletions.
25 changes: 3 additions & 22 deletions build-logic/src/main/kotlin/Publishing.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@ import org.jetbrains.dokka.gradle.engine.plugins.DokkaVersioningPluginParameters
import org.jetbrains.dokka.gradle.tasks.DokkaGenerateTask
import javax.inject.Inject

class Tombstone(
val group: String,
val artifact: String,
val version: String,
)
fun Project.configurePublishing(isAggregateKdoc: Boolean = false, tombstone: Tombstone? = null) {
fun Project.configurePublishing(isAggregateKdoc: Boolean = false) {
apply {
plugin("signing")
}
Expand All @@ -49,7 +44,7 @@ fun Project.configurePublishing(isAggregateKdoc: Boolean = false, tombstone: Tom
if (isAggregateKdoc) {
configureDokkaAggregate()
}
configurePublishingInternal(tombstone)
configurePublishingInternal()
}

fun Project.configureDokkaCommon(): DokkaExtension {
Expand Down Expand Up @@ -199,7 +194,7 @@ private fun Project.getOssStagingUrl(): String {
}
}

private fun Project.configurePublishingInternal(tombstone: Tombstone?) {
private fun Project.configurePublishingInternal() {
val emptyJavadocJar = tasks.register("emptyJavadocJar", org.gradle.jvm.tasks.Jar::class.java) {
archiveClassifier.set("javadoc")

Expand Down Expand Up @@ -289,20 +284,6 @@ private fun Project.configurePublishingInternal(tombstone: Tombstone?) {
artifactId = project.name
}
}
tombstone != null ->{
withType(MavenPublication::class.java).configureEach {
pom {
distributionManagement {
relocation {
groupId.set(tombstone.group)
artifactId.set(tombstone.artifact)
version.set(tombstone.version)
message.set("This artifact is has moved. See https://go.apollo.dev/ak-moved-artifacts")
}
}
}
}
}

else -> {
/**
Expand Down
8 changes: 0 additions & 8 deletions build-logic/src/main/kotlin/api.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ class KotlinCompilerOptions(
val version: KotlinVersion = KotlinVersion.KOTLIN_2_0,
)

fun Project.apolloTombstone(
group: String,
artifact: String,
version: String,
) {
configurePublishing(tombstone = Tombstone(group, artifact, version))
}

fun Project.apolloLibrary(
namespace: String,
jvmTarget: Int? = null,
Expand Down
5 changes: 0 additions & 5 deletions libraries/apollo-engine-ktor/README.md

This file was deleted.

8 changes: 0 additions & 8 deletions libraries/apollo-engine-ktor/api/apollo-engine-ktor.api

This file was deleted.

12 changes: 0 additions & 12 deletions libraries/apollo-engine-ktor/api/apollo-engine-ktor.klib.api

This file was deleted.

6 changes: 0 additions & 6 deletions libraries/apollo-engine-ktor/build.gradle.kts

This file was deleted.

3 changes: 0 additions & 3 deletions libraries/apollo-engine-ktor/gradle.properties

This file was deleted.

5 changes: 0 additions & 5 deletions libraries/apollo-mockserver/build.gradle.kts

This file was deleted.

2 changes: 0 additions & 2 deletions libraries/apollo-mockserver/gradle.properties

This file was deleted.

0 comments on commit 2b5d778

Please sign in to comment.