Gluon Project-当我运行/.gradle运行时找不到Springboot依赖关系

时间:2020-08-31 10:27:47

标签: java spring-boot gradle javafx gluon

这是我的问题:

当我将mainClass作为Java应用程序运行时,一切进展顺利:Image 但是当我运行./gradle时,在classPath中找不到springboot依赖项:Image2

build.gradle:GitHub Repository link to file

任何人都可以尝试解决我的问题,我会非常高兴!!!

1 个答案:

答案 0 :(得分:0)

我设法通过在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运行->时,它显示enter image description here