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

问题描述

这是我的问题:

当我将mainClass作为Java应用程序运行时,一切进展顺利:

Image

但是当我运行./gradle时,在classpath中找不到springboot依赖项:

Image2

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运行->时,它显示enter image description here