Skip to content

Commit

Permalink
Merge branch 'master' of github.com:p6spy/p6spy
Browse files Browse the repository at this point in the history
  • Loading branch information
typekpb committed Jan 6, 2018
2 parents 7f8b5b5 + f67320a commit f9f852e
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 31 deletions.
38 changes: 19 additions & 19 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
id 'distribution'

id 'com.fizzpod.sweeney' version '2.1.2'
id 'com.github.hierynomus.license' version '0.14.0'
id 'com.github.hierynomus.license' version '0.14.0'
id 'com.github.johnrengelman.shadow' version '2.0.1'
// to publish code coverage to coveralls
// ./gradlew jacocoTestReport coveralls
Expand Down Expand Up @@ -60,7 +60,7 @@ dependencies {

// for providing misc *-nodep artifacts, please note that order matters here
// even if slf4j complains about multiple implementations on classpath, it takes the 1.st one
// and as we use log4j in tests => bridge needs to be the 1.st one specified
// and as we use log4j in tests => bridge needs to be the 1.st one specified
compileOnly 'org.slf4j:slf4j-api:1.7.7'
compileOnly 'org.slf4j:slf4j-log4j12:1.7.7'
compileOnly 'log4j:log4j:1.2.17'
Expand All @@ -72,7 +72,7 @@ dependencies {
compileOnly 'org.apache.logging.log4j:log4j-api:2.0-rc1'
compileOnly 'org.apache.logging.log4j:log4j-core:2.0-rc1'

compileOnly 'ch.qos.logback:logback-classic:1.1.2'
compileOnly 'ch.qos.logback:logback-classic:1.1.2'
compileOnly 'ch.qos.logback:logback-core:1.1.2'

testCompile 'junit:junit:4.12'
Expand Down Expand Up @@ -130,8 +130,8 @@ test {
systemProperty 'user.country', 'US'
systemProperty 'derby.stream.error.file', 'target/derby.log'
systemProperty 'DB', envDB
// to enable remote JMX testing,

// to enable remote JMX testing,
// see: http://stackoverflow.com/questions/5552960/how-to-connect-to-a-java-program-on-localhost-jvm-using-jmx
// to workaround oracle timezone issue: http://stackoverflow.com/questions/9156379/ora-01882-timezone-region-not-found
// to get rid of DB2 traces => -Ddb2.jcc.override.traceLevel=0
Expand All @@ -156,9 +156,9 @@ task shadowLog4jJar(type: ShadowJar) {
from sourceSets.main.output //tells the task to include the project code
configurations = [ project.configurations.compileOnly ]
dependencies {
include(dependency( group: 'log4j', name: 'log4j'))
include(dependency( group: 'org.slf4j', name: 'slf4j-api'))
include(dependency( group: 'org.slf4j', name: 'slf4j-log4j'))
include(dependency( group: 'log4j', name: 'log4j'))
include(dependency( group: 'org.slf4j', name: 'slf4j-api'))
include(dependency( group: 'org.slf4j', name: 'slf4j-log4j'))
}
}

Expand All @@ -167,10 +167,10 @@ task shadowLog4j2Jar(type: ShadowJar) {
from sourceSets.main.output //tells the task to include the project code
configurations = [ project.configurations.compileOnly ]
dependencies {
include(dependency( group: 'org.slf4j', name: 'slf4j-api'))
include(dependency( group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl'))
include(dependency( group: 'org.apache.logging.log4j', name: 'log4j-api'))
include(dependency( group: 'org.apache.logging.log4j', name: 'log4j-core'))
include(dependency( group: 'org.slf4j', name: 'slf4j-api'))
include(dependency( group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl'))
include(dependency( group: 'org.apache.logging.log4j', name: 'log4j-api'))
include(dependency( group: 'org.apache.logging.log4j', name: 'log4j-core'))
}
}

Expand All @@ -179,9 +179,9 @@ task shadowLogbackJar(type: ShadowJar) {
from sourceSets.main.output //tells the task to include the project code
configurations = [ project.configurations.compileOnly ]
dependencies {
include(dependency( group: 'org.slf4j', name: 'slf4j-api'))
include(dependency( group: 'ch.qos.logback', name: 'logback-classic'))
include(dependency( group: 'ch.qos.logback', name: 'logback-core'))
include(dependency( group: 'org.slf4j', name: 'slf4j-api'))
include(dependency( group: 'ch.qos.logback', name: 'logback-classic'))
include(dependency( group: 'ch.qos.logback', name: 'logback-core'))
}
}

Expand Down Expand Up @@ -309,9 +309,9 @@ artifactory {
if (project.version.endsWith("-SNAPSHOT")) {
repoKey = 'oss-snapshot-local'
} else {
repoKey = 'oss-release-local'
repoKey = 'oss-release-local'
}

username = System.getenv('BINTRAY_USER')
password = System.getenv('BINTRAY_API_KEY')
}
Expand Down Expand Up @@ -345,7 +345,7 @@ bintray {
released = new Date()
name = project.version
vcsTag = "p6spy-${project.version}"

// Optional configuration for Maven Central sync of the version
mavenCentralSync {
sync = true //[Default: true] Determines whether to sync the version to Maven Central.
Expand All @@ -358,5 +358,5 @@ bintray {
}

task wrapper(type: Wrapper, description: 'Gradle Wrapper task') {
gradleVersion = '4.1'
gradleVersion = '4.4'
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Tue Aug 08 17:50:55 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-bin.zip
23 changes: 13 additions & 10 deletions gradlew
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh

##############################################################################
##
Expand Down Expand Up @@ -33,11 +33,11 @@ DEFAULT_JVM_OPTS=""
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"

warn ( ) {
warn () {
echo "$*"
}

die ( ) {
die () {
echo
echo "$*"
echo
Expand Down Expand Up @@ -154,16 +154,19 @@ if $cygwin ; then
esac
fi

# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
function splitJvmOpts() {
JVM_OPTS=("$@")
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
APP_ARGS=$(save "$@")

# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"

# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [[ "$(uname)" == "Darwin" ]] && [[ "$HOME" == "$PWD" ]]; then
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi

exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
exec "$JAVACMD" "$@"

0 comments on commit f9f852e

Please sign in to comment.