build: Pass -AlegacyConfigRoot to the compiler.

This is required while we are still using @ConfigRoot, which is
deprecated in favor of @ConfigMapping.

Change-Id: I07a97661ff874466e65f3d7a4d029aca63beea5d
diff --git a/deployment/pom.xml b/deployment/pom.xml
index f1b2b6f..b120f29 100644
--- a/deployment/pom.xml
+++ b/deployment/pom.xml
@@ -65,6 +65,23 @@
             </path>
           </annotationProcessorPaths>
         </configuration>
+        <executions>
+          <execution>
+            <id>default-compile</id>
+            <configuration>
+              <annotationProcessorPaths>
+                <path>
+                  <groupId>io.quarkus</groupId>
+                  <artifactId>quarkus-extension-processor</artifactId>
+                  <version>${quarkus.version}</version>
+                </path>
+              </annotationProcessorPaths>
+              <compilerArgs>
+                <arg>-AlegacyConfigRoot=true</arg>
+              </compilerArgs>
+            </configuration>
+          </execution>
+        </executions>
       </plugin>
     </plugins>
   </build>
diff --git a/runtime/pom.xml b/runtime/pom.xml
index 89eb805..0f5befc 100644
--- a/runtime/pom.xml
+++ b/runtime/pom.xml
@@ -84,6 +84,23 @@
             </path>
           </annotationProcessorPaths>
         </configuration>
+        <executions>
+          <execution>
+            <id>default-compile</id>
+            <configuration>
+              <annotationProcessorPaths>
+                <path>
+                  <groupId>io.quarkus</groupId>
+                  <artifactId>quarkus-extension-processor</artifactId>
+                  <version>${quarkus.version}</version>
+                </path>
+              </annotationProcessorPaths>
+              <compilerArgs>
+                <arg>-AlegacyConfigRoot=true</arg>
+              </compilerArgs>
+            </configuration>
+          </execution>
+        </executions>
       </plugin>
 
       <plugin>