Updated build file to print test log information to debug travis issue.
@@ -49,6 +49,7 @@ test {
}
testLogging {
exceptionFormat = 'full'
+ events "started", "passed", "skipped", "failed"
}
}
@@ -120,10 +121,8 @@ uploadArchives {
repositories {
mavenDeployer {
- repository(url: "file://$buildDir/repos")
-
- /*
- beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
+ if (project.hasProperty("travis")) {
+ //beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
@@ -131,7 +130,10 @@ uploadArchives {
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
- }*/
+ }
+ } else {
+ repository(url: "file://$buildDir/repos")
+ }
pom.project {
name 'NATS Java Client'
