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

Gradle plugin: use full URI for configuration source locations #36803

Merged
merged 1 commit into from
Nov 2, 2023

Commits on Oct 31, 2023

  1. Gradle plugin: use full URI for configuration source locations

    `io.quarkus.gradle.tasks.EffectiveConfig.CombinedConfigSourceProvider` passes only the "file extension" (e.g. `application.properties`) down to `io.smallrye.config.AbstractLocationConfigSourceLoader#loadConfigSources(java.lang.String[], int, java.lang.ClassLoader)`, which may let that function behave wrong and try to for example access an `application.properties` in the wrong location. This can be reproduced by placing an `application.properties` file in the project directory of a Gradle project that uses the Quarkus Gradle plugin.
    
    This change fixes this behavior by passing down the correct locations as the `String` representation of the resource URIs, instead of just the "file extensions".
    
    Fixes quarkusio#36767
    snazy committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    a1f3057 View commit details
    Browse the repository at this point in the history