Created
August 2, 2017 16:28
-
-
Save w4tson/4ade48cbd72f2ad62efe7e2cb7166931 to your computer and use it in GitHub Desktop.
Some notes on proxying the stuff needed the Play! Framework
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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