Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

Gradle and Boot Dashboard #59

Closed
Blacktiger opened this issue Jun 17, 2016 · 2 comments
Closed

Gradle and Boot Dashboard #59

Blacktiger opened this issue Jun 17, 2016 · 2 comments

Comments

@Blacktiger
Copy link

I have a spring boot project with Actuator installed and I wanted to setup the info endpoint to have some properties from a gradle file. So I configured gradle to processResources by adding this to my build.gradle.

processResources {
    expand(project.properties)
}

Then I changed my bootstrap.yml to use placeholders for the appropriate gradle.properties like so.

info:
  build:
    name: ${name}

Now I'm unable to run the application via the Boot Dashboard. It looks to me like the processResources isn't being run against whatever Boot Dashboard selects to generate the artifact to run. The exception I get when the application is run would indicate that Spring is trying to handle the replacement instead of Gradle already having done the replacement.

Could not resolve placeholder 'name' in string value "${name}"

I'm not sure if this is the right place to report this issue, maybe it's a bug in the Gradle STS and Buildship plugins? I've tried both and neither of them make a difference.

@martinlippert
Copy link
Contributor

How do you run the project from STS or Eclipse (when not starting it from the boot dashboard)?

@Blacktiger
Copy link
Author

I've tried running via the Spring Boot Dashboard, and as a Java application. I did some additional research and it sounds to me like this is a problem with the Gradle plugins not the STS dashboard itself.

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

No branches or pull requests

2 participants