File tree 3 files changed +48
-1
lines changed
3 files changed +48
-1
lines changed Original file line number Diff line number Diff line change 15
15
doc
16
16
hs_err * .log
17
17
target
18
+ /sample /GeoLite2-City.mmdb
19
+ /sample /run.sh
18
20
reports
19
21
Test.java
Original file line number Diff line number Diff line change 1
1
CHANGELOG
2
2
=========
3
3
4
- 1.X.X (201X-XX-XX )
4
+ 1.0.1 (2015-12-17 )
5
5
------------------
6
6
7
7
* Several optimizations have been made to reduce allocations when decoding a
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ VERSION=$( perl -MFile::Slurp::Tiny=read_file -MDateTime << EOF
6
+ use v5.16;
7
+ my \$ log = read_file(q{CHANGELOG.md});
8
+ \$ log =~ /\n(\d+\.\d+\.\d+) \((\d{4}-\d{2}-\d{2})\)\n/;
9
+ die 'Release time is not today!' unless DateTime->now->ymd eq \$ 2;
10
+ say \$ 1;
11
+ EOF
12
+ )
13
+
14
+ TAG=" v$VERSION "
15
+
16
+ if [ -n " $( git status --porcelain) " ]; then
17
+ echo " . is not clean." >&2
18
+ exit 1
19
+ fi
20
+
21
+ mvn versions:display-dependency-updates
22
+
23
+ read -e -p " Continue given above dependencies? (y/n) " SHOULD_CONTINUE
24
+
25
+ if [ " $SHOULD_CONTINUE " != " y" ]; then
26
+ echo " Aborting"
27
+ exit 1
28
+ fi
29
+
30
+ # could be combined with the primary build
31
+ mvn release:clean
32
+ mvn release:prepare -DreleaseVersion=" $VERSION " -Dtag=" $TAG "
33
+ mvn release:perform
34
+
35
+ read -e -p " Push to origin? " SHOULD_PUSH
36
+
37
+ if [ " $SHOULD_PUSH " != " y" ]; then
38
+ echo " Aborting"
39
+ exit 1
40
+ fi
41
+
42
+ git push
43
+ git push --tags
44
+
45
+ echo " Remember to do the release on https://oss.sonatype.org/!"
You can’t perform that action at this time.
0 commit comments