我有一个用SBT1.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添加一些内容。发布于 2018-01-16 14:40:46
可以在这里找到解决办法: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它对我起作用
发布于 2017-11-07 15:37:45
我发现这确实是jitpack中的一个bug。在我的项目配置中,我什么也做不了。
https://stackoverflow.com/questions/47137546
复制相似问题