Skip to content

Commit

Permalink
Publish all artifacts with the same version
Browse files Browse the repository at this point in the history
Close #249
  • Loading branch information
serpro69 committed Nov 17, 2024
1 parent 3cd58d7 commit ddb7754
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
6 changes: 1 addition & 5 deletions buildSrc/src/main/kotlin/Projects.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,5 @@ val Project.isSnapshot: Provider<Boolean>
val Project.isRelease: Provider<Boolean>
get() = provider {
val tag = tasks.getByName("tag", TagTask::class)
/* all fakers have their own tags, so checking if tag.didWork is enough for them,
':core' shares the tag with 'root', ':bom' and ':cli-bot' modules,
and hence the tag might already exist and didWork will return false for ':core' */
val tagCreated = if (project.name != "core") tag.didWork else tag.didWork || tag.tagExists
!isDev.get() && !isSnapshot.get() && tagCreated
(!isDev.get() && !isSnapshot.get()) && (tag.didWork || tag.tagExists)
}
16 changes: 0 additions & 16 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,4 @@ settings.extensions.configure<SemverPluginExtension>("semantic-versioning") {
version {
useSnapshots = true
}
monorepo {
fakers.forEach { f ->
module(":faker:$f") {
tag {
prefix = TagPrefix("faker-$f-v")
}
}
}
extensions.filter { !it.endsWith("-test") }.forEach { e ->
module(":extension:$e") {
tag {
prefix = TagPrefix("ext-$e-v")
}
}
}
}
}

0 comments on commit ddb7754

Please sign in to comment.