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

标签 java spring-boot gradle javafx gluon

这是我的问题:
当我将mainClass作为Java应用程序运行时,一切顺利:Image
但是当我运行./gradle运行springboot依赖项时在classPath中找不到: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

关于java - Gluon Project-当我运行/.gradle运行时找不到Springboot依赖关系,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63669055/

相关文章:

java - 添加新项目后刷新下拉列表

java - 查找 ImageView 错误中像素的颜色

java - Selenium-无法使用 div 类的 xpath 定位元素

spring-security - 启用 Spring Security 使 Swagger 输出文本/纯文本而不是 HTML

java - 编辑外部库

java - 如何从 gradle 项目中的命令行覆盖集成测试中的属性?

java - 在不使用具有长参数列表的构造函数的情况下构建大的、不可变的对象

javax.management.InstanceAlreadyExistsException : com. zaxxer.hikari :name=dataSource, 类型=HikariDataSource

java - 在 Spring boot 中从任意 bean 访问 EntityMamanger

java - 在 Android 应用程序中使用 Maven 项目