Skip to content

Commit ddb7754

Browse files
committed
Publish all artifacts with the same version
Close #249
1 parent 3cd58d7 commit ddb7754

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

buildSrc/src/main/kotlin/Projects.kt

+1-5
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,5 @@ val Project.isSnapshot: Provider<Boolean>
2828
val Project.isRelease: Provider<Boolean>
2929
get() = provider {
3030
val tag = tasks.getByName("tag", TagTask::class)
31-
/* all fakers have their own tags, so checking if tag.didWork is enough for them,
32-
':core' shares the tag with 'root', ':bom' and ':cli-bot' modules,
33-
and hence the tag might already exist and didWork will return false for ':core' */
34-
val tagCreated = if (project.name != "core") tag.didWork else tag.didWork || tag.tagExists
35-
!isDev.get() && !isSnapshot.get() && tagCreated
31+
(!isDev.get() && !isSnapshot.get()) && (tag.didWork || tag.tagExists)
3632
}

settings.gradle.kts

-16
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,4 @@ settings.extensions.configure<SemverPluginExtension>("semantic-versioning") {
6161
version {
6262
useSnapshots = true
6363
}
64-
monorepo {
65-
fakers.forEach { f ->
66-
module(":faker:$f") {
67-
tag {
68-
prefix = TagPrefix("faker-$f-v")
69-
}
70-
}
71-
}
72-
extensions.filter { !it.endsWith("-test") }.forEach { e ->
73-
module(":extension:$e") {
74-
tag {
75-
prefix = TagPrefix("ext-$e-v")
76-
}
77-
}
78-
}
79-
}
8064
}

0 commit comments

Comments
 (0)