Skip to content

Commit 12bc6b7

Browse files
committed
Prepare for release 3.0.5
1 parent 5c88256 commit 12bc6b7

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Apply the `nu.studer.rocker` plugin to your Gradle project.
6868

6969
```groovy
7070
plugins {
71-
id 'nu.studer.rocker' version '3.0.4'
71+
id 'nu.studer.rocker' version '3.0.5'
7272
}
7373
```
7474

@@ -81,12 +81,12 @@ This is a sample configuration:
8181

8282
```groovy
8383
plugins {
84-
id 'nu.studer.rocker' version '3.0.4'
84+
id 'nu.studer.rocker' version '3.0.5'
8585
id 'java'
8686
}
8787
8888
repositories {
89-
jcenter()
89+
mavenCentral()
9090
}
9191
9292
rocker {
@@ -119,6 +119,7 @@ Since we declared to use version _1.3.0_ of the Rocker template engine, all Rock
119119
For each named configuration, the following options can be configured:
120120

121121
* `optimize` (boolean): if _true_, hot reload support is removed from the generated templates, task output becomes cacheable
122+
* `discardLogicWhitespace` (boolean): if _true_, discards lines consisting of only logic/block
122123
* `extendsClass` (String): the class that all template implementations should extend
123124
* `extendsModelClass` (String): the class that all template models should extend
124125
* `javaVersion` (String): the Java version that the templates' compile & runtime must be compatible with
@@ -142,6 +143,8 @@ See the self-contained example build scripts for the [Groovy DSL](example/groovy
142143

143144
# Changelog
144145

146+
+ 3.0.6 - TBD
147+
+ 3.0.5 - Add discardLogicWhitespace configuration option.
145148
+ 3.0.4 - Ignore empty directories when snapshotting template dir.
146149
+ 3.0.3 - Avoid usage of deprecated APIs for newer versions of Gradle.
147150
+ 3.0.2 - Incremental task functionality turned off when Rocker's hot reload feature is enabled.

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ plugins {
1010
}
1111

1212
group = 'nu.studer'
13-
version = '3.0.5-DEV'
13+
version = '3.0.5'
1414

1515
repositories {
1616
mavenCentral()

example/groovy/build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'nu.studer.rocker' version '3.0.4'
2+
id 'nu.studer.rocker' version '3.0.5'
33
id 'java'
44
}
55

@@ -12,6 +12,7 @@ rocker {
1212
configurations {
1313
main {
1414
optimize = true
15+
discardLogicWhitespace = true
1516
templateDir = file('src/rocker')
1617
outputDir = file('src/generated/rocker')
1718
}

example/kotlin/build.gradle.kts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id("nu.studer.rocker") version "3.0.4"
2+
id("nu.studer.rocker") version "3.0.5"
33
id("java")
44
}
55

@@ -12,6 +12,7 @@ rocker {
1212
configurations {
1313
create("main") {
1414
optimize.set(true) // optional
15+
discardLogicWhitespace.set(true) // optional
1516
templateDir.set(file("src/rocker"))
1617
outputDir.set(file("src/generated/rocker"))
1718
}

example/remote_template/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'nu.studer.rocker' version '3.0.4'
2+
id 'nu.studer.rocker' version '3.0.5'
33
id 'java'
44
}
55

0 commit comments

Comments
 (0)