-
Notifications
You must be signed in to change notification settings - Fork 49
Development
- build project with
--parallel --configure-on-demand
- on multi-core machines it can decrease the build time by 20%+
In master ATM we have a version that supports Spring Cloud. There is a branch called "legacy" where we have the version that is not using Spring Cloud at all. If you want your feature to be present for applications that are using the legacy version of micro-infra-spring you'll have to apply your change also to that branch.
Why do I see in logs: "WARNING. It seems your JDK does not support strong encryption. Install Java Cryptography Extension (JCE) Unlimited Strength for Oracle JDK or use OpenJDK to have support for property decryption.
"?
Centralized configuration management requires strong cryptographic algorithms for encrypting keys. Install Java JCE US for Oracle JDK: for Java 7 and Java 8.
Please pay attention where the new jars are places. It should be $JAVA_HOME/jre/lib/security
(not directly in lib/security for JDK).
Alternatively you can use OpenJDK.
Why running tests in Idea fails with Exception in thread "org.spockframework.runtime.RunContext.stop()" java.lang.AbstractMethodError
?
Workaround. Locally change Spock dependencies for in build.gradle for micro-deps-spring-test-config from "org.spockframework:spock-core:$spock07Version"
to "org.spockframework:spock-core"
.
There should not be any problem with running tests from Idea anymore.
How can I install SNAPSHOT version to local repository to test with other project (e.g. boot-microservice)?
Gradle build uses maven-publish
plugin. To install current version into local Maven repository use:
./gradlew publishToMavenLocal
To get know which version will be installed use:
./gradlew currentVersion
or in short:
./gradlew cV
Note. Due to issue #17 in Axion to not override downloaded release version you should always have local commit before installing the SNAPSHOT version (uncommitted local changes do not count).