Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make SBT build relative to SBT's baseDirectory #449

Merged
merged 2 commits into from
Mar 13, 2019

Conversation

ComFreek
Copy link
Member

@ComFreek ComFreek commented Mar 12, 2019

to allow other SBT projects to reference MMT as a subproject.

Devs of MMT can now just do:

  1. Clone MMT/devel somewhere
  2. Set up an empty SBT project somewhere else (!) with the following build.sbt:
import sbt.Keys.libraryDependencies

lazy val mmt = RootProject(file("<path-to-mmt-clone>/src"))

lazy val playground = Project(id = "playground", base = file(".")).settings(
	name := "playground",
	version := "0.1",
	scalaVersion := "2.12.8",
	scalacOptions in ThisBuild ++= Seq("-unchecked", "-deprecation"),
	// Add further desired libraryDependencies here
        // e.g. libraryDependencies += "org.jgrapht" % "jgrapht-core" % "1.3.0",
).dependsOn(mmt).aggregate(mmt)

// Deploy MMT JAR via simply "deploy" in the playground SBT shell.

This commit tremendously alleviates #442.

to allow other SBT projects to reference MMT as a subproject.
See https://stackoverflow.com/a/55107829

Special thanks go to the author of that answer: thirstycrow
<https://stackoverflow.com/users/1427934/thirstycrow>
Copy link
Contributor

@tkw1536 tkw1536 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tkw1536
Copy link
Contributor

tkw1536 commented Mar 12, 2019

Note: The Travis CI build only fails the content tests, the actual building seems to work.
I see nothing against merging this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants