Skip to content

Commit

Permalink
build: Gradle Version Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaidak committed Nov 8, 2024
1 parent 8d05dde commit 7408ba9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- id: set-vars
name: Set variables
run: |
version=$(grep "version" build.gradle.kts | awk '{ print $3 }' | tr -d \''"\\')
version=$(grep "project = " gradle/libs.versions.toml | awk '{ print $3 }' | tr -d \''"\\')
missing=$(if [ "$(git ls-remote origin refs/tags/$version)" ]; then echo false; else echo true; fi)
echo "version=$version" >> "$GITHUB_OUTPUT"
echo "missing=$missing" >> "$GITHUB_OUTPUT"
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
allprojects {

group = "com.scalified"
version = "2.4.0"
version = rootProject.libs.versions.project.get()

repositories {
mavenCentral()
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[versions]
project = "2.4.0"

gradle-publish = "1.3.0"

[plugins]
Expand Down

0 comments on commit 7408ba9

Please sign in to comment.