From c9844c1e6624b7e18c44f2bb352cae02923dc6be Mon Sep 17 00:00:00 2001 From: AFine-gs <69924417+AFine-gs@users.noreply.github.com> Date: Wed, 27 Sep 2023 09:54:03 -0400 Subject: [PATCH] add feature to auto generate protocol versions via maven (#2314) --- .../pom.xml | 38 ++++++++++++++++ .../pom.xml | 39 +++++++++++++++++ .../legend-engine-xt-avro-pure/pom.xml | 33 ++++++++++++++ .../pom.xml | 34 +++++++++++++++ .../pom.xml | 32 ++++++++++++++ .../pom.xml | 31 +++++++++++++ .../legend-engine-xt-protobuf-pure/pom.xml | 32 ++++++++++++++ .../pom.xml | 43 ++++++++++++++++++- .../pom.xml | 34 +++++++++++++++ .../pom.xml | 34 +++++++++++++++ .../pom.xml | 38 ++++++++++++++++ .../pom.xml | 34 +++++++++++++++ .../pom.xml | 38 ++++++++++++++++ .../pom.xml | 34 +++++++++++++++ .../pom.xml | 39 +++++++++++++++++ .../pom.xml | 38 ++++++++++++++++ pom.xml | 10 +++++ 17 files changed, 579 insertions(+), 2 deletions(-) diff --git a/legend-engine-pure/legend-engine-pure-code/legend-engine-pure-code-compiled-core/pom.xml b/legend-engine-pure/legend-engine-pure-code/legend-engine-pure-code-compiled-core/pom.xml index 1f6ec0e4aa4..0797f096fbd 100644 --- a/legend-engine-pure/legend-engine-pure-code/legend-engine-pure-code-compiled-core/pom.xml +++ b/legend-engine-pure/legend-engine-pure-code/legend-engine-pure-code-compiled-core/pom.xml @@ -368,4 +368,42 @@ + + + generate-protocol-version + + core/pure/binding/protocols/pure + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + create-protocol-file + generate-sources + + run + + + + + + + + + + + + + + + + + + + + + diff --git a/legend-engine-xts-authentication/legend-engine-xt-authentication-pure/pom.xml b/legend-engine-xts-authentication/legend-engine-xt-authentication-pure/pom.xml index 10224a6da84..4bbe6abe39c 100644 --- a/legend-engine-xts-authentication/legend-engine-xt-authentication-pure/pom.xml +++ b/legend-engine-xts-authentication/legend-engine-xt-authentication-pure/pom.xml @@ -155,4 +155,43 @@ + + + + generate-protocol-version + + core_authentication/pure + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + create-protocol-file + generate-sources + + run + + + + + + + + + + + + + + + + + + + + + diff --git a/legend-engine-xts-avro/legend-engine-xt-avro-pure/pom.xml b/legend-engine-xts-avro/legend-engine-xt-avro-pure/pom.xml index c4e15d43a24..9a55104f29b 100644 --- a/legend-engine-xts-avro/legend-engine-xt-avro-pure/pom.xml +++ b/legend-engine-xts-avro/legend-engine-xt-avro-pure/pom.xml @@ -198,4 +198,37 @@ + + + + generate-protocol-version + + core_external_format_avro/protocol + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + create-protocol-file + generate-sources + + run + + + + + + + + + + + + + + + diff --git a/legend-engine-xts-elasticsearch/legend-engine-xt-elasticsearch-V7-pure-metamodel/pom.xml b/legend-engine-xts-elasticsearch/legend-engine-xt-elasticsearch-V7-pure-metamodel/pom.xml index a7a9726b5d0..720e6bc8eae 100644 --- a/legend-engine-xts-elasticsearch/legend-engine-xt-elasticsearch-V7-pure-metamodel/pom.xml +++ b/legend-engine-xts-elasticsearch/legend-engine-xt-elasticsearch-V7-pure-metamodel/pom.xml @@ -213,4 +213,38 @@ + + + + generate-protocol-version + + core_elasticsearch_seven_metamodel/protocol + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + create-protocol-file + generate-sources + + run + + + + + + + + + + + + + + + + diff --git a/legend-engine-xts-generation/legend-engine-language-pure-dsl-generation-pure/pom.xml b/legend-engine-xts-generation/legend-engine-language-pure-dsl-generation-pure/pom.xml index 99811b1601f..0f73add8da8 100644 --- a/legend-engine-xts-generation/legend-engine-language-pure-dsl-generation-pure/pom.xml +++ b/legend-engine-xts-generation/legend-engine-language-pure-dsl-generation-pure/pom.xml @@ -27,9 +27,41 @@ jar Legend Engine - Language Pure - DSL Generation - PAR/JAVA + + + generate-protocol-version + + core_generation/generation/protocol + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + create-protocol-file + generate-sources + + run + + + + + + + + + + + + + + + org.finos.legend.pure diff --git a/legend-engine-xts-mongodb/legend-engine-xt-nonrelationalStore-mongodb-pure/pom.xml b/legend-engine-xts-mongodb/legend-engine-xt-nonrelationalStore-mongodb-pure/pom.xml index 9111dcacfcf..45a5a2ae99f 100644 --- a/legend-engine-xts-mongodb/legend-engine-xt-nonrelationalStore-mongodb-pure/pom.xml +++ b/legend-engine-xts-mongodb/legend-engine-xt-nonrelationalStore-mongodb-pure/pom.xml @@ -228,4 +228,35 @@ + + + + generate-protocol-version + + + + org.apache.maven.plugins + maven-antrun-plugin + + + create-protocol-file + generate-sources + + run + + + + + + + + + + + + + + + + diff --git a/legend-engine-xts-protobuf/legend-engine-xt-protobuf-pure/pom.xml b/legend-engine-xts-protobuf/legend-engine-xt-protobuf-pure/pom.xml index 81f8de892e3..489c92e763e 100644 --- a/legend-engine-xts-protobuf/legend-engine-xt-protobuf-pure/pom.xml +++ b/legend-engine-xts-protobuf/legend-engine-xt-protobuf-pure/pom.xml @@ -196,4 +196,36 @@ + + + + generate-protocol-version + + core_external_format_protobuf/protocol + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + create-protocol-file + generate-sources + + run + + + + + + + + + + + + + + diff --git a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-athena/legend-engine-xt-relationalStore-athena-pure/pom.xml b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-athena/legend-engine-xt-relationalStore-athena-pure/pom.xml index b0518698f8f..fa9dc3fbd13 100644 --- a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-athena/legend-engine-xt-relationalStore-athena-pure/pom.xml +++ b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-athena/legend-engine-xt-relationalStore-athena-pure/pom.xml @@ -215,7 +215,46 @@ jackson-core test - - + + + + + + generate-protocol-version + + core_relational_athena/relational/protocols/pure + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + create-protocol-file + generate-sources + + run + + + + + + + + + + + + + + + + + + + + + diff --git a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-bigquery/legend-engine-xt-relationalStore-bigquery-pure/pom.xml b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-bigquery/legend-engine-xt-relationalStore-bigquery-pure/pom.xml index e3fbb8e0466..81083651d80 100644 --- a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-bigquery/legend-engine-xt-relationalStore-bigquery-pure/pom.xml +++ b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-bigquery/legend-engine-xt-relationalStore-bigquery-pure/pom.xml @@ -248,4 +248,38 @@ + + + + generate-protocol-version + + core_relational_bigquery/relational/protocols/pure + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + create-protocol-file + generate-sources + + run + + + + + + + + + + + + + + + + diff --git a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-databricks/legend-engine-xt-relationalStore-databricks-pure/pom.xml b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-databricks/legend-engine-xt-relationalStore-databricks-pure/pom.xml index 8e2f9242c19..33f0ad7b0f0 100644 --- a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-databricks/legend-engine-xt-relationalStore-databricks-pure/pom.xml +++ b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-databricks/legend-engine-xt-relationalStore-databricks-pure/pom.xml @@ -238,4 +238,38 @@ + + + + generate-protocol-version + + core_relational_databricks/relational/protocols/pure + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + create-protocol-file + generate-sources + + run + + + + + + + + + + + + + + + + diff --git a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-redshift/legend-engine-xt-relationalStore-redshift-pure/pom.xml b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-redshift/legend-engine-xt-relationalStore-redshift-pure/pom.xml index cd7a13760cb..d1cd36dd209 100644 --- a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-redshift/legend-engine-xt-relationalStore-redshift-pure/pom.xml +++ b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-redshift/legend-engine-xt-relationalStore-redshift-pure/pom.xml @@ -238,4 +238,42 @@ + + + + generate-protocol-version + + core_relational_redshift/relational/protocols/pure + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + create-protocol-file + generate-sources + + run + + + + + + + + + + + + + + + + + + + + diff --git a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-snowflake/legend-engine-xt-relationalStore-snowflake-pure/pom.xml b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-snowflake/legend-engine-xt-relationalStore-snowflake-pure/pom.xml index 03df6a3a431..5c98204c4ea 100644 --- a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-snowflake/legend-engine-xt-relationalStore-snowflake-pure/pom.xml +++ b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-snowflake/legend-engine-xt-relationalStore-snowflake-pure/pom.xml @@ -250,4 +250,38 @@ + + + + generate-protocol-version + + core_relational_snowflake/relational/protocols/pure + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + create-protocol-file + generate-sources + + run + + + + + + + + + + + + + + + + diff --git a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-spanner/legend-engine-xt-relationalStore-spanner-pure/pom.xml b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-spanner/legend-engine-xt-relationalStore-spanner-pure/pom.xml index 3d8b2774abf..9615c4f03bb 100644 --- a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-spanner/legend-engine-xt-relationalStore-spanner-pure/pom.xml +++ b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-spanner/legend-engine-xt-relationalStore-spanner-pure/pom.xml @@ -221,4 +221,42 @@ + + + + generate-protocol-version + + core_relational_spanner/relational/protocols/pure + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + create-protocol-file + generate-sources + + run + + + + + + + + + + + + + + + + + + + + diff --git a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-trino/legend-engine-xt-relationalStore-trino-pure/pom.xml b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-trino/legend-engine-xt-relationalStore-trino-pure/pom.xml index 39418782de9..e992dbf6c73 100644 --- a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-trino/legend-engine-xt-relationalStore-trino-pure/pom.xml +++ b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-dbExtension/legend-engine-xt-relationalStore-trino/legend-engine-xt-relationalStore-trino-pure/pom.xml @@ -238,4 +238,38 @@ + + + + generate-protocol-version + + core_relational_trino/relational/protocols/pure + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + create-protocol-file + generate-sources + + run + + + + + + + + + + + + + + + + diff --git a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-generation/legend-engine-xt-relationalStore-pure/pom.xml b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-generation/legend-engine-xt-relationalStore-pure/pom.xml index a5481b7b18f..f6b70b45e41 100644 --- a/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-generation/legend-engine-xt-relationalStore-pure/pom.xml +++ b/legend-engine-xts-relationalStore/legend-engine-xt-relationalStore-generation/legend-engine-xt-relationalStore-pure/pom.xml @@ -330,6 +330,45 @@ test + + + + + generate-protocol-version + + core_relational/relational/protocols/pure + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + create-protocol-file + generate-sources + + run + + + + + + + + + + + + + + + + + + + + diff --git a/legend-engine-xts-serviceStore/legend-engine-xt-serviceStore-pure/pom.xml b/legend-engine-xts-serviceStore/legend-engine-xt-serviceStore-pure/pom.xml index ea33e74cb45..2b541b9a3a5 100644 --- a/legend-engine-xts-serviceStore/legend-engine-xt-serviceStore-pure/pom.xml +++ b/legend-engine-xts-serviceStore/legend-engine-xt-serviceStore-pure/pom.xml @@ -283,4 +283,42 @@ + + + generate-protocol-version + + core_servicestore/protocols/pure + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + create-protocol-file + generate-sources + + run + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 13b04ba8c4b..21a42fd4634 100644 --- a/pom.xml +++ b/pom.xml @@ -3094,5 +3094,15 @@ + + generate-protocol-version + + vX_X_X + v1_33_0 + + + + +