@@ -54,7 +54,7 @@ particular Groovy methods decorating JDK 8 APIs might be added.
54
54
55
55
A major highlight for Groovy 2.3 is the introduction of the *concept of traits*.
56
56
57
- link:http://docs.groovy-lang.org/latest /html/documentation/core-traits.html[Traits]
57
+ link:{DOCS_BASEURL} /html/documentation/core-traits.html[Traits]
58
58
are reusable components of behavior that your classes can implement, and
59
59
are an additional Object-Oriented concept alongside classes and
60
60
interfaces.
@@ -192,7 +192,7 @@ assert na.quack() == 'Quack!'
192
192
----
193
193
194
194
You can find more information on traits in the
195
- exhaustive link:http://docs.groovy-lang.org/latest /html/documentation/core-traits.html[traits documentation].
195
+ exhaustive link:{DOCS_BASEURL} /html/documentation/core-traits.html[traits documentation].
196
196
197
197
[[Groovy2.3releasenotes-NewandupdatedASTtransformations]]
198
198
== New and updated AST transformations
@@ -271,7 +271,7 @@ assert person.age == 21
271
271
-----
272
272
273
273
You can have a look at
274
- the link:http://docs.groovy-lang.org/latest /html/documentation/core-metaprogramming.html#xform-Builder[@Builder documentation]
274
+ the link:{DOCS_BASEURL} /html/documentation/core-metaprogramming.html#xform-Builder[@Builder documentation]
275
275
for the other builder variants.
276
276
277
277
[[Groovy2.3releasenotes-Sortable]]
@@ -310,7 +310,7 @@ Additionally, you can define included / excluded fields, access
310
310
individual field comparators with methods like `comparatorByFirst()`.
311
311
312
312
More details on
313
- the http://docs.groovy-lang.org/latest /html/documentation/core-metaprogramming.html#xform-Sortable[@Sortable documentation] page.
313
+ the {DOCS_BASEURL} /html/documentation/core-metaprogramming.html#xform-Sortable[@Sortable documentation] page.
314
314
315
315
[[Groovy2.3releasenotes-SourceURI]]
316
316
==== @SourceURI
@@ -363,7 +363,7 @@ the name and parameter types expressed in an interface type
363
363
[[Groovy2.3releasenotes-BaseScriptclassimprovements]]
364
364
==== @BaseScript class improvements
365
365
366
- http://docs.groovy-lang.org/latest /html/gapi/groovy/transform/BaseScript.html[@BaseScript]
366
+ {DOCS_BASEURL} /html/gapi/groovy/transform/BaseScript.html[@BaseScript]
367
367
is a fairly recent addition in Groovy, and it allowed to annotate a
368
368
variable in your script to instruct the compiler to use a particular
369
369
base script class for this script. Now we have another notation which is
@@ -470,9 +470,9 @@ level as competing libraries.
470
470
Beside the performance improvements of the JSON module, other updates
471
471
have taken place.
472
472
473
- With link:http://docs.groovy-lang.org/latest /html/gapi/groovy/json/JsonSlurper.html[JsonSlurper],
473
+ With link:{DOCS_BASEURL} /html/gapi/groovy/json/JsonSlurper.html[JsonSlurper],
474
474
you’ll be able to set
475
- different link:http://docs.groovy-lang.org/latest /html/gapi/groovy/json/JsonParserType.html[parser types]
475
+ different link:{DOCS_BASEURL} /html/gapi/groovy/json/JsonParserType.html[parser types]
476
476
depending on the kind of input you wish to parse, particularly if
477
477
you know the size of the payload you expect to parse, or whether you
478
478
want a more tolerant parser which accepts elements like comments which
@@ -516,7 +516,7 @@ give the type of the parameter, but it’s no longer required:
516
516
517
517
In the signature of your methods taking closures as arguments, you’ll
518
518
also be able to annotate the closure parameter
519
- with link:http://docs.groovy-lang.org/latest /html/gapi/groovy/transform/stc/ClosureParams.html[@ClosureParams]
519
+ with link:{DOCS_BASEURL} /html/gapi/groovy/transform/stc/ClosureParams.html[@ClosureParams]
520
520
to give additional hints to the type checker to infer the type of the
521
521
parameters passed to your closure.
522
522
@@ -534,7 +534,7 @@ internationalization, includes, as well as proposing type checked
534
534
templates and models.
535
535
536
536
More details about the
537
- new link:http://docs.groovy-lang.org/latest /html/documentation/markup-template-engine.html[Markup template engine]
537
+ new link:{DOCS_BASEURL} /html/documentation/markup-template-engine.html[Markup template engine]
538
538
in the documentation, as well as in Cédric’s link:http://melix.github.io/blog/[blog], if you want to learn more
539
539
about the "behind the scenes" stories!
540
540
@@ -624,7 +624,7 @@ compiled.
624
624
== JUnit 4 GroovyAssert class
625
625
626
626
The
627
- venerable link:http://docs.groovy-lang.org/latest /html/gapi/groovy/util/GroovyTestCase.html[GroovyTestCase]
627
+ venerable link:{DOCS_BASEURL} /html/gapi/groovy/util/GroovyTestCase.html[GroovyTestCase]
628
628
(JUnit 3 based approach) has often been used as a base class for your
629
629
test classes — unless you’ve been using
630
630
the link:http://www.spockframework.org/[Spock testing framework], of course.
@@ -633,7 +633,7 @@ your own classes, but must derive from `GroovyTestCase` to benefit from
633
633
the additional assertion methods.
634
634
635
635
In earlier versions of Groovy we introduced the JUnit
636
- 4-friendly link:http://docs.groovy-lang.org/latest /html/gapi/groovy/util/GroovyAssert.html[GroovyAssert],
636
+ 4-friendly link:{DOCS_BASEURL} /html/gapi/groovy/util/GroovyAssert.html[GroovyAssert],
637
637
which is a convenient class offering the usual assertion methods of
638
638
`GroovyTestCase`, but in the form of static methods that you can static
639
639
import in your test class. In Groovy 2.3 we’ve enriched `GroovyAssert`
@@ -736,7 +736,7 @@ with link:http://jira.codehaus.org/browse/GROOVY-6459[GROOVY-6459].
736
736
=== New documentation
737
737
738
738
We are still working on the
739
- brand link:http://docs.groovy-lang.org/docs/latest /html/documentation/[new documentation] for Groovy
739
+ brand link:{DOCS_BASEURL} /html/documentation/[new documentation] for Groovy
740
740
(in Asciidoc(tor) format), so you can already
741
741
have a glimpse at what’s already covered or not.
742
742
@@ -767,7 +767,7 @@ documentation, showing the methods the Groovy library adds on top of the
767
767
JDK classes.
768
768
769
769
Please also have a look at the
770
- new link:http://docs.groovy-lang.org/latest /html/groovy-jdk/[restyled GDK documentation].
770
+ new link:{DOCS_BASEURL} /html/groovy-jdk/[restyled GDK documentation].
771
771
772
772
[[Groovy2.3releasenotes-Dependencyupgrades]]
773
773
== Dependency upgrades
0 commit comments