Groovy: import standard libraries
Import and use XML parsing
import groovy.xml.MarkupBuilder
def xml = new MarkupBuilder()
println(xml)
Date
Some classes are imported by default
d = new Date()
println(d)
See more examples with Groovy Date.
TRUE and FALSE
// import Boolean.FALSE // this does not work
import static Boolean.FALSE
assert !FALSE
println(!FALSE)
Check this out also on the Groovy page about structure
timestamp: 2019-05-07T16:30:01 tags:
- XML
- TRUE
- FALSE