Skip to content

Commit

Permalink
Add javadoc and sources
Browse files Browse the repository at this point in the history
Signed-off-by: Erin Schnabel <ebullient@users.noreply.github.com>
  • Loading branch information
ebullient committed Jul 22, 2016
1 parent d054e87 commit eb4a368
Show file tree
Hide file tree
Showing 12 changed files with 136 additions and 71 deletions.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space

[*.md]
indent_size = 2

[*.java]
indent_size = 4

[*.{html,js,rb,css,xml}]
indent_size = 2
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ signing and verifying requests that use JWTs or HMACs
We use jitpack to build this library, which means you can direct maven or gradle directly to our github releases to satisfy dependencies.

1. include jitpack.io in your list of repositories:
* In maven:
* In maven:
```
<repositories>
<repository>
Expand All @@ -17,14 +17,22 @@ We use jitpack to build this library, which means you can direct maven or gradle
</repository>
</repositories>
```
* In gradle:
* In gradle:
```
repositories {
maven { url "https://jitpack.io" }
}
```
2. Include version of the library in your dependencies:
* In gradle:
2. Include version of the library in your dependencies:
* In maven:
```
<dependency>
<groupId>com.github.gameontext</groupId>
<artifactId>signed</artifactId>
<version>v1.0.2</version>
</dependency>
```
* In gradle:
```
dependencies {
compile 'com.github.gameontext:signed:v1.0.2'
Expand All @@ -38,5 +46,3 @@ We use jitpack to build this library, which means you can direct maven or gradle
SignedClientRequestFilter apikeyFilter = new SignedClientRequestFilter(userid, secret);
client.register(apikeyFilter);
```


4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
allprojects {
group = 'org.gameon'
version = '1.0.1'
group = 'org.gameontext'
version = '1.0.2'

repositories {
mavenCentral()
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Jul 22 14:06:35 EDT 2016
#Fri Jul 22 14:46:38 EDT 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip
46 changes: 21 additions & 25 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,12 @@
##
##############################################################################

# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""

APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"

Expand All @@ -48,7 +30,6 @@ die ( ) {
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
Expand All @@ -59,11 +40,26 @@ case "`uname`" in
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac

# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null

CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar

# Determine the Java command to use to start the JVM.
Expand All @@ -89,7 +85,7 @@ location of your Java installation."
fi

# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
Expand Down
8 changes: 4 additions & 4 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

Expand Down Expand Up @@ -46,7 +46,7 @@ echo location of your Java installation.
goto fail

:init
@rem Get command-line arguments, handling Windows variants
@rem Get command-line arguments, handling Windowz variants

if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_args
Expand Down
24 changes: 23 additions & 1 deletion org.gameontext.signed/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,29 @@ dependencies {
compile 'io.jsonwebtoken:jjwt:0.5.1'
}

jar {
baseName 'org.gameontext.signed'
}

javadoc {
options.memberLevel = JavadocMemberLevel.PUBLIC
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives sourcesJar
archives javadocJar
}

eclipse.wtp.facet {
// Clear default facets to work around bug where you get duplicates including wst 2.4
facets = []
Expand All @@ -27,4 +50,3 @@ eclipse.jdt.file {
it['org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch'] = 'true'
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ public class SignedJWTValidator {

/**
* Obtain the key we'll use to sign the jwts we issue.
*
* @throws IOException
* if there are any issues with the keystore processing.
*/
*/
@PostConstruct
protected void getKeyStoreInfo() {
try {
Expand Down
Loading

0 comments on commit eb4a368

Please sign in to comment.