throw GradleException
[yosql.git] / yosql-tooling / yosql-tooling-cli / pom.xml
blob9fd009b23626881c0bcb9a3a55bde6bb3559467a
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 https://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   -->
8 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9          xmlns="http://maven.apache.org/POM/4.0.0"
10          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11     <modelVersion>4.0.0</modelVersion>
13     <!-- ordering follows https://maven.apache.org/developers/conventions/code.html#POM_Code_Convention -->
15     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
16     <!--                                 PARENT                                  -->
17     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
18     <!-- https://maven.apache.org/pom.html#Inheritance -->
19     <parent>
20         <groupId>wtf.metio.yosql.tooling</groupId>
21         <artifactId>yosql-tooling</artifactId>
22         <version>0.0.0-SNAPSHOT</version>
23     </parent>
25     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
26     <!--                               COORDINATES                               -->
27     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
28     <!-- https://maven.apache.org/pom.html#Maven_Coordinates -->
29     <artifactId>yosql-tooling-cli</artifactId>
31     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
32     <!--                               INFORMATIONS                              -->
33     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
34     <!-- https://maven.apache.org/pom.html#More_Project_Information -->
35     <name>YoSQL :: Tooling :: CLI</name>
37     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
38     <!--                               DEPENDENCIES                              -->
39     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
40     <!-- https://maven.apache.org/pom.html#Dependencies -->
41     <dependencies>
42         <dependency>
43             <groupId>wtf.metio.yosql.tooling</groupId>
44             <artifactId>yosql-tooling-dagger</artifactId>
45             <version>${project.version}</version>
46         </dependency>
47         <dependency>
48             <groupId>ch.qos.cal10n</groupId>
49             <artifactId>cal10n-api</artifactId>
50         </dependency>
51         <dependency>
52             <groupId>org.slf4j</groupId>
53             <artifactId>slf4j-ext</artifactId>
54         </dependency>
55         <dependency>
56             <groupId>org.slf4j</groupId>
57             <artifactId>slf4j-api</artifactId>
58         </dependency>
59         <dependency>
60             <groupId>info.picocli</groupId>
61             <artifactId>picocli</artifactId>
62         </dependency>
63     </dependencies>
65     <build>
66         <plugins>
67             <plugin>
68                 <groupId>org.apache.maven.plugins</groupId>
69                 <artifactId>maven-compiler-plugin</artifactId>
70                 <configuration>
71                     <annotationProcessorPaths>
72                         <path>
73                             <groupId>info.picocli</groupId>
74                             <artifactId>picocli-codegen</artifactId>
75                             <version>4.6.3</version>
76                         </path>
77                     </annotationProcessorPaths>
78                     <compilerArgs>
79                         <arg>-Aproject=${project.groupId}/${project.artifactId}</arg>
80                     </compilerArgs>
81                     <source>17</source>
82                     <target>17</target>
83                 </configuration>
84             </plugin>
85             <plugin>
86                 <groupId>org.codehaus.mojo</groupId>
87                 <artifactId>templating-maven-plugin</artifactId>
88                 <executions>
89                     <execution>
90                         <id>filter-src</id>
91                         <goals>
92                             <goal>filter-sources</goal>
93                         </goals>
94                     </execution>
95                 </executions>
96             </plugin>
97             <plugin>
98                 <groupId>wtf.metio.yosql.models</groupId>
99                 <artifactId>yosql-models-generator</artifactId>
100                 <version>${project.version}</version>
101                 <executions>
102                     <execution>
103                         <goals>
104                             <goal>generate</goal>
105                         </goals>
106                         <phase>generate-sources</phase>
107                         <configuration>
108                             <type>cli</type>
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.3.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                 </executions>
131             </plugin>
132         </plugins>
133     </build>
135 </project>