Maven repository for ucombinator libraries and needed third party dependencies. To add a library, deploy locally to a checkout of the gh-pages
branch, commit, and push. The repository is accessible at https://ucombinator.github.io/maven-repo. See the gh-pages
branch on github to see the published libraries and versions.
To depend on a library hosted here from an sbt project, add something like this to your build.sbt
, replacing the soot dependency with the library you're interested in:
resolvers += "Ucombinator maven repository on github" at "https://ucombinator.github.io/maven-repo"
libraryDependencies ++= Seq(
"org.ucombinator.soot" % "soot-all-in-one" % "nightly.20150205"
)
First, build the project with:
mvn package
Then add the Jar to the maven repository:
mvn deploy:deploy-file \
-Dfile="</your/path/to/jar.jar>" \
-DgroupId=<your-groupId>
-DartifactId=<your-artifactId> \
-Dversion=<your-version> \
-Dpackaging=jar \
-Durl="file://</your/path/to/checkout>" \
-DrepositoryId=org.ucombinator
-Durl
is the path to a checkout of the maven repository.
-Dfile
will be a path to the Jar in the target
sub-directory of wherever you built the project.
Add something like the following to your build.sbt
// Publish to the maven repo indicated on the command line by
// `-Ducombinator-repo="/path/to/repo"` else to the folder "deploy" in the current directory
publishTo := Some(Resolver.file("file", new File(sys.props.getOrElse("ucombinator-repo", default = "deploy"))))
// Publish with maven and make this a pure java project
publishMavenStyle := true
then use
sbt -Ducombinator-repo="/path/to/checkout" publish