Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to compile master with JDK 17 #201

Open
inglor opened this issue Apr 27, 2024 · 4 comments
Open

Failed to compile master with JDK 17 #201

inglor opened this issue Apr 27, 2024 · 4 comments

Comments

@inglor
Copy link

inglor commented Apr 27, 2024

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

  • Operating system: Arch Linux
  • OpenShift versions: N/A
  • Project Versions: master 9dc0a9913ea74a4fd8dd4b531f67d32d64b865ef

Steps to reproduce

Checkout and try to compile.

@tolleiv
Copy link

tolleiv commented May 21, 2024

This should be solved by #202 ? Using maven + JDK17 worked without issues.

@dosera
Copy link

dosera commented May 28, 2024

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
Copy link
Author

inglor commented May 28, 2024

@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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants