-
Notifications
You must be signed in to change notification settings - Fork 2
feat: Add package command #194
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
Conversation
@@ -77,6 +78,17 @@ java { | |||
} | |||
} | |||
|
|||
jar { |
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.
Used in the Dockerfile to build the MemDB plugin
@Setter protected Logger logger; | ||
@Setter protected String jsonSchema; | ||
|
||
@Setter protected String team; |
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.
We can't set these to @NonNull
as that will force them in the ctor and make it a breaking change
@@ -32,7 +31,7 @@ public interface Transform { | |||
public static List<Table> flattenTables(List<Table> tables) { | |||
Map<String, Table> flattenMap = new LinkedHashMap<>(); | |||
for (Table table : tables) { | |||
Table newTable = table.toBuilder().relations(Collections.emptyList()).build(); | |||
Table newTable = table.toBuilder().build(); |
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.
Emptying the relations makes it so the tables.json
is missing them as we call flattenTables
.
Did a check and it seems it not necessary to empty the relations nor it should impact anything else
docsDir = Paths.get(pluginDirectory, "docs").toString(); | ||
} | ||
|
||
initDist(); |
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.
logger.info("Building docker image {}", imageTag); | ||
// GITHUB_ACTOR and GITHUB_TOKEN are required for the Dockerfile to pull the CloudQuery Java | ||
// libs from GitHub Packages | ||
String githubActor = System.getenv("GITHUB_ACTOR"); |
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.
There's a tricky part with Java since we host the SDK on GitHub packages which requires a token to download libs, so we read it from env variables
🤖 I have created a release *beep* *boop* --- ## [0.0.23](v0.0.22...v0.0.23) (2024-03-26) ### Features * Add package command ([#194](#194)) ([05407bb](05407bb)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Fixes https://github.com/cloudquery/cloudquery-issues/issues/790