-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 'plugins' instead of 'apply plugin' in gradle-it #1926
use 'plugins' instead of 'apply plugin' in gradle-it #1926
Conversation
well that TODO is exactly the reason for which I'd not use the IDs :) I'd agree this is the way people should be using a tagger release once we publish them on the Gradle plugin portal, but I don't think we can benefit from the nicer syntax within our strange build. |
I don't have a clear idea. AFAIK, a typical gradle plugin test would use the Gradle test kit (see https://docs.gradle.org/current/userguide/test_kit.html#sub:test-kit-automatic-classpath-injection). In this case, if it's not possible to publish the plugin in mavenLocal before executing this integration test, I guess applying the plugin imperatively is indeed the easiest solution. |
@jnizet So while I am thinking this through more, technically the built plugin IS of course actually already published into mavenLocal in
@Sanne Why is just using |
it's based on several assumptions which might not hold:
Sure they aren't very likely, but also I don't see why not keeping it as is as it's slightly safer. Sure it looks horrible but it's temporary :) I wouldn't bother too much with this either. As soon as build related tasks "calm down" and some relatively stable APIs emerge, I suggest we move the gradle related bits to a fully Gradle based project (but wouldn't move it yet: too many things changing too fast ;-) ) One thing we could do already is to merge the two modules: the Gradle build plugin and its integration tests could totally coexist in the same module, and use the Gradle test kit. I was going to try doing that but didn't have time yet - I know @stalep agrees as well. If you're familiar with Gradle maybe do that instead? |
I do know what you mean, but isn't everyone using Maven resigned to More seriously, if Quarkus currently actually builds fine with just
There is always
I would rather go step by step and focus on having finishing up v1.0 of #1623, first.
I've no idea how to do that. In an overall Maven based project like this, it actually seems better to me not to rely on pure Gradle world IT - ultimately what this produces, from Maven, has to work with a "standalone" Gradle project. (I'm even wondering if the Quick Start couldn't be used for an IT, but that's perhaps for later.) So #1954 is a (first step of) doing it differently - using a |
related to quarkusio#1623 just for consistency with the Quick Start and our doc on https://quarkus.io/guides/gradle-tooling and https://quarkus.io/guides/gradle-config.html FTR: This change does not actually fix the currently broken Gradle IT.
reproduced locally after wiping: ~/.m2/repository/javax/enterprise/cdi-api/ ~/.m2/repository/commons-logging ~/.m2/repository/org/jboss/xnio
see details in discussion of PR
see details for why in quarkusio#1926 related to quarkusio#1623
45e02c5
to
7b10013
Compare
see details for why in quarkusio#1926 related to quarkusio#1623
see details for why in quarkusio#1926 related to quarkusio#1623
and #1985 |
use 'plugins' instead of 'apply plugin' in gradle-it but avoid using mavenLocal() in devtools/gradle-it (see details for why in quarkusio#1926) related to quarkusio#1623 and for consistency with the Quick Start and our doc on https://quarkus.io/guides/gradle-tooling and https://quarkus.io/guides/gradle-config.html
closing it as #1929 is doing the same and more |
related to #1623
just for consistency with the Quick Start and our doc on https://quarkus.io/guides/gradle-tooling and https://quarkus.io/guides/gradle-config.html
FTR: This change does not actually fix the currently broken Gradle IT.