Skip to content

Commit

Permalink
Remove symlinks to root gradle.properties
Browse files Browse the repository at this point in the history
Fixes #7
  • Loading branch information
christiandeange committed Feb 14, 2024
1 parent 0bfa15c commit 0f49d94
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
1 change: 0 additions & 1 deletion build-logic/gradle.properties

This file was deleted.

2 changes: 2 additions & 0 deletions build-logic/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
kotlin.code.style=official
org.gradle.jvmargs=-Xmx8g
1 change: 0 additions & 1 deletion generator/gradle.properties

This file was deleted.

7 changes: 7 additions & 0 deletions generator/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
POM_GROUP_ID=sh.christian.ozone
POM_VERSION=0.0.6-SNAPSHOT
POM_NAME=
POM_DESCRIPTION=

kotlin.code.style=official
org.gradle.jvmargs=-Xmx8g
13 changes: 9 additions & 4 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,26 @@ if [[ -n "$(git status --porcelain)" ]]; then
exit 1
fi

sed -i '' "s/-SNAPSHOT//g" gradle.properties
properties_files="$(find . -name gradle.properties)"
for file in $properties_files; do
sed -i '' "s/-SNAPSHOT//g" "$file"
done

NEXT_RELEASE="$(awk -F= '/POM_VERSION/ { print $2 }' < gradle.properties)"
CURRENT_RELEASE="$(awk -F\" '/sh.christian.ozone:bluesky/ { print $4 }' < gradle/libs.versions.toml)"
sed -i '' "s/$CURRENT_RELEASE/$NEXT_RELEASE/g" gradle/libs.versions.toml
sed -i '' "s/$CURRENT_RELEASE/$NEXT_RELEASE/g" README.md

git add README.md
git add gradle.properties
git add $properties_files
git add gradle/libs.versions.toml

git commit -m "Releasing v$NEXT_RELEASE"
git tag "v$NEXT_RELEASE" --force

sed -i '' "s/$NEXT_RELEASE/$NEXT_SNAPSHOT_VERSION-SNAPSHOT/g" gradle.properties
for file in $properties_files; do
sed -i '' "s/$NEXT_RELEASE/$NEXT_SNAPSHOT_VERSION-SNAPSHOT/g" "$file"
done

git add gradle.properties
git add $properties_files
git commit -m "Prepare next development cycle."

0 comments on commit 0f49d94

Please sign in to comment.