forked from strimzi/strimzi-kafka-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support maven-coords based connector build (strimzi#5407)
* Support maven-coords based connector build Signed-off-by: Stanislav Knot <sknot@redhat.com> * multistage build Signed-off-by: Stanislav Knot <sknot@redhat.com> * refactor Signed-off-by: Stanislav Knot <sknot@redhat.com> * fix test Signed-off-by: Stanislav Knot <sknot@redhat.com> * configurable maven image Signed-off-by: Stanislav Knot <sknot@redhat.com> * checksums Signed-off-by: Stanislav Knot <sknot@redhat.com> * addressing comments Signed-off-by: Stanislav Knot <sknot@redhat.com> * rename folder Signed-off-by: Stanislav Knot <sknot@redhat.com> * review comments Signed-off-by: Stanislav Knot <sknot@redhat.com> * review comments Signed-off-by: Stanislav Knot <sknot@redhat.com> * download jar in pre-stage Signed-off-by: Stanislav Knot <sknot@redhat.com> * spotbugs Signed-off-by: Stanislav Knot <sknot@redhat.com> * another review Signed-off-by: Stanislav Knot <sknot@redhat.com> * Tom B. code Signed-off-by: Stanislav Knot <sknot@redhat.com> * more comments Signed-off-by: Stanislav Knot <sknot@redhat.com> * review comments Signed-off-by: Stanislav Knot <sknot@redhat.com> * PR review Signed-off-by: Stanislav Knot <sknot@redhat.com> * rebase Signed-off-by: Stanislav Knot <sknot@redhat.com> * readme Signed-off-by: Stanislav Knot <sknot@redhat.com> * Maven plugins (strimzi#7) * wip Signed-off-by: Tom Bentley <tbentley@redhat.com> * Refactor Signed-off-by: Tom Bentley <tbentley@redhat.com> * A little more quoting Signed-off-by: Tom Bentley <tbentley@redhat.com> Signed-off-by: Stanislav Knot <sknot@redhat.com> * Tom's tweaks Signed-off-by: Stanislav Knot <sknot@redhat.com> Co-authored-by: Tom Bentley <tombentley@users.noreply.github.com>
- Loading branch information
1 parent
32be8cb
commit 14b0dc4
Showing
19 changed files
with
637 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
api/src/main/java/io/strimzi/api/kafka/model/connect/build/MavenArtifact.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/* | ||
* Copyright Strimzi authors. | ||
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). | ||
*/ | ||
package io.strimzi.api.kafka.model.connect.build; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
import io.strimzi.api.kafka.model.Constants; | ||
import io.strimzi.crdgenerator.annotations.Description; | ||
import io.sundr.builder.annotations.Buildable; | ||
import io.vertx.core.cli.annotations.DefaultValue; | ||
import lombok.EqualsAndHashCode; | ||
|
||
/** | ||
* Maven artifact represents an artifact which is downloaded from Maven repository | ||
*/ | ||
@Buildable( | ||
editableEnabled = false, | ||
builderPackage = Constants.FABRIC8_KUBERNETES_API | ||
) | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonPropertyOrder({ "repository", "group", "artifact", "version" }) | ||
@EqualsAndHashCode | ||
public class MavenArtifact extends Artifact { | ||
private static final long serialVersionUID = 1L; | ||
public static final String DEFAULT_REPOSITORY = "https://repo1.maven.org/maven2/"; | ||
|
||
private String group; | ||
private String artifact; | ||
private String version; | ||
private String repository; | ||
|
||
@Description("Must be `" + TYPE_MVN + "`") | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@Override | ||
public String getType() { | ||
return TYPE_MVN; | ||
} | ||
|
||
@Description("Maven group id. Applicable to the `maven` artifact type only.") | ||
public String getGroup() { | ||
return group; | ||
} | ||
|
||
public void setGroup(String group) { | ||
this.group = group; | ||
} | ||
|
||
@Description("Maven artifact id. Applicable to the `maven` artifact type only.") | ||
public String getArtifact() { | ||
return artifact; | ||
} | ||
|
||
public void setArtifact(String artifact) { | ||
this.artifact = artifact; | ||
} | ||
|
||
@Description("Maven version number. Applicable to the `maven` artifact type only.") | ||
public String getVersion() { | ||
return version; | ||
} | ||
|
||
public void setVersion(String version) { | ||
this.version = version; | ||
} | ||
|
||
@Description("Maven repository to download the artifact from. Applicable to the `maven` artifact type only.") | ||
@DefaultValue("https://repo1.maven.org/maven2/") | ||
public String getRepository() { | ||
return repository; | ||
} | ||
|
||
public void setRepository(String repository) { | ||
this.repository = repository; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.