Skip to content

Commit ebb90e0

Browse files
committed
Initial commit.
0 parents  commit ebb90e0

14 files changed

Lines changed: 1110 additions & 0 deletions

File tree

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.gradle
2+
/local.properties
3+
.DS_Store
4+
/build
5+
bin
6+
out
7+
8+
.idea
9+
/*.iml
10+
tmp
11+

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Joshua Green
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Java Triple DES DUKPT Library
2+
3+
Implementation of the ANSI 3DES DUKPT standard: specified within Retail Financial Services Symmetric Key Management Part 1: Using Symmetric Techniques (ANSI X9.24-1:2009).
4+

build.gradle

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
group 'com.softwareverde'
2+
version '1.0.0'
3+
4+
apply plugin: 'java'
5+
6+
sourceCompatibility = 1.7
7+
8+
task makeJar(type: Jar) {
9+
manifest {
10+
attributes 'Implementation-Title': 'Java Triple DES DUKPT',
11+
'Implementation-Version': version
12+
}
13+
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
14+
with jar
15+
}
16+
17+
repositories {
18+
mavenCentral()
19+
}
20+
21+
dependencies {
22+
testCompile group: 'junit', name: 'junit', version: '4.11'
23+
}
24+
25+
tasks.withType(Test) {
26+
testLogging {
27+
// set options for log level LIFECYCLE
28+
events "passed", "skipped", "failed", "standardOut"
29+
showExceptions true
30+
exceptionFormat "full"
31+
showCauses true
32+
showStackTraces true
33+
34+
// set options for log level DEBUG and INFO
35+
debug {
36+
events "started", "passed", "skipped", "failed", "standardOut", "standardError"
37+
exceptionFormat "full"
38+
}
39+
info.events = debug.events
40+
info.exceptionFormat = debug.exceptionFormat
41+
42+
afterSuite { desc, result ->
43+
if (!desc.parent) { // will match the outermost suite
44+
def output = "Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)"
45+
def startItem = '| ', endItem = ' |'
46+
def repeatLength = startItem.length() + output.length() + endItem.length()
47+
println('\n' + ('-' * repeatLength) + '\n' + startItem + output + endItem + '\n' + ('-' * repeatLength))
48+
}
49+
}
50+
}
51+
}
52+

gradle/wrapper/gradle-wrapper.jar

52.3 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Wed Sep 21 21:28:06 EDT 2016
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.13-all.zip

gradlew

Lines changed: 164 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 90 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/clean.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
./gradlew clean
4+
5+
rm -rf out 2>/dev/null
6+

scripts/make-jar.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
rm -rf out/bin 2>/dev/null
4+
mkdir -p out/bin
5+
6+
./gradlew makeJar && cp $(ls -tr build/libs/*.jar | tail -1) out/bin/. && chmod 770 out/bin/*.jar
7+

0 commit comments

Comments
 (0)