Skip to content

Commit

Permalink
Update dependency com.javiersc.hubdle to v0.8.2
Browse files Browse the repository at this point in the history
| datasource | package                                               | from  | to    |
| ---------- | ----------------------------------------------------- | ----- | ----- |
| maven      | com.javiersc.hubdle:com.javiersc.hubdle.gradle.plugin | 0.8.1 | 0.8.2 |
  • Loading branch information
actions-user authored and renovate[bot] committed Jan 28, 2025
1 parent 5a2e673 commit 699bbbb
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

### Updated

- `com.javiersc.hubdle:com.javiersc.hubdle.gradle.plugin -> 0.8.2`
- `gradle -> 8.12.1`
- `com.javiersc.hubdle:com.javiersc.hubdle.gradle.plugin -> 0.8.1`

## [0.8.0] - 2024-10-09

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
hubdle = "0.8.1"
hubdle = "0.8.2"

[plugins]
javiersc-hubdle = { id = "com.javiersc.hubdle", version.ref = "hubdle" }
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,22 @@ internal fun calculatedVersion(
}
stagePropertySanitized.equals(Stage.Final(), ignoreCase = true) -> {
when (scopeProperty) {
Scope.Major() -> "${lastSemverInCurrentBranch.inc(Increase.Major, "")}"
Scope.Minor() -> "${lastSemverInCurrentBranch.inc(Increase.Minor, "")}"
Scope.Patch() -> "${lastSemverInCurrentBranch.inc(Increase.Patch, "")}"
"${Scope.Major}" -> "${lastSemverInCurrentBranch.inc(Increase.Major, "")}"
"${Scope.Minor}" -> "${lastSemverInCurrentBranch.inc(Increase.Minor, "")}"
"${Scope.Patch}" -> "${lastSemverInCurrentBranch.inc(Increase.Patch, "")}"
else -> "${lastSemverInCurrentBranch.inc(stageName = "")}"
}
}
scopeProperty == Scope.Major() -> {
scopeProperty == "${Scope.Major}" -> {
"${lastSemverInCurrentBranch.inc(Increase.Major, incStage)}"
}
scopeProperty == Scope.Minor() -> {
scopeProperty == "${Scope.Minor}" -> {
"${lastSemverInCurrentBranch.inc(Increase.Minor, incStage)}"
}
scopeProperty == Scope.Patch() -> {
scopeProperty == "${Scope.Patch}" -> {
"${lastSemverInCurrentBranch.inc(Increase.Patch, incStage)}"
}
scopeProperty == Scope.Auto() -> {
scopeProperty == "${Scope.Auto}" -> {
when {
versionTagsInCurrentBranch.isEmpty() -> "$lastSemverInCurrentBranch"
incStage.isEmpty() ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import org.gradle.api.Project

internal fun Project.checkScopeCorrectness() {
val scope = scopeProperty.orNull
check(scope in Scope.values().map(Scope::invoke) || scope.isNullOrBlank()) {
"`scope` value must be one of ${Scope.values().map(Scope::invoke)} or empty"
check(scope in Scope.entries.map(Scope::toString) || scope.isNullOrBlank()) {
"`scope` value must be one of ${Scope.entries.map(Scope::toString)} or empty"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ internal enum class Scope(private val value: String) {
Minor("minor"),
Patch("patch");

operator fun invoke(): String = value
override fun toString(): String = value
}

private fun Project.getSemverProperty(semverProperty: SemverProperty): Provider<String> =
Expand Down

0 comments on commit 699bbbb

Please sign in to comment.