generated from JavierSegoviaCordoba/kotlin-template-javiersc
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
mapVersion
which expose GitData
to semver
extension
- Loading branch information
1 parent
a64fe21
commit 7a9cb9c
Showing
9 changed files
with
192 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ | |
|
||
### Added | ||
|
||
- `mapVersion` which expose `GitData` to `semver` extension | ||
|
||
### Changed | ||
|
||
### Deprecated | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...gin/testFunctional/resources/version-mapping/v1_0_0 to v1_0_0+2_0_0-develop/ARGUMENTS.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build -Psemver.tagPrefix=v |
10 changes: 10 additions & 0 deletions
10
.../testFunctional/resources/version-mapping/v1_0_0 to v1_0_0+2_0_0-develop/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
plugins { | ||
Check notice on line 1 in semver-project-gradle-plugin/testFunctional/resources/version-mapping/v1_0_0 to v1_0_0+2_0_0-develop/build.gradle.kts GitHub Actions / Qodana Community for JVMPackage name does not match containing directory
|
||
id("com.javiersc.semver.project") | ||
} | ||
|
||
semver { | ||
tagPrefix.set("v") | ||
mapVersion { gradleVersion, git -> | ||
"${gradleVersion.copy(metadata = "2.0.0-${git.branch.name}")}" | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
...estFunctional/resources/version-mapping/v1_0_0 to v1_0_0+2_0_0-develop/expect-version.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
1.0.0+2.0.0-develop | ||
v1.0.0+2.0.0-develop |
1 change: 1 addition & 0 deletions
1
...ugin/testFunctional/resources/version-mapping/v1_0_0 to v1_0_0+2_0_0-develop/last-tag.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v0.9.0 |
1 change: 1 addition & 0 deletions
1
...stFunctional/resources/version-mapping/v1_0_0 to v1_0_0+2_0_0-develop/settings.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rootProject.name = "sandbox-project" | ||
Check notice on line 1 in semver-project-gradle-plugin/testFunctional/resources/version-mapping/v1_0_0 to v1_0_0+2_0_0-develop/settings.gradle.kts GitHub Actions / Qodana Community for JVMPackage name does not match containing directory
|