All-in-one Java wrapper for teuton Ruby gem (using JRuby).
<dependency>
<groupId>io.github.teuton-software</groupId>
<artifactId>jteuton</artifactId>
<version>{jteuton.version}</version>
</dependency>implementation 'io.github.teuton-software:jteuton:{jteuton.version}'Clone the repo and change to its directory:
git clone https://github.com/teuton-software/jteuton.git
cd jteutonDownload and install Ruby gems (teuton and teuton-get) into src/main/resources:
mvn exec:exec@install-rubygemsBuild, package and install the JAR library into your local Maven repo:
mvn installjteuton depends on some Ruby gems: teuton and teuton-get.
mvn exec:exec@install-rubygemsmvn clean:clean@uninstall-rubygemsAlso deletes
targetdirectory.
mvn clean:clean@uninstall-rubygems exec:exec@install-rubygemsImport Teuton class:
import io.github.teuton.Teuton;Code:
System.out.println(Teuton.execute("version"));or
System.out.println(Teuton.version());Output:
X.Y.Z
Code:
System.out.println(Teuton.execute("help"));Output:
Commands:
teuton [run] [OPTIONS] DIRECTORY # Run challenge from directory
teuton check [OPTIONS] DIRECTORY # Test or check challenge contents
teuton help [COMMAND] # Describe available commands or one spec...
teuton new DIRECTORY # Create skeleton for a new project
teuton readme DIRECTORY # Create README.md file from challenge co...
teuton version # Show the program version
Import TeutonGet class:
import io.github.teuton.TeutonGet;Code:
System.out.println(TeutonGet.execute("version"));or
System.out.println(TeutonGet.version());Output:
X.Y.Z