Community of Groovy programming language users
See all
Members (3,085)
Guillaume Laforge's profile photo
Cédric Champeau's profile photo
ADALBERTO ANTONIO's profile photo
Jose Merida's profile photo
Brian Burnett's profile photo
Ralf Müller's profile photo
Wubstr's profile photo
Arvind verma's profile photo
廖彦's profile photo
Skills Matter's profile photo
Daniel Nicoletti's profile photo
Reggie Ealey's profile photo
Arturo Rotondo's profile photo
Leslie Viviani's profile photo
Ernesto Hernández's profile photo
Stefan Schlott's profile photo
Jörg Rech's profile photo
Willie Spears's profile photo
Francesco Orciuoli's profile photo
Cuong Nguyen's profile photo
gerhard aschauer's profile photo
Peter Kelley's profile photo
Alexander Kaden's profile photo
Al Baker's profile photo

Stream

Join this community to post or comment
 
Hello everyone.

I'm considering to use Groovy as the primary language at the company I work. I'm thinking that Groovy is the perfect language for the company but I need to know how big is the community support of the Groovy project. I can't use a language that can be dead in 10 years and I don't know if this is the case of Groovy.

Could you help me with this?
1
Kent Damgaard's profile photoCanadian Tracks's profile photo
7 comments
 
Groovy is great. But I would never use it as a primary language because it is hard to debug and too type-flexible.

Groovy is great for scripting, quickies, templates, and more. But it falls down when used as a replacement for Java/C#/.Net/etc.

I love Groovy but would use it only as a supplementary tool.
Add a comment...
 
I am looking to use Allure reports in a Groovy project. Allure uses @Step annotation and AspectJ to create a nice nested steps report. Groovy does not support AspectJ. I believe it is possible to wrap a method call using AST.
1. There is an example on the Groovy site, the problem is it is simply adds the last statement to the method, and it may be never reached.
2. I would like to wrap all public method of all superclasses of a certain class. How can I do it without annotating all methods?
3. Ideally, I would like to log step method`s source code also.
1
Add a comment...
 
Hello everyone, someone got to use successfully Grails-Atmosphere-Plugin?
https://github.com/jamesxabregas/grails-atmosphere
here is my attempt:
http://ge.tt/5ucR0Tf2
grails-atmosphere - Grails adapter for atmosphere
1
Add a comment...
 
I have 800+ Unit test cases in my Grails application.I'm using grails.version=2.4.4 my Grails App


Below are the few LOC from Run Configuration of Groovy unit test cases

-Djava.library.path=./lib
-Dserver.ip=localhost
-Dserver.port=9090
-XX:MaxPermSize=512m
...
....
-Xverify:none

I'm running this application on Ubuntu Machine.

Sometimes , while running the test cases, It is giving me Out Of Memory error.

I took Sampler & Profiler(VisualVM) Memory Test Analysis, but they could not help much.

Also in each test case groovy class , I'm using @Before & @After annotation to reduce Permanent Generation.

Is there anything I'm missing? I want to reduce Perm Gen & to get rid of Out Of Memory error permanently.

Thanks In Advance !!
1
Charanjit Singh's profile photo
3 comments
 
Yeah u r right ( more permgen and more Xmx will def help) but I still want to go with more feasible solutions.
Something like:- Forcefully deleting Perm Gen Or Forcefully GC after 400 test cases !!
Add a comment...
 
I created a script to send email with attachments. It runs and compiles just fine BUT I cannot locate the compiled file
1
Graham Kelly's profile photoEric Godineaux's profile photo
2 comments
 
Yes, it's a script and Im trying to use it in Oracle EDQ.
Add a comment...
 
What Groovy have that kotlin haven't?
1
Michael Kimsal's profile photoIbrahim HALOUANE's profile photo
22 comments
 
Hi, as other people said, both dynamic & static coding style, ecosystem and better docs and support are sufficient for me.
Add a comment...
 
Hi Group Members,

Please check and let me know if anyone of you is interested for below.

Note: Only for Authorised persons who can work in USA independently.

Role: : Groovy Grails Developer
Location: : Austin, TX / San Antonio, TX, USA
Mode of Hiring : Full Time Employment
Description : Groovy Grails as primary skillset and UI (Java script ) will be secondary skillset

Thanks & Regards,

Swatantra Kumar Dwivedi


Bringing talent, framework & execution together to provide customized business solutions since 2007. OUR SERVICES In today’s fast-changing business environment, organizations need to respond quickly to changes. Next Level Business Services (NLB Services) partners with its clients to support process
1
Ibrahim HALOUANE's profile photoswatantra kumar dwivedi's profile photo
5 comments
 
i sent you an email Ibrahim
Add a comment...
 
Hello !!!

I have some question. I need use DI in groovy script , if it would be class is no problem (grails, spring), and all stuff about DI in groovy in Internet take only groovy class not groovy script. Could you advise me how resolve my problem ? I add that I use groovy script because I use cucumber for tests.
1
Antonio Antonelli's profile photoRafał Piotrowicz's profile photo
2 comments
 
Thank you Antonio !!! It was very helpfull for me !!!
Add a comment...
 
Hi Everyone,

Is there any sample web application using Groovy on Grails? I would like to get the code and build it.

Thanks in advance for help!
1
Kirk Stork's profile photo
2 comments
 
By the way, the project's name is just "Grails", not "Groovy on Grails". 
Add a comment...
 
I want to reduce the uploaded image file size and convert that to store in server, as thumbnail, and when I retrieve that one that should show the original image file not thumbnail .

Can anybody help me out , about this ?
1
Richard Vowles's profile photo
 
That's just standard Java, you will find the answer on stack overflow
Add a comment...
 
I've got a problem that I can't solve no matter what I try. I have Java library with function that accepts `double` as a parameter. Now I call it from groovy and if the parameter is like `1.1` everything works fine. But if the parameter is `1.0`, I get `ClassCastException` because groovy converts the number to Integer internally and Java can't cast Integer to Double. Explicitly casting the number to double does not help since groovy performs the cast somewhere between groovy and java code.

Is there a way to solve this problem?
1
Alexander Nozik's profile photo
8 comments
 
Found it: github.com - groovy-core

The power does some black magic with type conversion. This behavior is not obvious from documentation and it seems to me rather bugged. I will probably fix it by overriding static extension for Number.
Add a comment...
 
Hello. I think about use spring context (autowired) in my groovy test E2E , but I'm not sure it possible for groovy script (in this place I want to autowired some object) ? Someone do that ? I will I will be grateful for help


1
Add a comment...
 
Facing issue to generate the XMLas output, How should I create a XML output where XML as a input using Groovy ?
1
Add a comment...
 
Why you choose Groovy over Kotlin?

I known that one of reasons is ecosystem (like Grails), but Kotlin can use Spring (I am not sure). Is that only reason? 
1
Artur Wójcik's profile photoIbrahim HALOUANE's profile photo
14 comments
 
I choosed groovy after learning scala for theses reason:
1- it has Java-Like syntax
2- Learning curve is short
3- It has both static and dynamic paradigm
4- Great ecosystem (grails, gradle...)
whereas Kotlin doesn't provide much more, and its still fresh and not ready for production IMHO.
Add a comment...
 
Is this where we can post questions about Groovy?
1
Apache Groovy's profile photo
 
The best place is the Groovy mailing-list:
groovy-lang.org - The Groovy programming language - Mailing-lists
Add a comment...
 
Hi Guys and Gals,

Groovy/Java question.
How can I make the below method:
- public void log_something(String someText)
to be restricted only to be used with Constant String literals?

I.e. allowed:
- log_something("some text here")

Not allowed:
- log_something("some dynamic text"+someOtherTextVariable)

It should be compile-time check. Ideally without AST.
1
Colin Harrington's profile photoAnton Pryamostanov's profile photo
9 comments
 
To: Virtual Dogber, wow its amazing article out there. Thanks a lot!
To: Colin Harrington: This is good approach, but I want it to be independent of build environment, because library will be published as open source and even possible other people might use it.
Add a comment...
 
See if you can help with this riddle!
1
Rajendra Prasad's profile photo
 
Do you have script for convert fixed length file to CSV or XML
Add a comment...
 
Hello :) I have soome question. I need work with pdf document i my groovy test framework. Do You think is not anty-pattern when I use some helper class wrote in java (I want to use PDFBox framwework) ?
1
Rafał Piotrowicz's profile photoIbrahim HALOUANE's profile photo
3 comments
 
I used eclipse for its WindowBuilder to quickly sketch up Swing Gui, and the rest of the code was in groovy (Sql database scripts...other stuff), everything went well.
Add a comment...
 
Hi guys, I was just going through Component groovy-all-1.7.5. I found that there are 34 authors mentioned in link https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-all/1.7.5 . Can I take the list of authors from this link? If not, can anyone please provide me the correct list?
1
Guillaume Laforge's profile photoKARTHIKA SATHISH's profile photo
2 comments
 
Ok. I will check the Github repository for Authors. Thanks.
Add a comment...