IntelliJでScala+SBTを指定し作成したプロジェクトをJarファイルにしようと思い、
ネットで"sbt jar 作成"で検索したページを参考にplugins.sbtに下記を定義し
SBTコンソールを起動したのですが、sbt-assemblyの取得でエラーとなります。
plugins.sbtにはどのような定義を設定すればよいでしょうか?
・ プロジェクト作成時に設定したscalaとsbtのバージョン
Scala:2.12.6
SBT :1.1.6
・ plugins.sbtに設定した内容
resolvers += Resolver.url("artifactory", url("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns) addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.8.5")
・エラーログ
warn] module not found: com.eed3si9n#sbt-assembly;0.8.5 [warn] ==== typesafe-ivy-releases: tried [warn] https://repo.typesafe.com/typesafe/ivy-releases/com.eed3si9n/sbt-assembly/scala_2.12/sbt_1.0/0.8.5/ivys/ivy.xml [warn] ==== sbt-plugin-releases: tried [warn] https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.eed3si9n/sbt-assembly/scala_2.12/sbt_1.0/0.8.5/ivys/ivy.xml [warn] ==== local: tried [warn] パス.ivy2\local\com.eed3si9n\sbt-assembly\scala_2.12\sbt_1.0\0.8.5\ivys\ivy.xml [warn] ==== public: tried [warn] https://repo1.maven.org/maven2/com/eed3si9n/sbt-assembly_2.12_1.0/0.8.5/sbt-assembly-0.8.5.pom [warn] ==== artifactory: tried [warn] http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/com.eed3si9n/sbt-assembly/scala_2.12/sbt_1.0/0.8.5/ivys/ivy.xml [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: UNRESOLVED DEPENDENCIES :: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: com.eed3si9n#sbt-assembly;0.8.5: not found [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] [warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes. [warn] com.eed3si9n:sbt-assembly:0.8.5 (scalaVersion=2.12, sbtVersion=1.0) [warn] [warn] Note: Unresolved dependencies path: [warn] com.eed3si9n:sbt-assembly:0.8.5 (scalaVersion=2.12, sbtVersion=1.0) (パス\IntelliJ IDEA Community Edition 2018.1.4\workspace\project\plugins.sbt#L3-4) [warn] +- default:workspace-build:0.1.0-SNAPSHOT (scalaVersion=2.12, sbtVersion=1.0) [error] sbt.librarymanagement.ResolveException: unresolved dependency: com.eed3si9n#sbt-assembly;0.8.5: not found
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。