Checking Groovy version Gradle is using -


i running gradle , have been running groovy 1.76. have updated groovy on local machine (groovy_home points groovy 2.1.2 etc).

$ groovy -version groovy version: 2.1.2 jvm: 1.7.0_17 vendor: oracle corporation os: linux 

however, when running gradle commands (gradle test, classes, etc) believe not building against groovy 2.1.2 still building against 1.76. (the reason believe this, when execute classes keep getting error upgrading groovy 1.7 - 2.1 incompatability, related changes made post 1.76)

is there way confirm version of groovy gradle install building against?

also, can confirm should configuring groovy version gradle?

which groovy library building against (and groovy compiler using) determined groovy library resides on compile (or, in earlier gradle versions, groovy) configuration. typically groovy dependency configured explicitly, may pulled in transitive dependency management. (in case of version conflict, higher version wins default. groovy version(s) have installed on machine irrelevant.) gradle dependencyinsight --configuration compile --dependency groovy should provide answer.

here how groovy dependency typically configured:

apply plugin: "groovy"  repositories {     mavencentral() // or other repository containing groovy library }  dependencies {     // in gradle 1.4 or earlier, replace 'compile' 'groovy'     compile "org.codehaus.groovy:groovy-all:2.1.2" } 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -