[英]Gluon Project - Springboot Dependencies not found when i run /.gradle run
Here is my issue :这是我的问题:
When i run my mainClass as java application everything goes good :当我将 mainClass 作为 java 应用程序运行时,一切顺利: but when i run ./gradle run springboot dependencies not found in the classPath :但是当我运行 ./gradle 时,在 classPath 中找不到 springboot 依赖项:
the build.gradle : GitHub Repository link to file build.gradle : GitHub Repository 文件链接
Can anyone try to fix with me the issue i ll be more than glad !!!任何人都可以尝试与我一起解决这个问题,我会非常高兴!!!
I managed to resolve the issue by adding this in the build.gradle :我设法通过在 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"
}
And now when i run /.gradle run -> it shows现在当我运行 /.gradle run -> 它显示
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.