Commit 7ba99986 by Dave Syer

Add optional/runtime to lombok

parent 27da0bc1
...@@ -127,7 +127,8 @@ ...@@ -127,7 +127,8 @@
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<!-- Only needed at compile time --> <!-- Only needed at compile time -->
<scope>provided</scope> <scope>compile</scope>
<optional>true</optional>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
......
...@@ -57,6 +57,7 @@ public class PreDecorationFilter extends ZuulFilter { ...@@ -57,6 +57,7 @@ public class PreDecorationFilter extends ZuulFilter {
if (location != null) { if (location != null) {
ctx.put("requestURI", route.getPath()); ctx.put("requestURI", route.getPath());
ctx.put("proxy", true);
if (location.startsWith("http:") || location.startsWith("https:")) { if (location.startsWith("http:") || location.startsWith("https:")) {
ctx.setRouteHost(getUrl(location)); ctx.setRouteHost(getUrl(location));
......
...@@ -81,7 +81,8 @@ ...@@ -81,7 +81,8 @@
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<!-- Only needed at compile time --> <!-- Only needed at compile time -->
<scope>provided</scope> <scope>compile</scope>
<optional>true</optional>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
......
...@@ -70,7 +70,8 @@ ...@@ -70,7 +70,8 @@
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<!-- Only needed at compile time --> <!-- Only needed at compile time -->
<scope>provided</scope> <scope>compile</scope>
<optional>true</optional>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
......
...@@ -46,7 +46,8 @@ ...@@ -46,7 +46,8 @@
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<!-- Only needed at compile time --> <!-- Only needed at compile time -->
<scope>provided</scope> <scope>compile</scope>
<optional>true</optional>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment