-
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 metadata for gradle/maven repositories and separate gradle plugin version #11296
Conversation
...ces/bundled-codestarts/tooling/dockerfiles/base/src/main/docker/Dockerfile.tpl.qute.fast-jar
Show resolved
Hide resolved
@maxandersen I think we can merge this anyway? |
I would remove the docker changes. Not sure I see a usecase for them. We need to add in this or other passing of maven parameters to the old cidegen. |
It's better to have them as data in one place (easier to maintain)
I will do that in another PR |
It should be alright, but I am not yet sure I applied the change everywhare, waiting for my fork CI tests to pass. I will also need to take some stuff from this to put in 1.7.X (as a separate dedicated lighter PR) |
snap I closed it some way with my keyboard :-/ |
ecec626
to
7f96623
Compare
...dent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/project/BuildTool.java
Show resolved
Hide resolved
… version As part of quarkusio#11256
@maxandersen @aloubyansky @gastaldi this PR is ready to be reviewed |
@maxandersen @gsmet @mgorniew fyi this PR is pretty important/urgent as it also fixes the Gradle wrapper that was in the wrong directory (for Gradle Kotlin DSL in codestarts only).. |
# Plugin metadata | ||
plugin-groupId=${project.groupId} | ||
plugin-artifactId=quarkus-maven-plugin | ||
plugin-version=${project.version} |
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.
Removing plugin-version will break QuarkusJsonPlatformDescriptorResolver.getBundledPlatformQuarkusVersionOrNull()
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.
Is this targeting 1.8.x?
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.
yes it is targeting 1.8.x (should be alright right?). This is why I made a different PR for 1.7.x #11439
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.
wait - why are we talking about removing plugin-version ?
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.
Yes, there was too much confusion in the code with it (it was used as quarkus-core-version), it is now split in 3:
quarkus-core-version=${project.version}
...
maven-plugin-version=${project.version}
...
gradle-plugin-version=${project.version}
...-common/src/main/java/io/quarkus/devtools/commands/handlers/CreateProjectCommandHandler.java
Show resolved
Hide resolved
...criptor-json/src/main/resources/bundled-codestarts/buildtool/gradle-kotlin-dsl/codestart.yml
Show resolved
Hide resolved
...-json/src/main/resources/bundled-codestarts/buildtool/gradle/base/gradle.tpl.qute.properties
Show resolved
Hide resolved
...form-descriptor-json/src/main/resources/bundled-codestarts/tooling/dockerfiles/codestart.yml
Show resolved
Hide resolved
...form-descriptor-json/src/main/resources/bundled-codestarts/tooling/dockerfiles/codestart.yml
Show resolved
Hide resolved
@@ -711,12 +711,7 @@ private static String getBundledPlatformQuarkusVersionOrNull() { | |||
} catch (IOException e) { | |||
throw new IllegalStateException("Failed to load quarkus.properties from the classpath", e); | |||
} | |||
final String quarkusVersion = props.getProperty("plugin-version"); |
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.
hmm - isn't there cases where plugin-version is the only thing availalbe as a fallback?
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.
It would only fail with an older version of the platform I believe. But we don't have to do backward compat on new major, right @aloubyansky?
IMHO it's better to be not compatible here, than failing somewhere else because we missed something.
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.
you aren't guaranteed to have a platform - even in newer versions.
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.
misspoke - or rather, users can make a pom that has no platform ref; but that is not reelvant for here as this is during fully controlled codegenaration.
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.
It seems you are mixing with something else right?
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.
generally looks ok - just a few comment/questions to clarify.
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
As part of #11256
This PR:
maven
plugin version fromgradle
plugin version as they are independent (even if the same for now) and make it customizable at platform levelquarkus.properties
props naming more intuitive becauseplugin-version
was often misused in the code