This is an automated email from the ASF dual-hosted git repository.

leerho pushed a commit to branch frank_grimes_java-21-ffm
in repository https://gitbox.apache.org/repos/asf/datasketches-memory.git


The following commit(s) were added to refs/heads/frank_grimes_java-21-ffm by 
this push:
     new 9db3bfb  create "enable.preview" property in pom
9db3bfb is described below

commit 9db3bfb0bb5fed60755298b5c2d452beddf5e4d9
Author: Lee Rhodes <[email protected]>
AuthorDate: Tue Nov 26 11:53:00 2024 -0800

    create "enable.preview" property in pom
---
 pom.xml | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/pom.xml b/pom.xml
index ff6036f..14d811e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -90,9 +90,10 @@ under the License.
     <!-- System-wide properties -->
     <maven.version>3.6.3</maven.version>
     <java.version>21</java.version>
+    <enable.preview>--enable-preview</enable.preview>
     <maven.compiler.source>${java.version}</maven.compiler.source>
     <maven.compiler.target>${java.version}</maven.compiler.target>
-    <argLine>-Xmx4g -Duser.language=en -Duser.country=US -Dfile.encoding=UTF-8 
--enable-preview</argLine>
+    <argLine>-Xmx4g -Duser.language=en -Duser.country=US -Dfile.encoding=UTF-8 
${enable.preview}</argLine>
     <charset.encoding>UTF-8</charset.encoding>
     
<project.build.sourceEncoding>${charset.encoding}</project.build.sourceEncoding>
     
<project.build.resourceEncoding>${charset.encoding}</project.build.resourceEncoding>
@@ -161,8 +162,8 @@ under the License.
           <version>${maven-compiler-plugin.version}</version>
           <configuration>
             <release>21</release>
-            <compilerArgs>
-              <arg>--enable-preview</arg>
+             <compilerArgs>
+              <arg>${enable.preview}</arg>
             </compilerArgs>
           </configuration>
         </plugin>
@@ -236,7 +237,7 @@ under the License.
             
<excludePackageNames>org.apache.datasketches.memory/internal</excludePackageNames>
             <show>public</show>
             <additionalOptions>
-              <additionalOption>--enable-preview</additionalOption>
+              <additionalOption>${enable.preview}</additionalOption>
             </additionalOptions>
           </configuration>
           <executions>
@@ -282,7 +283,7 @@ under the License.
           <artifactId>maven-surefire-plugin</artifactId>
           <version>${maven-surefire-failsafe-plugins.version}</version>
           <configuration>
-            <argLine>--enable-preview</argLine>
+            <argLine>${enable.preview}</argLine>
             <trimStackTrace>false</trimStackTrace>
             <useManifestOnlyJar>false</useManifestOnlyJar>
             <redirectTestOutputToFile>true</redirectTestOutputToFile>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to