Can the Groovy library for Jenkins be changed? - groovy

I am using the soapUI maven in Jenkins (am at the latest and greatest release)
There seems to be an issue with the groovy 1.8.5 which is fixed in the later versions of Groovy (2.1.5 for example).
Is there a way to change the underlying groovy library for Jenkins to 2.1.5.
I tried replacing the 1.8.5 in WEB-INF/lib with the 2.1.5 version and jenkins does not even start up
Appreciate any ideas/pointers.

Related

I am getting error in eclipse after installed groovy plugin

I have installed groovy plugin in my Eclipse and I have changed the compiler to 2.4 as a job duty and restarted the eclipse then I am getting the error "Failed to create the part's controls". Can anyone please help me?
Is this the problem you are seeing: https://github.com/groovy/groovy-eclipse/issues/317#issuecomment-316430547
This can be resolved by removing newer Groovy compiler versions. In your case, you want to use Groovy 2.4, so remove 2.5 and 2.6/3.0 (if you have them installed).

pom file java version spec for Maven

I am a new user to Maven, as I am trying to use it to build apache spark on amazon EC2 VMs. I have mannually installed java version 1.7.0 on the VMs. However as I was running the Maven, the following error occurs:
Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.0:testCompile (scala-test-compile-first) on project spark-core_2.10: Execution scala-test-compile-first of goal net.alchim31.maven:scala-maven-plugin:3.2.0:testCompile failed. CompileFailed
As I think the java version mismatch is the potential reason, causing the compiling problem. I opened up the pom file of the spark for maven tool, it has declared java related version in two seperate places:
<java.version>1.6</java.version>
and
<aws.java.sdk.version>1.8.3</aws.java.sdk.version>
What are the differences between these two versions?
Which one should be edited to solve the jave version mismatch?
It's two different things
<java.version>1.6</java.version>
is the java version used and
<aws.java.sdk.version>1.8.3</aws.java.sdk.version>
is the AWS SDK for Java version used.
The minumum requirement of AWS SDK 1.9 is Java 1.6+ so there is no compatibility issues.

Upgrading from Groovy 1.7.2 to 1.8.x

My project demands and upgrade from groovy 1.7.2 to 1.8.x stable release, there are several jar's are created using groovy 1.7.2 version, let me know whether these jar's will be compatible with 1.8.x also or not, or do i need to completely re-built it,
As it says on this mailing list entry:
A jar built with 1.7 will not run with a 1.8 runtime because two files were moved and one was removed.

Groovy plugin installation fails in STS 2.5.2 and 2.7

I have tried installing Groovy plugin via STS's dashboard install feature in both 2.7 (the version I downloaded initially which was the latest version at the time). My colleague recommended downloading 2.5.2, the version he is using, so I did; however the Groovy plugin installer still fails. It starts with:
Cannot complete the install because of a conflicting dependency.
Software being installed: Groovy-Eclipse Feature 2.5.2.xx-20110808-1400-e36 (org.codehaus.groovy.eclipse.feature.feature.group 2.5.2.xx-20110808-1400-e36)
Windows 7 64B
groovy v 1.8.2
grails v 1.3.7
jvm 1.6.0_26
Greatly appreciate any hints/recommendations/ideas. THANK YOU!
Make sure that your STS install is in a directory where the current user has write permissions. Also, there is a problem with installing into the Program Files directory (it is not really writable, even if you think it is).
The reason for this problem is the feature patch that comes with Groovy-Eclipse must be installed into the same directory as the rest of STS (an Eclipse limitation). This patch is the thing that patches the jdt compiler so that it can also compile groovy code.

Grails 1.2.x scripts not working

I am using Grails 1.2.x (Tried both 1.2.0 and 1.2.2- same behavior)
I am able to create the application fine by using the command grails create-app
But, when I try any command within the project- it "freezes" after printing the Base Directory
I have tried grails clean, grails war, grails run-app, grails created-domain-class
Grails 1.1.x works just fine for me
UPDATE : 1.2-M2 worked as well. but not the other "stable" Grails 1.2.x releases
Any help would be welcome
C:\mylab\testhostc>grails war
Welcome to Grails 1.2.0 - http://grails.org/
Licensed under Apache Standard License2.0
Grails home is set to: C:\Programs\grails-1.2.0
Base Directory: C:\mylab\testhostc
I got it working now
I had an environment variable JAVA_OPTS with value as -Xms64M -Xmx128M -Xss128M -XX:MaxPermSize=128M
Once I removed that- the scripts work fine now
I have opened a defect for this- in case someone is interested
http://jira.codehaus.org/browse/GRAILS-6111

Resources