Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into sqlgrammar-unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
nvoxland committed Feb 10, 2022
2 parents 6388deb + f422810 commit 883b638
Show file tree
Hide file tree
Showing 22 changed files with 763 additions and 618 deletions.
7 changes: 5 additions & 2 deletions .github/util/ManifestReversion.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
public class ManifestReversion {
public static void main(String[] args) throws Exception {
String filename = args[0];
String version = args[1];
String version = args[1]
.replaceFirst("^v", "");

Manifest manifest;
try (InputStream input = new FileInputStream(filename)) {
manifest = new Manifest(input);
Expand All @@ -21,7 +23,8 @@ public static void main(String[] args) throws Exception {

attributes.putValue("Liquibase-Version", version);

if (attributes.containsKey("Bundle-Version")) {
final String bundleVersion = attributes.getValue("Bundle-Version");
if (bundleVersion != null) {
attributes.putValue("Bundle-Version", version);
}

Expand Down
16 changes: 16 additions & 0 deletions .github/util/re-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,22 @@ do

cp $workdir/$jar $outdir
rename.ul 0-SNAPSHOT $version $outdir/$jar

## Make sure there are no left-over 0-SNAPSHOT versions
mkdir -p $workdir/test
unzip -q $outdir/*.jar -d $workdir/test

if grep -rl "0-SNAPSHOT" $workdir/test; then
echo "Found '0-SNAPSHOT' in re-versioned jars"
exit 1
fi

if grep -rl "0.0.0.SNAPSHOT" $workdir/test; then
echo "Found '0.0.0.SNAPSHOT' in re-versioned jars"
exit 1
fi

rm -rf $workdir/test
done

#### Update javadoc jars
Expand Down

0 comments on commit 883b638

Please sign in to comment.