Sdkman-cli: skdman do not check the current installed groovy or gralde on my mac

Created on 18 Sep 2016  路  3Comments  路  Source: sdkman/sdkman-cli

brew install groovy

and then add path in my ~/.zshrc the following:

export GROOVY_HOME=/usr/local/opt/groovy/libexec                                                                                  
export PATH=$PATH:$GROOVY_HOME/bin

after that, i restart the bash terminal

sdk list groovy

it seems that sdkman do not check the exsiting groovy version.

and i installed it using sdk man:

sdk install groovy 2.4.7

and then which groovy
and i saw:
/Users/Mac15/.sdkman/candidates/groovy/current/bin/groovy

and gradle the same..

is a bug?
how to solve it ? (i mean i have double copy in mac)

Most helpful comment

Why would you install groovy with brew if you are using sdkman? I would remove the brew version and simply install it with sdkman.

Brew is not compatible with sdkman because we manage the GROOVY_HOME environment variable as well as the PATH dynamically. Any attempts to try managing the home variables will break things.

All 3 comments

Why would you install groovy with brew if you are using sdkman? I would remove the brew version and simply install it with sdkman.

Brew is not compatible with sdkman because we manage the GROOVY_HOME environment variable as well as the PATH dynamically. Any attempts to try managing the home variables will break things.

got it, i have uninstalled homebrew one. just using sdkman.

so far so good. thx.

The GROOVY_HOME is dynamically, so how to set the libraries in~/.groovy/grapes into classpath?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

unknowpe picture unknowpe  路  7Comments

pshirshov picture pshirshov  路  6Comments

cmoulliard picture cmoulliard  路  4Comments

aadrian picture aadrian  路  7Comments

blueglyph picture blueglyph  路  7Comments