Skip to content

Commit

Permalink
Update release + tool for making releases easy
Browse files Browse the repository at this point in the history
  • Loading branch information
pawandubey committed Nov 27, 2017
1 parent 2ba26c1 commit c73fb89
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="src/test/java"/>
<classpathentry kind="output" path="bin"/>
</classpath>
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ hs_err_pid*
# Idea project files
*.iml
.idea/
/bin/
17 changes: 17 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>griffin</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
13 changes: 13 additions & 0 deletions make-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

#build project
mvn clean install

#copy generated jar to the release directory
cp target/griffin.jar release/

#zip the contents of release directory
zip -r griffin-$(git tag -l | tail -n 1).zip release

#remove the copied jar from release
rm release/griffin.jar
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.pawandubey</groupId>
<artifactId>griffin</artifactId>
<version>0.2.1</version>
<version>0.2.2</version>
<name>griffin</name>
<url>http://github.com/pawandubey/griffin</url>
<licenses>
Expand Down
4 changes: 4 additions & 0 deletions release/bin/griffin
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
EXEC_LOC="`dirname "$0"`"
EXEC_PARENT="`dirname $EXEC_LOC`"
java -jar ${EXEC_PARENT}/griffin.jar $@
2 changes: 2 additions & 0 deletions release/bin/griffin.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
java -jar "%~dp0\..\griffin.jar" %*
Binary file added release/scaffold.zip
Binary file not shown.

0 comments on commit c73fb89

Please sign in to comment.