Hi, everyone! 
I would like to discuss one strange behavior with Calendar in 3.4 version 
of GEB.
Previously we used old version 2.1 and such construction worked perfectly:

*Calendar.getInstance().format('MMddHHmmss')*

But I decided to try the newest version 3.4:
*Calendar.getInstance().format('MMddHHmmss')// - doesn`t work format()*

I was able to 'fix' it just changed to:

*Calendar.getInstance().toOffsetDateTime().format("MMddHHmmss")*But we used 
such constructions in more than 100 places, fine I can do refactor, but 
also noticed that '*TimeCategory*' is not working in new GEB version, next 
construction was working in GEB 2.1 but in 3.4 doesn`t work:
newDate=null
use(TimeCategory) {
    newDate = 8.weeks.ago.format('MMddHHmmss').toString()
    println(newDate)
}

How can I fix this? Is it possible do not refactor everything with new 
version of GEB?
Thanks in advance!

Just in case, our dependencies:
reportiumVersion = '2.3.1'
gebVersion = '2.1' //3.4 also tried
groovyVersion = '2.4.12'
junitVersion = '5.6.1'
seleniumVersion = '3.141.59'
dependencies {
compile "org.gebish:geb-spock:$gebVersion"
compile "org.codehaus.groovy:groovy-all:$groovyVersion"
compile "com.perfecto.reporting-sdk:reportium-java:$reportiumVersion"
compile "com.perfecto.reporting-sdk:reportium-testng:$reportiumVersion"
compile group: 'org.ccil.cowan.tagsoup', name: 'tagsoup', version: '1.2.1'
testCompile("org.spockframework:spock-core:1.2-groovy-2.4") {
exclude group: "org.codehaus.groovy"
}
testCompile('com.athaydes:spock-reports:1.3.1') {
transitive = false 
}
testImplementation("org.junit.jupiter:junit-jupiter:$junitVersion")
compile "org.seleniumhq.selenium:selenium-chrome-driver:$seleniumVersion"
compile "org.seleniumhq.selenium:selenium-firefox-driver:$seleniumVersion"
compile "org.seleniumhq.selenium:selenium-ie-driver:$seleniumVersion"
compile "org.seleniumhq.selenium:selenium-remote-driver:$seleniumVersion"
compile "org.seleniumhq.selenium:selenium-support:$seleniumVersion"
}

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/386a81cd-1c87-4653-b903-89cf81bf9192%40googlegroups.com.

Reply via email to