1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 3    <modelVersion>4.0.0</modelVersion>
 4    <groupId>oracle.code</groupId>
 5    <version>1.0</version>
 6    <artifactId>hat.root</artifactId>
 7    <packaging>pom</packaging>
 8    <properties>
 9         <babylon.repo.name>babylon</babylon.repo.name>  <!--replace with your fork name -->
10         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
11         <maven.compiler.source>24</maven.compiler.source>
12         <maven.compiler.target>24</maven.compiler.target>
13         <github.dir>${env.HOME}/github</github.dir>
14         <beehive.spirv.toolkit.dir>${github.dir}/beehive-spirv-toolkit/</beehive.spirv.toolkit.dir>
15         <babylon.dir>${github.dir}/${babylon.repo.name}</babylon.dir>
16         <hat.dir>${babylon.dir}/hat</hat.dir>
17         <hat.target>${hat.dir}/maven-build</hat.target>
18    </properties>
19 
20    <profiles>
21 
22        <profile>
23           <id>default</id>
24           <activation>
25              <activeByDefault>true</activeByDefault>
26           </activation>
27           <modules>
28              <module>hat</module>
29              <module>backends</module>
30              <module>examples</module>
31           </modules>
32        </profile>
33 
34        <profile>
35           <id>hattricks</id>
36           <activation>
37              <file>
38                 <exists>hattricks</exists>
39              </file>
40           </activation>
41           <modules>
42              <module>hat</module>
43              <module>backends</module>
44              <module>examples</module>
45              <module>hattricks</module>
46           </modules>
47        </profile>
48    </profiles>
49    <build>
50       <plugins>
51           <plugin>
52              <groupId>org.apache.maven.plugins</groupId>
53              <artifactId>maven-compiler-plugin</artifactId>
54              <version>3.11.0</version>
55              <configuration>
56                 <compilerArgs>
57                     <arg>--enable-preview</arg>
58                     <arg>--add-exports=java.base/jdk.internal=ALL-UNNAMED</arg>
59                     <arg>--add-exports=java.base/jdk.internal.vm.annotation=ALL-UNNAMED</arg>
60                 </compilerArgs>
61                 <source>${maven.compiler.source}</source>
62                 <target>${maven.compiler.target}</target>
63                 <showDeprecation>true</showDeprecation>
64                 <failOnError>true</failOnError>
65                 <showWarnings>true</showWarnings>
66                 <showDeprecation>true</showDeprecation>
67             </configuration>
68          </plugin>
69      </plugins>
70    </build>
71 
72 </project>