5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

sbt LibraryDependencies

Posted at

何となく書き方がわかったのでメモ


scalaVersion := "2.9.2"
libraryDependencies ++= Seq(
	"org.apache.commons" % "commons-lang3" % "3.1",
	"commons-io" % "commons-io" % "2.4",
        "commons-logging" % "commons-logging" % "1.0.4",
        "uk.ac.ed.ph.snuggletex"%"snuggletex-core" % "1.2.2",
        "uk.ac.ed.ph.snuggletex"%"snuggletex-upconversion"  %"1.2.2",
        "uk.ac.ed.ph.snuggletex"%"snuggletex-jeuclid" % "1.2.2",
	"org.specs2" %% "specs2" % "1.12.3" % "test"
)


resolvers ++= Seq(
  "snapshots" at "http://oss.sonatype.org/content/repositories/snapshots",
  "releases" at "http://oss.sonatype.org/content/repositories/releases",
  "www2.ph.ed.ac.uk-releases" at "http://www2.ph.ed.ac.uk/maven2"
)

なbuild.sbt があるとすると、LibraryDependenciesの%は/を、%%はscalaVersionを含む事を示す。両方とも.は/に変換される。
つまりsbt updateしたときのトライアルにresolversが追加されるが、そのサイトの後ろが%の場合は
org/apache/commons/...
%%の場合は
org/apache/commons-2.9.2/...
などのように続く。
もしうまくダウンロードされない場合は、上記のルールでサイトにパブリッシュされているかを確認すればいい。

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?