Compile-time checks for Axon Framework created as extension for Google Error Prone.
Running this plugin (together with error-prone) will help you preventing common errors while using Axon Framework by giving errors at compile time.
Method initialResult() is not called but updates() is called. For more info see; wiki
To use gradle with error prone you need the Gradle ErrorProne Plugin
plugins {
id "net.ltgt.errorprone" version "2.0.2"
}
...
repositories {
maven {
url 'https://jitpack.io'
content {
includeGroup 'com.github.maartenn'
}
}
}
...
dependencies {
errorprone 'com.google.errorprone:error_prone_core:2.10.0'
errorprone 'com.github.maartenn:axon-errorprone:0.0.5'
}
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
...
<dependency>
<groupId>com.github.maartenn</groupId>
<artifactId>axon-errorprone</artifactId>
<version>0.0.5</version>
</dependency>