这是我的问题:
当我将mainClass作为Java应用程序运行时,一切顺利:
但是当我运行./gradle运行springboot依赖项时在classPath中找不到:
build.gradle:GitHub Repository link to file
任何人都可以尝试解决我的问题,我将非常高兴!
最佳答案
我设法通过在build.gradle中添加它来解决了这个问题:
buildscript {
repositories {
google()
jcenter()
maven {
url 'https://nexus.gluonhq.com/nexus/content/repositories/releases'
}
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'org.javafxports:jfxmobile-plugin:2.0.30'
classpath "org.springframework.boot:spring-boot-gradle-plugin:2.3.3.RELEASE"
}
}
apply plugin: 'application'
dependencies {
compile "org.springframework.cloud:spring-cloud-starter-feign:1.4.7.RELEASE"
}
现在当我运行/.gradle运行->它显示
关于java - Gluon Project-当我运行/.gradle运行时找不到Springboot依赖关系,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63669055/