-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the springBoot
option when it is not null
#213
Use the springBoot
option when it is not null
#213
Conversation
Sounds legit to me. But in this case, this method is no longer used on its own so it can be inlined in the other one I guess? |
Updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 Thank you, @yuezk!
Thanks for the contribution! |
* Using the springBoot property * Improve the code structure * Keep the comment
Hi @boris-petrov, is there a SNAPSHOT version that I can use? Thanks. |
@yuezk - unfortunately not. :( We had until a day or two ago but since Bintray went read-only, we had to disable them. We'll re-enable them once we begin publishing to Maven Central but I can't promise when that will happen, sorry. |
@yuezk maybe you can try https://jitpack.io/#gretty-gradle-plugin/gretty/gretty-3.x-SNAPSHOT? Please report back if you find it useful and fixed your immediate problem. |
@f4lco It doesn't work. Here is the configuration buildscript {
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.github.gretty-gradle-plugin:gretty:gretty-3.x-SNAPSHOT'
}
}
apply plugin: 'org.gretty' And here is the error message
|
@yuezk I don't know (and cannot reproduce) why some of the JitPack builds are failing. The branch build seems to be stuck, and I don't know if it is possible to restart JitPack builds. However, I had some luck referencing the commit ID:
My definition of "works" is equal to "can execute task |
I'm using the gretty plugin in a complex project, which has the
org.springframework.boot
group id in itscomplieClasspath
and that could make gretty treat the project as a spring boot project, but actually it's not a standard spring boot application. So I want to tell gretty that it's not a spring boot project explicity.I noticed that gretty has an undocumented option named
springBoot
that indicates whether the current project is a spring boot project or not. But we couldn't set it tofalse
explicitly to indicates that a project is not a spring boot project. Because inside gretty, it will try to resolve the spring boot dependency when thespringBoot
option is a falsy value. I personally think it doesn't make sense when we the user set it tofalse
explicitly.gretty/libs/gretty/src/main/groovy/org/akhikhl/gretty/ProjectUtils.groovy
Line 256 in 85dabc1
So this PR is to solve the problem above. It will use the
springBoot
option set by the user with higher priority. And fallback to the spring boot detection logic if not set.