E. B. White used the term in the 1970 novel The Trumpet of the Swan, which takes place in 1968. "'This is real groovy!' cried a boy in the front seat. 'That bird is as good as Louis Armstrong, the famous trumpet player.'"
Solution edit:Turns out the mistake iw as making is I had a groovy class wtih public properties (in my example above DOB) defined with def but then was attemping to access them from a .java class(in my example above calling .getYear() on it). Its a rookie mistake but the problem is once the object leaves a Groovy file it is simply treated as a Object. Thanks for all your help!
Groovy console was one of heavily used dependencies in AEM projects I was working on. As far as I understand using the /apps/groovyconsole admin panel will not be an option for AEM as a cloud but I am exploring the ability to run groovy scripts automatically. Could you please advise what is the recommended approach for using groovy console in AEM as a Cloud world ? Do you see any scenario that would be problematic for AEM as a cloud ?
Could you also advise what's the recommended way to install groovy console in AEM as Cloud ? In old deployments we just installed a zip package via crx manager but it seems that this is not an option for AEM as a Cloud.
I tried to run it on the author on cloud service and it worked... The configurations for which we need to get into the system console can be done via OSGi so should not be a problem... For publisher just need to make sure /apps/groovyconsole.html accessible via dispatcher and the validator doesn't complain about it.
Today I started evaluating the SonarQube Enterprise server.
I have a groovy project which is built in Jenkins using multibranch pipeline jobs to create several branches in Sonar.
So far so good. Everything seems to work as expected. Sonar finds 27 Bugs and 28 Code Smells (master branch).
I then installed the SonarLint plugin for Intellij and connected it to our Sonar Enterprise Server.
Intellij found my project; I selected it.
My question if for the beginners like myself, with no previous exposure to Groovy;
What is the best way to learn groovy in relation to Katalon?
Is it worth taking a full course and learning all the aspects of the language?
Or is it better to just learn what the code is doing by analysing the script portion of tests completed using the manual builder and the record and playback?
Hello everyone,
I want to develop a plugin for Jira server, which executes a simple groovy script?
Should I use the Atlassian SDK and with atlas-create-jira-plugin, or there maybe is another way?
For very special use-cases you may need to use a custom GroovyShell instance in your Groovy expressions. To provide the custom GroovyShell, add an implementation of the org.apache.camel.language.groovy.GroovyShellFactory SPI interface to the Camel registry.
When I define a new groovy Map variable copied from an existing hubitat application state variable, it appears that this new copied Map variable is a Hashmap of the original state variable instead of a separate instance? When I modify the newly created copied Map variable (see below), both original state map variable (which I did not directly modify) and new map variable are now the same. My question, how do I create/copy/clone a new groovy Map variable from either an existing state variable so they are not linked?
I usually kinda use all three methods 1. Graphical 2. Groovy 3. XSLT but with majority of Graphical mapping. This blog opens my idea to explore further on XMLSlurper in the groovy script which If I think might be easier than other methods.
I have an incoming XML via a Soap connector and I wrote some groovy to convert the body into JSON. However it is failing when I try and send it out and I think it is because it still sees the package as a SOAP package. How do I change it to be a JSON package?
You can use Apache Groovy scripts to customise the majority of ScriptRunner features. Apache Groovy scripts can be inserted anywhere a 'Script' or 'Condition' field is found. You can enter Apache Groovy scripts directly into the ScriptRunner front-end, or select one of the .groovy files stored in the Script Roots directory on the server.
df19127ead