Upgrade to Groovy 3.0.7

See gh-24946
This commit is contained in:
dreis2211
2021-01-20 19:18:00 +01:00
committed by Andy Wilkinson
parent a4919a047e
commit d4eccb7715
6 changed files with 25 additions and 22 deletions

View File

@@ -1,7 +1,6 @@
package org.test
@Grab("org.codehaus.groovy.modules.http-builder:http-builder:0.5.2") // This one just to test dependency resolution
import groovyx.net.http.*
import org.springframework.web.client.RestTemplate;
@Controller
class Example implements CommandLineRunner {
@@ -17,7 +16,7 @@ class Example implements CommandLineRunner {
void run(String... args) {
def port = context.webServer.port
def world = new RESTClient("http://localhost:" + port).get(path:"/").data.text
def world = new RestTemplate().getForObject("http://localhost:" + port + "/", String.class);
print "Hello " + world
}