Skip to content

Instantly share code, notes, and snippets.

@w4tson
Created August 2, 2017 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save w4tson/4ade48cbd72f2ad62efe7e2cb7166931 to your computer and use it in GitHub Desktop.
Save w4tson/4ade48cbd72f2ad62efe7e2cb7166931 to your computer and use it in GitHub Desktop.
Some notes on proxying the stuff needed the Play! Framework
Importing jars etc for:
_ _
_ __ | | __ _ _ _| |
| '_ \| |/ _' | || |_|
| __/|_|\____|\__ (_)
|_ | |__/
0. ensure this env var : export SBT_OPTS="-Dsbt.override.build.repos=true"
1. rm -rf ~/.ivy2
2. Setup repositories file in .sbt/repositories as follows
[repositories]
local
maven-local
ivy: http://nexus:8081/nexus/content/groups/ivy/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
maven: http://nexus:8081/nexus/content/groups/mvn/
maven2: http://nexus:8081/nexus/content/groups/public/
3. Add your dependency to the Play project. Don't forget
i. The correct scala version in the build.sbt
ii. The correct sbt version in <PROJECT>/project/build.properties
iii. If it's a plugin don't forget to add the plugin in BOTH the plugins.sbt AND enable the plugin in the build.sbt
iv. When specifying dependencies '%%' takes into account scala versions '%' is like a normal maven GAV params
4. ./activator clean compile
5. ./activator update-classifiers (if you're updating sbt too : update-sbt-classifiers)
update-classifiers update-sbt-classifiers
Troubleshooting:
JLine sometimes fails. Just retry, second time is a charm :D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment