TAXII-Server icon indicating copy to clipboard operation
TAXII-Server copied to clipboard

Build requires Java 8

Open jstewart-lgscout opened this issue 6 years ago • 2 comments

Using Java 11 or Java 13, the build is not successful.

➜  TAXII-Server git:(master) ✗ ./gradlew build
> Task :kaptKotlin
Annotation processors discovery from compile classpath is deprecated.
Set 'kapt.includeCompileClasspath = false' to disable discovery.
Run the build with '--info' for more details.
e: /Users/jstewart/dev/TAXII-Server/build/tmp/kapt3/stubs/main/com/github/stephenott/stix/taxii/domain/RequestStatus.java:15: error: invalid method declaration; return type required
        RequestStatus() {
        ^
e: /Users/jstewart/dev/TAXII-Server/build/tmp/kapt3/stubs/main/com/github/stephenott/stix/taxii/domain/RequestStatus.java:27: error: invalid method declaration; return type required
        RequestStatus() {
        ^
w: [kapt] Incremental annotation processing requested, but support is disabled because the following processors are not incremental: javaslang.match.PatternsProcessor (NON_INCREMENTAL).
> Task :kaptKotlin FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':kaptKotlin'.
> Compilation error. See log for more details
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 35s
2 actionable tasks: 2 executed

jstewart-lgscout avatar Feb 21 '20 21:02 jstewart-lgscout

The build does succeed with Java 8

jstewart-lgscout avatar Feb 21 '20 21:02 jstewart-lgscout

Believed to be Caused by https://youtrack.jetbrains.com/issue/KT-33052

StephenOTT avatar Feb 21 '20 23:02 StephenOTT