Skip to content

Commit

Permalink
Remove custom publication names
Browse files Browse the repository at this point in the history
  • Loading branch information
serpro69 committed May 29, 2024
1 parent 28ba04f commit b1a8136
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions buildSrc/src/main/kotlin/Publishing.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ val Project.fullName: String
get() = if (name == "core") rootProject.name
else "${rootProject.name}-${name}"

val Project.publicationName: String
get() = "Faker${path.split(":").joinToString("") { it.capitalized() }}"

private fun createSourcesJarTask(p: Project): Jar {
val sourcesJar by p.tasks.creating(Jar::class) {
archiveClassifier.set("sources")
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/faker-pub-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {

publishing {
publications {
create<MavenPublication>(publicationName) {
create<MavenPublication>("maven") {
groupId = project.group.toString()
artifactId = fullName
version = project.version.toString()
Expand Down Expand Up @@ -53,7 +53,7 @@ publishing {
}

signing {
sign(publishing.publications[publicationName])
sign(publishing.publications["maven"])
}

tasks.withType<PublishToMavenRepository>().configureEach {
Expand Down

0 comments on commit b1a8136

Please sign in to comment.