Merge pull request #11 from myrle-krantz/develop
minor improvements
diff --git a/library/src/main/java/io/mifos/anubis/security/SystemAuthenticator.java b/library/src/main/java/io/mifos/anubis/security/SystemAuthenticator.java
index 70ec3e7..faf2b57 100644
--- a/library/src/main/java/io/mifos/anubis/security/SystemAuthenticator.java
+++ b/library/src/main/java/io/mifos/anubis/security/SystemAuthenticator.java
@@ -87,10 +87,10 @@
}
catch (final JwtException e) {
logger.debug("token = {}", token);
- logger.info("System token for user {}, with key timestamp {} failed to authenticate. Exception was {}", user, keyTimestamp, e);
+ logger.info("System token for user {}, with key timestamp {} failed to authenticate. Exception was {}", user, keyTimestamp, e.getMessage());
throw AmitAuthenticationException.invalidToken();
} catch (final InvalidKeyTimestampException e) {
- logger.info("System token for user {}, with key timestamp {} failed to authenticate. Exception was {}", user, keyTimestamp, e);
+ logger.info("System token for user {}, with key timestamp {} failed to authenticate. Exception was {}", user, keyTimestamp, e.getMessage());
throw AmitAuthenticationException.invalidTokenKeyTimestamp("system", keyTimestamp);
}
}
diff --git a/shared.gradle b/shared.gradle
index cf32bdb..a5a7910 100644
--- a/shared.gradle
+++ b/shared.gradle
@@ -57,6 +57,7 @@
jar {
from sourceSets.main.allSource
+ duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
license {