@@ -7,7 +7,7 @@ plugins {
77 id(" me.champeau.jmh" ) version " 0.7.3"
88}
99
10- version = " 2.0.0-RC-2 "
10+ version = " 2.0.0-RC-3 "
1111group = " com.tegonal.variist"
1212description = " Library which helps to setup and prioritise parameterized tests"
1313
@@ -82,82 +82,82 @@ Release & deploy a commit
82821. update main:
8383
8484
85- export MNLMST_PREVIOUS_VERSION =2.0.0-RC-2
86- export MNLMST_VERSION =2.0.0-RC-3
85+ export VARIIST_PREVIOUS_VERSION =2.0.0-RC-3
86+ export VARIIST_VERSION =2.0.0-RC-3
8787find ./ -name "*.md" | xargs perl -0777 -i \
88- -pe "s@$MNLMST_PREVIOUS_VERSION@$MNLMST_VERSION @g;" \
89- -pe "s@tree/main@tree/v$MNLMST_VERSION @g;" \
90- -pe "s@latest#/kdoc@$MNLMST_VERSION /kdoc@g;"
88+ -pe "s@$VARIIST_PREVIOUS_VERSION@$VARIIST_VERSION @g;" \
89+ -pe "s@tree/main@tree/v$VARIIST_VERSION @g;" \
90+ -pe "s@latest#/kdoc@$VARIIST_VERSION /kdoc@g;"
9191perl -0777 -i \
92- -pe "s@$MNLMST_PREVIOUS_VERSION@$MNLMST_VERSION @g;" \
93- -pe "s/version = \"${MNLMST_VERSION }-SNAPSHOT\"/version = \"$MNLMST_VERSION \"/;" \
92+ -pe "s@$VARIIST_PREVIOUS_VERSION@$VARIIST_VERSION @g;" \
93+ -pe "s/version = \"${VARIIST_VERSION }-SNAPSHOT\"/version = \"$VARIIST_VERSION \"/;" \
9494 ./build.gradle.kts
9595perl -0777 -i \
9696 -pe 's/(<!-- for main -->\n)\n([\S\s]*?)(\n<!-- for main end -->\n<!-- for release -->\n)<!--\n([\S\s]*?)-->\n(<!-- for release end -->)/$1<!--\n$2-->$3\n$4\n$5/;' \
9797 -pe 's/(---\n❗ You are taking[^-]*?---)/<!$1>/;' \
9898 ./README.md
99- git commit -a -m "v$MNLMST_VERSION "
99+ git commit -a -m "v$VARIIST_VERSION "
100100
101101check changes (CONTRIBUTING.md, build.gradle.kts, README.md)
102102git push
103103
104104
1051052. prepare release on github
106- a) git tag "v$MNLMST_VERSION "
107- b) git push origin "v$MNLMST_VERSION "
106+ a) git tag "v$VARIIST_VERSION "
107+ b) git push origin "v$VARIIST_VERSION "
108108 c) Log in to github and create draft for the release
109109
110110The tag is required for dokka in order that the externalLinkDocumentation works
111111
1121123. update github pages:
113113Assumes you have a variist-gh-pages folder on the same level as variist where the gh-pages branch is checked out
114114
115- Either use the following commands or the manual steps below (assuming MNLMST_PREVIOUS_VERSION and MNLMST_VERSION
115+ Either use the following commands or the manual steps below (assuming VARIIST_PREVIOUS_VERSION and VARIIST_VERSION
116116is already set from commands above)
117117
118- Increment MNLMST_GH_PAGES_VERSIONS_JS_VERSION and MNLMST_GH_PAGES_VERSIONS_JS_VERSION__NEXT
118+ Increment VARIIST_GH_PAGES_VERSIONS_JS_VERSION and VARIIST_GH_PAGES_VERSIONS_JS_VERSION__NEXT
119119
120- export MNLMST_GH_PAGES_LOGO_CSS_VERSION ="1.3"
121- export MNLMST_GH_PAGES_ALERT_CSS_VERSION ="1.1"
122- export MNLMST_GH_PAGES_VERSIONS_JS_VERSION ="1.3.0"
123- export MNLMST_GH_PAGES_VERSIONS_JS_VERSION_NEXT ="1.4.0"
120+ export VARIIST_GH_PAGES_LOGO_CSS_VERSION ="1.3"
121+ export VARIIST_GH_PAGES_ALERT_CSS_VERSION ="1.1"
122+ export VARIIST_GH_PAGES_VERSIONS_JS_VERSION ="1.3.0"
123+ export VARIIST_GH_PAGES_VERSIONS_JS_VERSION_NEXT ="1.4.0"
124124
125125gr dokkaHtml
126126
127127cd ../variist-gh-pages
128- git add . && git commit -m "dokka generation for v$MNLMST_VERSION "
128+ git add . && git commit -m "dokka generation for v$VARIIST_VERSION "
129129
130130perl -0777 -i \
131- -pe "s@$MNLMST_PREVIOUS_VERSION@$MNLMST_VERSION @g;" \
131+ -pe "s@$VARIIST_PREVIOUS_VERSION@$VARIIST_VERSION @g;" \
132132 ./index.html
133133perl -0777 -i \
134- -pe "s@$MNLMST_PREVIOUS_VERSION@$MNLMST_VERSION @g;" \
134+ -pe "s@$VARIIST_PREVIOUS_VERSION@$VARIIST_VERSION @g;" \
135135 ./latest/index.html
136136perl -0777 -i \
137- -pe "s/(\s+)\"$MNLMST_PREVIOUS_VERSION \",/\$1\"$MNLMST_VERSION \",\$1\"$MNLMST_PREVIOUS_VERSION \",/;" \
137+ -pe "s/(\s+)\"$VARIIST_PREVIOUS_VERSION \",/\$1\"$VARIIST_VERSION \",\$1\"$VARIIST_PREVIOUS_VERSION \",/;" \
138138 ./scripts/versions.js
139139
140140
141- find "./$MNLMST_VERSION " -name "*.html" | xargs perl -0777 -i \
141+ find "./$VARIIST_VERSION " -name "*.html" | xargs perl -0777 -i \
142142 -pe "s@<script.*src=\"https://unpkg\.com.*</script>@@;" \
143143 -pe "s@(<div class=\"library-name\">[\S\s]+?)Variist@\$1<span>Variist</span>@;" \
144- -pe "s@\"((?:\.\./+)*)styles/logo-styles.css\" rel=\"Stylesheet\">@\"../../\${1}styles/logo-styles.css?v=$MNLMST_GH_PAGES_LOGO_CSS_VERSION \" rel=\"Stylesheet\">\n<link href=\"../../\${1}styles/alert.css?v=$MNLMST_GH_PAGES_ALERT_CSS_VERSION \" rel=\"Stylesheet\">\n<script id=\"versions-script\" type=\"text/javascript\" src=\"\../../\${1}scripts/versions.js?v=$MNLMST_GH_PAGES_VERSIONS_JS_VERSION \" data-version=\"$MNLMST_VERSION \" async=\"async\"></script>@g;" \
144+ -pe "s@\"((?:\.\./+)*)styles/logo-styles.css\" rel=\"Stylesheet\">@\"../../\${1}styles/logo-styles.css?v=$VARIIST_GH_PAGES_LOGO_CSS_VERSION \" rel=\"Stylesheet\">\n<link href=\"../../\${1}styles/alert.css?v=$VARIIST_GH_PAGES_ALERT_CSS_VERSION \" rel=\"Stylesheet\">\n<script id=\"versions-script\" type=\"text/javascript\" src=\"\../../\${1}scripts/versions.js?v=$VARIIST_GH_PAGES_VERSIONS_JS_VERSION \" data-version=\"$VARIIST_VERSION \" async=\"async\"></script>@g;" \
145145 -pe "s@((?:\.\./+)*)images/logo-icon.svg\"([^>]+)>@../../\${1}images/logo-icon.svg\"\$2>\n<meta name=\"og:image\" content=\"../../\${1}images/logo_social.png\"/>@g;" \
146146 -pe "s@(<a class=\"library-name--link\" href=\"(?:\.\./+)*)index.html\">@\$1../../index.html\" title=\"Back to Overview Code Documentation of Variist\">@g;" \
147147 -pe "s@<html@<html lang=\"en\"@g;" \
148148 -pe "s@<head>@<head>\n<meta name=\"keywords\" content=\"Kotlin, junit, junit-jupiter, test, Testing, parameterized tests, minimal test set\">\n<meta name=\"author\" content=\"Tegonal Genossenschaft\">\n<meta name=\"copyright\" content=\"Tegonal Genossenschaft\">@g;" \
149- -pe "s@<title>([^<]+)</title>@<title>\$1 - Variist $MNLMST_VERSION </title>\n<meta name=\"description\" content=\"Code documentation of Variist $MNLMST_VERSION : \$1\">@g;" \
149+ -pe "s@<title>([^<]+)</title>@<title>\$1 - Variist $VARIIST_VERSION </title>\n<meta name=\"description\" content=\"Code documentation of Variist $VARIIST_VERSION : \$1\">@g;" \
150150 -pe "s@(<code class=\"runnablesample[^>]+>)[\S\s]+?//sampleStart[\n\s]*([\S\s]+?)\s+//sampleEnd[\n\s]*\}@\${1}\${2}@g;"
151151
152152find "./" -name "*.html" | xargs perl -0777 -i \
153- -pe "s@(scripts/versions\.js\?v\=)$MNLMST_GH_PAGES_VERSIONS_JS_VERSION @\${1}$MNLMST_GH_PAGES_VERSIONS_JS_VERSION_NEXT @g;"
153+ -pe "s@(scripts/versions\.js\?v\=)$VARIIST_GH_PAGES_VERSIONS_JS_VERSION @\${1}$VARIIST_GH_PAGES_VERSIONS_JS_VERSION_NEXT @g;"
154154
155- cp "./$MNLMST_PREVIOUS_VERSION /index.html" "./$MNLMST_VERSION /index.html"
155+ cp "./$VARIIST_PREVIOUS_VERSION /index.html" "./$VARIIST_VERSION /index.html"
156156perl -0777 -i \
157- -pe "s/$MNLMST_PREVIOUS_VERSION/$MNLMST_VERSION /g;" \
157+ -pe "s/$VARIIST_PREVIOUS_VERSION/$VARIIST_VERSION /g;" \
158158 -pe "s@Released .*</p>@Released $(LC_ALL=en_GB date '+%b %d, %Y')</p>@;" \
159- "./$MNLMST_VERSION /index.html"
160- git add . && git commit -m "v$MNLMST_VERSION "
159+ "./$VARIIST_VERSION /index.html"
160+ git add . && git commit -m "v$VARIIST_VERSION "
161161
162162check changes
163163git push
@@ -167,8 +167,8 @@ cd ../variist
1671673. deploy to sonatype central portal:
168168(assumes you have an alias named gr pointing to ./gradlew)
169169 a) java -version 2>&1 | grep "version \"11" && PUB=true CI=true gr clean pubToMaLo &&
170- tmpDir=$(mktemp -d -t "variist-release-$MNLMST_VERSION -XXXXXXXXXX") &&
171- find "$HOME/.m2/repository/com/tegonal/variist" -type d -name "*$MNLMST_VERSION " -print0 |
170+ tmpDir=$(mktemp -d -t "variist-release-$VARIIST_VERSION -XXXXXXXXXX") &&
171+ find "$HOME/.m2/repository/com/tegonal/variist" -type d -name "*$VARIIST_VERSION " -print0 |
172172 while read -r -d $'\0' versionDir; do
173173 find "$versionDir" -type f -print0 | while read -r -d $'\0' file; do
174174 relPath="${file#"$HOME/.m2/repository/"}"
@@ -182,7 +182,7 @@ cd ../variist
182182 md5sum "$file" | awk '{ print $1 }' > "${file}.md5"
183183 sha1sum "$file" | awk '{ print $1 }' > "$file.sha1"
184184 done &&
185- (cd "$tmpDir" && zip -r "variist-$MNLMST_VERSION .zip" .) &&
185+ (cd "$tmpDir" && zip -r "variist-$VARIIST_VERSION .zip" .) &&
186186 find "$tmpDir" -name "*.jar" | head -n 1 | xargs -I {} gpg --verify "{}.asc" "{}" &&
187187 echo "verify the correct gpg key was used (see above) and you might want to check the release in $tmpDir"
188188 b) Log into https://central.sonatype.com/publishing/deployments
@@ -197,22 +197,22 @@ Prepare next dev cycle
197197 1. update main:
198198
199199
200- export MNLMST_VERSION =2.0.0-RC-2
201- export MNLMST_NEXT_VERSION =2.0.0-RC-3
200+ export VARIIST_VERSION =2.0.0-RC-3
201+ export VARIIST_NEXT_VERSION =2.0.0-RC-3
202202find ./ -name "*.md" | xargs perl -0777 -i \
203- -pe "s@tree/v$MNLMST_VERSION @tree/main@g;" \
204- -pe "s@$MNLMST_VERSION /kdoc@latest#/kdoc@g;" \
205- -pe "s/add \\\`\@since $MNLMST_VERSION \\\` \(adapt to current/add \\\`\@since $MNLMST_NEXT_VERSION \\\` \(adapt to current/g;"
203+ -pe "s@tree/v$VARIIST_VERSION @tree/main@g;" \
204+ -pe "s@$VARIIST_VERSION /kdoc@latest#/kdoc@g;" \
205+ -pe "s/add \\\`\@since $VARIIST_VERSION \\\` \(adapt to current/add \\\`\@since $VARIIST_NEXT_VERSION \\\` \(adapt to current/g;"
206206perl -0777 -i \
207- -pe "s/rootProject.version = \"$MNLMST_VERSION \"/rootProject.version = \"${MNLMST_NEXT_VERSION }-SNAPSHOT\"/;" \
208- -pe "s/MNLMST_VERSION=$MNLMST_VERSION/MNLMST_VERSION=$MNLMST_NEXT_VERSION /;" \
207+ -pe "s/rootProject.version = \"$VARIIST_VERSION \"/rootProject.version = \"${VARIIST_NEXT_VERSION }-SNAPSHOT\"/;" \
208+ -pe "s/VARIIST_VERSION=$VARIIST_VERSION/VARIIST_VERSION=$VARIIST_NEXT_VERSION /;" \
209209 ./build.gradle.kts
210210perl -0777 -i \
211211 -pe 's/(<!-- for main -->\n)<!--\n([\S\s]*?)-->(\n<!-- for release -->)\n([\S\s]*?)\n(\n# <img)/$1\n$2$3\n<!--$4-->\n$5/;' \
212212 -pe 's/<!(---\n❗ You are taking[^-]*?---)>/$1/;' \
213- -pe "s@(latest version: \[README of v$MNLMST_VERSION \].*tree/)main/@\$1v$MNLMST_VERSION /@;" \
213+ -pe "s@(latest version: \[README of v$VARIIST_VERSION \].*tree/)main/@\$1v$VARIIST_VERSION /@;" \
214214 ./README.md
215- git commit -a -m "prepare dev cycle of $MNLMST_NEXT_VERSION "
215+ git commit -a -m "prepare dev cycle of $VARIIST_NEXT_VERSION "
216216
217217check changes
218218git push
0 commit comments