【发布时间】:2021-03-27 02:30:03
【问题描述】:
我有一个 12 年前的旧项目想要重做。我在项目中添加了Gradle。现在我需要将GitHub的库添加到项目中(使用Gradle),我看到了JitPack这样的东西。我配置并运行了所有内容,但库仍然没有启动。有什么问题?
分级:
plugins {
id 'java'
}
group 'org.opensourcephysics.cabrillo'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
compile 'com.github.OpenSourcePhysics:osp:master-SNAPSHOT'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
来自GitHub的库:
我所有的图书馆:
【问题讨论】:
标签: java github gradle dependencies jitpack