Skip to content

Commit 411721f

Browse files
authored
Merge pull request #1117 from sigstore/prep200
Prepare for 2.0.0
2 parents 69cbe67 + 735ab10 commit 411721f

File tree

4 files changed

+36
-3
lines changed

4 files changed

+36
-3
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ org.gradle.jvmargs=-XX:MaxMetaspaceSize=768m
44
group=dev.sigstore
55

66
# use the ./scripts/update_version.sh script to update all versions
7-
version=2.0.0-rc3
7+
version=2.0.0
88

99
# Kotlin Dokka is experemental, and we want silence the build warning
1010
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled

scripts/change_version.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
# change the targetted release version without adjust anything else in the build, typically you
4+
# only need this script if you're doing a bug fix or a release candidate (-rc)
5+
6+
# this script is simple and should work for most usecases, but it may break if we do weird things
7+
set -Eeo pipefail
8+
9+
old_version=$(grep "^version=" gradle.properties | cut -d'=' -f2)
10+
other_old_version=$(grep "sigstoreJavaVersion.convention" sigstore-gradle/sigstore-gradle-sign-base-plugin/src/main/kotlin/dev/sigstore/sign/SigstoreSignExtension.kt | cut -d'"' -f2)
11+
if [[ "$old_version" != "$other_old_version" ]]; then
12+
echo "found version are not equal ($old_version != $other_old_version) ... aborting"
13+
exit
14+
fi
15+
read -r -p "Enter new version [${old_version}]: " vin
16+
new_version=${vin:-${old_version}}
17+
18+
echo ""
19+
echo "old : $old_version"
20+
echo "new : $new_version"
21+
read -r -p "Run update? [y/N]: " yn
22+
go=${yn:-"n"}
23+
if [ "${go,,}" != "y" ]; then
24+
echo "aborting"
25+
exit
26+
fi
27+
28+
# update to latest dev version (change update_versions.sh if you change this section)
29+
sed -i "s/\(sigstoreJavaVersion.convention(\"\)$old_version/\1$new_version/" sigstore-gradle/sigstore-gradle-sign-base-plugin/src/main/kotlin/dev/sigstore/sign/SigstoreSignExtension.kt
30+
sed -i "s/version=$old_version/version=$new_version/" gradle.properties
31+

scripts/update_versions.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
# change all versions in the repository after doing a release
4+
35
# this script is simple and should work for most usecases, but it may break if we do weird things
46
set -Eeo pipefail
57

@@ -35,7 +37,7 @@ sed -i "s/\(dev.sigstore.sign\") version \"\)$previous_version/\1$release_versio
3537
sed -i "s/\(sigstore.version.*\)$previous_version/\1$release_version/" examples/hello-world/build.gradle.kts
3638
sed -i "s/\(<sigstore.version>\)$previous_version/\1$release_version/" examples/hello-world/pom.xml
3739

38-
# update to latest dev version
40+
# update to latest dev version (change change_version.sh if you change this section)
3941
sed -i "s/\(sigstoreJavaVersion.convention(\"\)$release_version/\1$next_version/" sigstore-gradle/sigstore-gradle-sign-base-plugin/src/main/kotlin/dev/sigstore/sign/SigstoreSignExtension.kt
4042
sed -i "s/version=$release_version/version=$next_version/" gradle.properties
4143

sigstore-gradle/sigstore-gradle-sign-base-plugin/src/main/kotlin/dev/sigstore/sign/SigstoreSignExtension.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ abstract class SigstoreSignExtension(private val project: Project) {
4646
abstract val sigstoreJavaVersion : Property<String>
4747

4848
init {
49-
sigstoreJavaVersion.convention("2.0.0-rc3")
49+
sigstoreJavaVersion.convention("2.0.0")
5050
}
5151

5252
fun sign(publications: DomainObjectCollection<Publication>) {

0 commit comments

Comments
 (0)