adjust paths
[yosql.git] / yosql-models / yosql-models-immutables / pom.xml
blob0aa6a1929a71151c4c24433333700d0b55d5d5cf
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ This file is part of yosql. It is subject to the license terms in the LICENSE file found in the top-level
4   ~ directory of this distribution and at http://creativecommons.org/publicdomain/zero/1.0/. No part of yosql,
5   ~ including this file, may be copied, modified, propagated, or distributed except according to the terms contained
6   ~ in the LICENSE file.
7   -->
9 <project xmlns="http://maven.apache.org/POM/4.0.0"
10          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12     <parent>
13         <groupId>wtf.metio.yosql.models</groupId>
14         <artifactId>yosql-models</artifactId>
15         <version>0.0.0-SNAPSHOT</version>
16     </parent>
18     <modelVersion>4.0.0</modelVersion>
20     <artifactId>yosql-models-immutables</artifactId>
22     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
23     <!--                               INFORMATIONS                              -->
24     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
25     <!-- https://maven.apache.org/pom.html#More_Project_Information -->
26     <name>YoSQL :: Models :: Immutables</name>
28     <dependencies>
29         <dependency>
30             <groupId>wtf.metio.yosql.internals</groupId>
31             <artifactId>yosql-internals-jdk-utils</artifactId>
32             <version>${project.version}</version>
33         </dependency>
34         <dependency>
35             <groupId>wtf.metio.yosql.models</groupId>
36             <artifactId>yosql-models-constants</artifactId>
37             <version>${project.version}</version>
38         </dependency>
39         <dependency>
40             <groupId>wtf.metio.yosql.models</groupId>
41             <artifactId>yosql-models-sql</artifactId>
42             <version>${project.version}</version>
43         </dependency>
44         <dependency>
45             <groupId>com.squareup</groupId>
46             <artifactId>javapoet</artifactId>
47         </dependency>
48         <dependency>
49             <groupId>org.immutables</groupId>
50             <artifactId>value</artifactId>
51             <version>2.8.8</version>
52             <scope>provided</scope>
53         </dependency>
54         <dependency>
55             <artifactId>jackson-dataformat-yaml</artifactId>
56             <groupId>com.fasterxml.jackson.dataformat</groupId>
57             <version>2.12.1</version>
58         </dependency>
59         <dependency>
60             <artifactId>jackson-databind</artifactId>
61             <groupId>com.fasterxml.jackson.core</groupId>
62             <version>2.12.1</version>
63         </dependency>
64         <dependency>
65             <artifactId>jackson-core</artifactId>
66             <groupId>com.fasterxml.jackson.core</groupId>
67             <version>2.12.1</version>
68         </dependency>
69     </dependencies>
71     <build>
72         <plugins>
73             <plugin>
74                 <groupId>wtf.metio.yosql.models</groupId>
75                 <artifactId>yosql-models-generator</artifactId>
76                 <version>${project.version}</version>
77                 <executions>
78                     <execution>
79                         <goals>
80                             <goal>generate</goal>
81                         </goals>
82                         <phase>generate-sources</phase>
83                         <configuration>
84                             <type>immutables</type>
85                         </configuration>
86                     </execution>
87                 </executions>
88             </plugin>
89             <plugin>
90                 <groupId>org.apache.maven.plugins</groupId>
91                 <artifactId>maven-compiler-plugin</artifactId>
92                 <version>3.8.1</version>
93                 <configuration>
94                     <release>15</release>
95                 </configuration>
96                 <executions>
97                     <execution>
98                         <id>process-immutables-annotations</id>
99                         <goals>
100                             <goal>compile</goal>
101                         </goals>
102                         <phase>process-sources</phase>
103                         <configuration>
104                             <includes>
105                                 <include>${project.build.sourceDirectory/**/*.java</include>
106                                 <include>${project.build.directory}/generated-sources/yosql/**/*.java</include>
107                             </includes>
108                             <proc>only</proc>
109                         </configuration>
110                     </execution>
111                 </executions>
112             </plugin>
113             <plugin>
114                 <groupId>org.codehaus.mojo</groupId>
115                 <artifactId>build-helper-maven-plugin</artifactId>
116                 <version>3.2.0</version>
117                 <executions>
118                     <execution>
119                         <id>add-yosql-source</id>
120                         <phase>generate-sources</phase>
121                         <goals>
122                             <goal>add-source</goal>
123                         </goals>
124                         <configuration>
125                             <sources>
126                                 <source>${project.build.directory}/generated-sources/yosql</source>
127                             </sources>
128                         </configuration>
129                     </execution>
130                     <execution>
131                         <id>add-immutables-source</id>
132                         <phase>process-sources</phase>
133                         <goals>
134                             <goal>add-source</goal>
135                         </goals>
136                         <configuration>
137                             <sources>
138                                 <source>${project.build.directory}/generated-sources/annotations</source>
139                             </sources>
140                         </configuration>
141                     </execution>
142                 </executions>
143             </plugin>
144         </plugins>
145     </build>
146 </project>