Groovy: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=TODO= <Font color=red>TODO Groovy basics: https://docs.gradle.org/current/userguide/writing_build_scripts.html#groovy-dsl-basics</font>")
 
No edit summary
Line 2: Line 2:


<Font color=red>TODO Groovy basics: https://docs.gradle.org/current/userguide/writing_build_scripts.html#groovy-dsl-basics</font>
<Font color=red>TODO Groovy basics: https://docs.gradle.org/current/userguide/writing_build_scripts.html#groovy-dsl-basics</font>
=Organizatorium=
Groovy has both double-quoted and single-quoted String literals. The main difference is that double-quoted String literals support String interpolation:
<syntaxhighlight lang='groovy'>
def x = 10
println "result is $x" // prints: result is 10
</syntaxhighlight>

Revision as of 21:27, 3 May 2018

TODO

TODO Groovy basics: https://docs.gradle.org/current/userguide/writing_build_scripts.html#groovy-dsl-basics

Organizatorium

Groovy has both double-quoted and single-quoted String literals. The main difference is that double-quoted String literals support String interpolation:

def x = 10
println "result is $x" // prints: result is 10