-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/1.2.0' into master
- Loading branch information
Showing
38 changed files
with
354 additions
and
147 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,6 @@ build/ | |
|
||
### VS Code ### | ||
.vscode/ | ||
|
||
### Custom Ignored ### | ||
/.travis/**.asc |
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/bin/bash | ||
# expects variables to be set: | ||
# - OSSRH_USERNAME | ||
# - OSSRH_PASSWORD | ||
# - GPG_KEY_NAME | ||
# - GPG_PASSPHRASE | ||
# expects file to exist: | ||
# - .travis/gpg.asc | ||
|
||
set -e | ||
|
||
# Check the variables are set | ||
if [ -z "$OSSRH_USERNAME" ]; then | ||
echo "[Deployment] ERROR - Missing environment value: OSSRH_USERNAME" >&2 | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$OSSRH_PASSWORD" ]; then | ||
echo "[Deployment] ERROR - Missing environment value: OSSRH_PASSWORD" >&2 | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$GPG_KEY_NAME" ]; then | ||
echo "[Deployment] ERROR - Missing environment value: GPG_KEY_NAME" >&2 | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$GPG_PASSPHRASE" ]; then | ||
echo "[Deployment] ERROR - Missing environment value: GPG_PASSPHRASE" >&2 | ||
exit 1 | ||
fi | ||
|
||
echo "[Deployment] INFO - All expected variables are set. OSSRH_USERNAME, OSSRH_PASSWORD, GPG_KEY_NAME and GPG_PASSPHRASE" | ||
|
||
# If decrypted file .travis/gpg.asc not exists | ||
if [ ! -f "${TRAVIS_BUILD_DIR}/.travis/gpg.asc" ]; then | ||
echo "[Deployment] ERROR - Missing decrypted file: .travis/gpg.asc" >&2 | ||
exit 1 | ||
else | ||
echo "[Deployment] INFO - Found decrypted file: .travis/gpg.asc" | ||
fi | ||
|
||
# Prepare the local keyring (requires travis to have decrypted the file beforehand) | ||
gpg --fast-import .travis/gpg.asc | ||
|
||
# If `TRAVIS_TAG` string is not empty | ||
if [ -n "$TRAVIS_TAG" ]; then | ||
echo "[Deployment] INFO - Maven deploy on a tag -> set pom.xml <version> to TRAVIS_TAG: $TRAVIS_TAG" | ||
mvn --settings "${TRAVIS_BUILD_DIR}/.travis/maven-settings.xml" org.codehaus.mojo:versions-maven-plugin:2.7:set -DnewVersion=$TRAVIS_TAG 1>/dev/null 2>/dev/null | ||
else | ||
echo "[Deployment] INFO - Maven deploy not on a tag -> keep snapshot version in pom.xml" | ||
fi | ||
|
||
# Run the maven deploy steps | ||
mvn deploy -P publish -DskipTests=true --quiet --settings "${TRAVIS_BUILD_DIR}/.travis/maven-settings.xml" |
Binary file not shown.
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,4 @@ | ||
#!/bin/bash | ||
|
||
# Run the maven install | ||
./mvnw clean install -Dmaven.javadoc.skip=true -Dgpg.skip=true --quiet --batch-mode --show-version |
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,26 @@ | ||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 | ||
https://maven.apache.org/xsd/settings-1.0.0.xsd"> | ||
<servers> | ||
<server> | ||
<id>ossrh</id> | ||
<username>${env.OSSRH_USERNAME}</username> | ||
<password>${env.OSSRH_PASSWORD}</password> | ||
</server> | ||
</servers> | ||
|
||
<profiles> | ||
<profile> | ||
<id>ossrh</id> | ||
<activation> | ||
<activeByDefault>true</activeByDefault> | ||
</activation> | ||
<properties> | ||
<gpg.executable>gpg</gpg.executable> | ||
<gpg.keyname>${env.GPG_KEY_NAME}</gpg.keyname> | ||
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase> | ||
</properties> | ||
</profile> | ||
</profiles> | ||
</settings> |
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
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
2 changes: 1 addition & 1 deletion
2
...p/MediaStreamingSampleAppApplication.java → ...p/MediaStreamingSampleAppApplication.java
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
7 changes: 5 additions & 2 deletions
7
media-streaming-sample-app/src/main/resources/application.yml
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,7 +1,10 @@ | ||
media-streaming: | ||
video-directory-on-file-system: 'C:\\Users\\Johnny\\Videos\\Mine' | ||
video-directory-on-file-system: '/Users/johnny/Movies/Mine' | ||
|
||
# Configure logging level of Media Streaming | ||
logging: | ||
level: | ||
com.jmframework.boot.mediastreamingspringbootautoconfigure: DEBUG | ||
com.github.johnnymillergh.boot.mediastreamingspringbootautoconfigure: DEBUG | ||
|
||
server: | ||
shutdown: graceful |
4 changes: 2 additions & 2 deletions
4
...iaStreamingSampleAppApplicationTests.java → ...iaStreamingSampleAppApplicationTests.java
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
18 changes: 9 additions & 9 deletions
18
...tion/MediaStreamingAutoConfiguration.java → ...tion/MediaStreamingAutoConfiguration.java
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
2 changes: 1 addition & 1 deletion
2
...nfiguration/MediaStreamingProperties.java → ...nfiguration/MediaStreamingProperties.java
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
Oops, something went wrong.