This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.devnull.zuul.web.config | |
import org.springframework.web.context.support.ServletContextResource | |
import javax.servlet.ServletContext | |
class JstlFunctions { | |
static String getApplicationVersion(ServletContext context) { | |
def mavenProps = new ServletContextResource(context, "/META-INF/maven/org.devnull/zuul-web/pom.properties") | |
if (mavenProps.exists()) { |