Spring Boot Gradle Tomcat 8 -


the spring boot reference guide provides instructions upgrading tomcat 8 setting custom property in maven:

<properties>   <tomcat.version>8.0.3</tomcat.version> </properties> 

what equivalent way same in gradle build?

i have tried following no avail. stays on version 7.0.52 @ app startup.

buildscript {   ...       ext['tomcat.version'] = '8.0.3'   ... } 

gradle has no equivalent of "parent pom", have call out dependency explicitly. because it's groovy can programmatically, like:

configurations.all {   resolutionstrategy.eachdependency { dependencyresolvedetails details ->     if (details.requested.group == 'org.apache.tomcat.embed') {         details.useversion '8.0.3'     }   } }   

we could add support version properties spring boot gradle plugin (feel free open issue in github) have optional.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -