ppalaga commented on code in PR #23333: URL: https://github.com/apache/camel/pull/23333#discussion_r3275686131
########## dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/QuarkusPlatformMixin.java: ########## @@ -0,0 +1,125 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.dsl.jbang.core.commands; + +import java.util.Properties; +import java.util.function.Function; + +import org.apache.camel.dsl.jbang.core.common.QuarkusHelper; +import org.apache.camel.dsl.jbang.core.common.QuarkusHelper.QuarkusPlatformBom; +import org.apache.camel.tooling.maven.MavenArtifact; +import org.apache.camel.tooling.maven.MavenDownloader; +import org.apache.camel.tooling.maven.MavenGav; +import picocli.CommandLine; + +import static org.apache.camel.dsl.jbang.core.common.CamelJBangConstants.QUARKUS_EXTENSION_REGISTRY_BASE_URI; +import static org.apache.camel.dsl.jbang.core.common.CamelJBangConstants.QUARKUS_GROUP_ID; +import static org.apache.camel.dsl.jbang.core.common.CamelJBangConstants.QUARKUS_VERSION; + +/** + * Options related to Quarkus Platform. + */ +public class QuarkusPlatformMixin extends QuarkusExtensionRegistryMixin implements QuarkusPlatformMixinSpec { + + @CommandLine.Option(names = { + "--quarkus-group-id" }, description = "groupId of Quarkus Platform BOM; honored only if --quarkus-version is set", + defaultValue = "io.quarkus.platform") + String quarkusGroupId = "io.quarkus.platform"; + + @CommandLine.Option(names = { + "--quarkus-artifact-id" }, + description = "Deprecated. This value is not used anymore. It is kept only for backwards compatibility and will be removed in Camel 5.x. Camel commands may use either 'quarkus-bom' or 'quarkus-camel-bom' artifactIds dependening on the context.", Review Comment: Solved in 164c2bd ########## tooling/camel-tooling-maven/src/main/java/org/apache/camel/tooling/maven/MavenGav.java: ########## @@ -154,6 +154,25 @@ public static MavenGav parseGav(String gav, String defaultVersion) { return answer; } + /** + * @param gav {@code <groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>} + * @return a new {@link MavenGav} + */ + public static MavenGav parseMaveResolverString(String gaecv) { Review Comment: Solved in 164c2bd -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
