Skip to content

Commit 1ed6ae2

Browse files
committed
Initial commit.
0 parents  commit 1ed6ae2

13 files changed

Lines changed: 406 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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Java Database Wrapper
2+
3+
Java wrapper for database various interfaces.
4+
5+
Child Packages:
6+
* java-db-mysql
7+
* java-db-mssql
8+
* java-db-android
9+

build.gradle

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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 Database Wrapper',
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+
events "passed", "skipped", "failed", "standardOut"
28+
showExceptions true
29+
exceptionFormat "full"
30+
showCauses true
31+
showStackTraces true
32+
33+
debug {
34+
events "started", "passed", "skipped", "failed", "standardOut", "standardError"
35+
exceptionFormat "full"
36+
}
37+
info.events = debug.events
38+
info.exceptionFormat = debug.exceptionFormat
39+
40+
afterSuite { desc, result ->
41+
if (! desc.parent) {
42+
def output = "Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)"
43+
def startItem = '| ', endItem = ' |'
44+
def repeatLength = startItem.length() + output.length() + endItem.length()
45+
println('\n' + ('-' * repeatLength) + '\n' + startItem + output + endItem + '\n' + ('-' * repeatLength))
46+
}
47+
}
48+
}
49+
}

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)