diff --git a/build.gradle b/build.gradle index 040afda..09e7d61 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ subprojects { sourceCompatibility = 1.7 group = 'ch.dissem.jabit' - version = '1.0.1-SNAPSHOT' + version = '1.0.1' ext.isReleaseVersion = !version.endsWith("SNAPSHOT") @@ -35,7 +35,7 @@ subprojects { } signing { - required { isReleaseVersion } + required { isReleaseVersion && project.getProperties().get("signing.keyId")?.length() > 0 } sign configurations.archives } diff --git a/demo/build.gradle b/demo/build.gradle index 2ab6363..d87b0f3 100644 --- a/demo/build.gradle +++ b/demo/build.gradle @@ -16,6 +16,8 @@ uploadArchives { sourceCompatibility = 1.8 +test.enabled = Boolean.valueOf(systemTestsEnabled) + task fatCapsule(type: FatCapsule) { applicationClass 'ch.dissem.bitmessage.demo.Main' } diff --git a/demo/src/test/java/ch/dissem/bitmessage/SystemTest.java b/demo/src/test/java/ch/dissem/bitmessage/SystemTest.java index fd73dcf..1309336 100644 --- a/demo/src/test/java/ch/dissem/bitmessage/SystemTest.java +++ b/demo/src/test/java/ch/dissem/bitmessage/SystemTest.java @@ -6,7 +6,6 @@ import ch.dissem.bitmessage.entity.Plaintext; import ch.dissem.bitmessage.networking.DefaultNetworkHandler; import ch.dissem.bitmessage.repository.*; import ch.dissem.bitmessage.utils.TTL; -import ch.dissem.bitmessage.utils.UnixTime; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; @@ -78,7 +77,7 @@ public class SystemTest { String originalMessage = UUID.randomUUID().toString(); alice.send(aliceIdentity, new BitmessageAddress(bobIdentity.getAddress()), "Subject", originalMessage); - Plaintext plaintext = bobListener.get(5, TimeUnit.MINUTES); + Plaintext plaintext = bobListener.get(15, TimeUnit.MINUTES); assertThat(plaintext.getText(), equalTo(originalMessage)); } diff --git a/gradle.properties b/gradle.properties index eb6ed30..bb8beb4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,3 +8,4 @@ signing.password= ossrhUsername= ossrhPassword= +systemTestsEnabled=false \ No newline at end of file