Member-only story
asdf, runtime version automatic change
like I said in this article, asdf is awesome.
Today I found out that asdf is also automatically changing the version number for any runtime just by having a unique file .tool-versions
Let's have a look at this list of commands inside my terminal
So what I have are 2 pseudo-projects (folders) with the .tool-versions
inside indicating the NodeJs versions
project-1 has version nodejs 16.14.2
project-2 has version nodejs 17.0.0
And my global NodeJS version is 12.22.9
And now let’s navigate with the terminal inside each project we see that the node version changes automatically
Multiple runtimes versioning
Let’s try Java
So for Java, I have 3 versions:
Let’s put in project-1 version 8, and version 11 in project-2