d10xa / jadd

Command-line tool for adding dependencies to gradle/maven/sbt build files

GitHub

jadd

Maven Central Travis Coveralls github Scala Steward badge

Tool for adding dependencies to gradle/maven/sbt build files

jadd.gif

REPL!

Just run jadd without arguments and enjoy tab completion!

usage

jadd i logback-classic postgresql gson commons-io io.grpc:grpc-protobuf
jadd i -r jrequirements.txt

commands

  • install (shortcut i) add dependency to build file

  • search (shortcut s) print dependency to console

  • show show artifacts from build file

  • help

installation

coursier install jadd --channel https://git.io/JvV0g

examples

maven

mvn archetype:generate -DgroupId=com.example -DartifactId=example-mvn -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
cd example-mvn
jadd i logback-classic

gradle

mkdir example-gradle
cd example-gradle
gradle init --type java-application
jadd i mysql

sbt

sbt new scala/scala-seed.g8
# name [Scala Seed Project]: example-sbt
cd example-sbt
jadd i akka-http