-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add semantic versioning - provide PATCH number to version - remove jar version to reuse standard version - make both Procfile and run.sh to run jar with * - version agnostic - add app.json data
- Loading branch information
Showing
7 changed files
with
39 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
web: java $JAVA_OPTS -jar build/libs/jalgoarena-auth-1.0.jar --spring.profiles.active=heroku | ||
web: java -jar build/libs/jalgoarena-auth-*.jar --spring.profiles.active=heroku |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "JAlgoArena Auth Service", | ||
"description": "JAlgoArena AuthService", | ||
"website": "https://github.com/spolnik/jalgoarena-auth", | ||
"success_url": "/health" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,31 @@ | ||
//noinspection GroovyAssignabilityCheck | ||
version = new ProjectVersion( | ||
'1', '0', System.env.TRAVIS_BUILD_NUMBER | ||
'1', '0', '2', System.env.TRAVIS_BUILD_NUMBER | ||
) | ||
|
||
println "Version number: " + version | ||
|
||
/** | ||
* Define the version (depends on branch and build number) | ||
*/ | ||
class ProjectVersion { | ||
String major | ||
String minor | ||
String patch | ||
String build | ||
|
||
ProjectVersion(String major, String minor, String build) { | ||
ProjectVersion(String major, String minor, String patch, String build) { | ||
this.major = major | ||
this.minor = minor | ||
this.patch = patch | ||
this.build = build | ||
} | ||
|
||
@Override | ||
String toString() { | ||
String fullVersion = "$major.$minor" | ||
String fullVersion = "$major.$minor.$patch" | ||
|
||
if (build) { | ||
fullVersion += ".$build" | ||
} else { | ||
fullVersion += "-SNAPSHOT" | ||
} | ||
|
||
fullVersion | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
EUREKA_URL=http://localhost:5000/eureka/ | ||
java -Dserver.port=9999 -jar jalgoarena-auth-*.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters