java VSCode无法识别渐变源依赖项
我最近一直在玩gradle和多存储库项目,我发现了gradle的源依赖关系https://blog.gradle.org/introducing-source-dependencies。自从我觉得它有趣以来,我一直在努力让它发挥作用。我已经设法让一个项目工作和建设,但VSCode却对我大喊大叫,无法解决导入问题。如果能帮我找到解决办法,我将不胜感激,因为我在互联网上找不到太多关于这个的信息
回购协议:
- 申请:https://github.com/EliSauder/robot-test/tree/e652b3670f2bb63f1224c55d346fc5c95d0b1d49
- 图书馆:https://github.com/EliSauder/robot-lib-test/tree/noFRC
应用程序settings.gradle
:
sourceControl {
gitRepository("https://github.com/EliSauder/robot-lib-test.git") {
producesModule("org.frcnomad:lib")
}
}
应用程序build.gradle
:
plugins {
id "application"
}
group = 'org.frcnomad'
repositories {
mavenCentral()
}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
mainClassName = 'org.frcnomad.robot.Main'
dependencies {
implementation('org.frcnomad:lib') {
version {
branch = 'noFRC'
}
}
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
testImplementation "org.mockito:mockito-core:2.+"
testImplementation "org.mockito:mockito-junit-jupiter:2.+"
}
tasks.named('test') {
useJUnitPlatform()
}
共 (0) 个答案