我有一个使用sbt 1.0运行的Git项目。
我想用jitpack.io发布它。但是我收到以下错误:
Downloading sbt launcher for 1.0.2:
From http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/1.0.2/sbt-launch.jar
To /home/jitpack/.sbt/launchers/1.0.2/sbt-launch.jar
Download failed. Obtain the jar manually and place it at /home/jitpack/.sbt/launchers/1.0.2/sbt-launch.jar
/home/jitpack
是来自jitpack的目录。
在我的项目中,我能做些什么来完成这项工作?
build.sbt
添加内容。答案 0 :(得分:2)
可在此处找到解决方法:https://github.com/jitpack/jitpack.io/issues/1887
你需要创建" .jitpack.yml"文件并填写:
# workaround for https://github.com/jitpack/jitpack.io/issues/1887
jdk:
- oraclejdk8
before_install:
- wget http://central.maven.org/maven2/org/scala-sbt/sbt-launch/1.1.0/sbt-launch-1.1.0.jar
install:
- java -jar sbt-launch-1.1.0.jar publishM2
它为我工作
答案 1 :(得分:0)
我看到这是jitpack中的一个错误。在项目配置中我无能为力。