From 3ee643eda62ba9acad0c925f15efe7e6dc563f11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Ruiz?= Date: Wed, 3 Jan 2024 16:56:06 +0100 Subject: [PATCH] fix: change manifest format default from "operationOutput" to "none" to make the change backwards compatible with 7.0.0 fixes aoudiamoncef/apollo-client-maven-plugin#84 --- apollo-client-maven-plugin-tests/pom.xml | 5 +++-- apollo-client-maven-plugin/pom.xml | 2 +- .../aoudiamoncef/apollo/plugin/config/CompilerParams.kt | 9 +++++++-- pom.xml | 2 +- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/apollo-client-maven-plugin-tests/pom.xml b/apollo-client-maven-plugin-tests/pom.xml index 4dd248b..5dfba74 100644 --- a/apollo-client-maven-plugin-tests/pom.xml +++ b/apollo-client-maven-plugin-tests/pom.xml @@ -5,7 +5,7 @@ com.github.aoudiamoncef apollo-client-maven-plugin-parent - 7.1.0 + 7.1.1-SNAPSHOT ../pom.xml @@ -105,7 +105,7 @@ com.github.aoudiamoncef apollo-client-maven-plugin - 7.1.0 + 7.1.1-SNAPSHOT @@ -150,6 +150,7 @@ + persistedQueryManifest com.lahzouz.apollo.graphql.client com.lahzouz.apollo.graphql.client OPERATION diff --git a/apollo-client-maven-plugin/pom.xml b/apollo-client-maven-plugin/pom.xml index e09d720..7614dc3 100644 --- a/apollo-client-maven-plugin/pom.xml +++ b/apollo-client-maven-plugin/pom.xml @@ -5,7 +5,7 @@ com.github.aoudiamoncef apollo-client-maven-plugin-parent - 7.1.0 + 7.1.1-SNAPSHOT ../pom.xml diff --git a/apollo-client-maven-plugin/src/main/kotlin/com/github/aoudiamoncef/apollo/plugin/config/CompilerParams.kt b/apollo-client-maven-plugin/src/main/kotlin/com/github/aoudiamoncef/apollo/plugin/config/CompilerParams.kt index 28b4006..787328a 100644 --- a/apollo-client-maven-plugin/src/main/kotlin/com/github/aoudiamoncef/apollo/plugin/config/CompilerParams.kt +++ b/apollo-client-maven-plugin/src/main/kotlin/com/github/aoudiamoncef/apollo/plugin/config/CompilerParams.kt @@ -85,9 +85,14 @@ class CompilerParams { /** * The format in which the operation manifest will be generated. * - * Default value: "operationOutput" + * Acceptable values: + * - `none`: No manifest will be generated + * - `operationOutput`: 'operationOutput' manifest format + * - `persistedQueryManifest`: Apollo's persistent query manifest format + * + * Default value: "none" */ - internal val operationManifestFormat: String = MANIFEST_OPERATION_OUTPUT + internal val operationManifestFormat: String = MANIFEST_NONE /** * Whether or not to generate Apollo metadata. Apollo metadata is used for multi-module support. Set this to true if you want other diff --git a/pom.xml b/pom.xml index ae5b768..f1f27a5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.github.aoudiamoncef apollo-client-maven-plugin-parent - 7.1.0 + 7.1.1-SNAPSHOT pom apollo-client-maven-plugin-parent