aerogear / keycloak-metrics-spi

Adds a Metrics Endpoint to Keycloak
Apache License 2.0
548 stars 156 forks source link

Failed to compile master with JDK 17 #201

Open inglor opened 5 months ago

inglor commented 5 months ago

Description

Compilation failed

Expected Behavior

Compilation is successful

Actual Behavior

./gradlew clean build
Downloading https://services.gradle.org/distributions/gradle-7.2-all.zip
..............10%...............20%...............30%...............40%...............50%...............60%...............70%...............80%...............90%...............100%
Starting a Gradle Daemon (subsequent builds will be faster)

> Task :compileJava
/home/inglor/workspace/junk/keycloak-metrics-spi/src/main/java/org/jboss/aerogear/keycloak/metrics/MetricsFilterProvider.java:8: error: package org.jboss.resteasy.reactive.server does not exist
import org.jboss.resteasy.reactive.server.ServerRequestFilter;
                                         ^
/home/inglor/workspace/junk/keycloak-metrics-spi/src/main/java/org/jboss/aerogear/keycloak/metrics/MetricsFilterProvider.java:9: error: package org.jboss.resteasy.reactive.server does not exist
import org.jboss.resteasy.reactive.server.ServerResponseFilter;
                                         ^
/home/inglor/workspace/junk/keycloak-metrics-spi/src/main/java/org/jboss/aerogear/keycloak/metrics/MetricsFilterProvider.java:18: error: cannot find symbol
    @ServerRequestFilter(preMatching = true)
     ^
  symbol:   class ServerRequestFilter
  location: class MetricsFilterProvider
/home/inglor/workspace/junk/keycloak-metrics-spi/src/main/java/org/jboss/aerogear/keycloak/metrics/MetricsFilterProvider.java:24: error: cannot find symbol
    @ServerResponseFilter
     ^
  symbol:   class ServerResponseFilter
  location: class MetricsFilterProvider
4 errors

> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 19s
2 actionable tasks: 1 executed, 1 up-to-date

Environment

Steps to reproduce

Checkout and try to compile.

tolleiv commented 4 months ago

This should be solved by https://github.com/aerogear/keycloak-metrics-spi/pull/202 ? Using maven + JDK17 worked without issues.

dosera commented 4 months ago

there is also #189 (#202 seems to be a duplicate of that) which just isn't merged. Anybody an idea what's going on?

inglor commented 4 months ago

@dosera it does look a duplicate - I guess I failed to find it when I raised the other PR :). In any case the maintainer seems AFK.

jannisiking commented 3 months ago

Any update on this? Would be happy to use the gradle build of the repo on version 5.0.0