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

Plugin setting invalid spring active profile when using default bootRunLocal task #24

Open
gregwhitaker opened this issue Jun 23, 2021 · 0 comments

Comments

@gregwhitaker
Copy link
Contributor

Describe the bug
The default configuration of the bootRunLocal command is setting the profile with square brackets around the name ie. [local]. This results in the profile name not matching in spring and causing misconfiguration of the application.

There is currently a workaround for this by specifying the profile in the localstack springboot configuration extension like so:

localstack {
    springboot {
        profiles = [ 'local' ]
    }
}

To Reproduce
Steps to reproduce the behavior:

  1. Apply the plugin to a spring boot application.
  2. Start the application using bootRunLocal
  3. You will see spring log the active profile as [local] instead of local.

Expected behavior
The plugin should be setting the spring active profile to local, not [local].

Versions
Add library versions to help reproduce the bug.

  • Plugin: 1.0.0
  • Gradle: 7.1
  • Docker: 20.10.6
  • Docker Compose: 1.29.1
  • Spring Boot: 2.5.1
gregwhitaker added a commit to gregwhitaker/gradle-localstack that referenced this issue Jul 1, 2021
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

1 participant