All-in-one Java wrapper for asker Ruby gem (using JRuby).
<dependency>
<groupId>io.github.teuton-software</groupId>
<artifactId>jasker</artifactId>
<version>{jasker.version}</version>
</dependency>
implementation 'io.github.teuton-software:jasker:{jasker.version}'
jasker
depends on some Ruby gems: asker-tool
.
mvn exec:exec@install-rubygems
mvn clean:clean@uninstall-rubygems
Also deletes
target
directory.
mvn clean:clean@uninstall-rubygems exec:exec@install-rubygems
Import Asker
class:
import io.github.teuton.jasker.Asker;
Code:
System.out.println(Asker.execute("version"));
or
System.out.println(Asker.version());
Output:
X.Y.Z
Clone the repo and change to its directory:
git clone https://github.com/teuton-software/jasker.git
cd jasker
Download and install Ruby gem (asker-tool
) into src/main/resources
:
mvn exec:exec@install-rubygems
Build, package and install the JAR library into your local Maven repo:
mvn install
mvn deploy