Does it make a difference, how to integrate GPars in my projects?
Can I either do
@Grab(group='org.codehaus.gpars', module='gpars', version='1.0.0')
or just (provided I have all the required jars in my build path)
import groovyx.gpars.*
?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s depending on how you organize your project and what is your build system.
If it’s a plain Groovy script, using a
@Grabannotation andimportstatements together will be working for you.@Grabjust tells the system to manage dependencies, and you still needimportstatements.But if it’s a bigger project, using Gradle is the better way.