8000 Add file .sdkmanrc to improve the dev experience · Issue #89 · jaccomoc/jactl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content 8000
Add file .sdkmanrc to improve the dev experience #89
Open
@wfouche

Description

@wfouche

dot_sdkmanrc.txt

SDKMAN is a popular JDK and SDK manager and used by many open-source projects including the Spring Framework:

The following .sdkmanrc file specifies the versions of Java and JBang to be used when building or running jactl (as a developer).

.sdkmanrc

# Enable auto-env through the sdkman_auto_env config
# Add key=value pairs of SDKs to use below

# Java
java=8.0.452-tem

# JBang
jbang=0.126.1

Before building jactl all a developer needs to do is to run SDKMAN command:

$ sdk env 

Using java version 8.0.452-tem in this shell.

Using jbang version 0.126.1 in this shell.

Thereafter the build and publish commands can be run (with confidence that the correct version of Java is used):

$ ./gradlew build publishToMavenLocal

And a quick test can be performed using JBang

$ jbang run io.jactl:jactl:2.2.1-SNAPSHOT -e '10.map{ it + 1 }.sum()'
[jbang] Resolving dependencies...
[jbang]    io.jactl:jactl:2.2.1-SNAPSHOT
[jbang] Dependencies resolved
55

Newer versions of IntelliJ support SDKMAN and will automatically detect the .sdkmanrc file and activate the specified version of Java for use by the IDE to build jactl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0