Move web security configuration to application module
[cps.git] / cps-application / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   Copyright (c) 2021 Pantheon.tech.
5   Modifications Copyright (C) 2021 Bell Canada.
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10
11         http://www.apache.org/licenses/LICENSE-2.0
12
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ============LICENSE_END=========================================================
19 -->
20
21 <project xmlns="http://maven.apache.org/POM/4.0.0"
22          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25
26     <parent>
27         <groupId>org.onap.cps</groupId>
28         <artifactId>cps-parent</artifactId>
29         <version>1.1.0-SNAPSHOT</version>
30         <relativePath>../cps-parent/pom.xml</relativePath>
31     </parent>
32
33     <artifactId>cps-application</artifactId>
34
35     <properties>
36         <app>org.onap.cps.Application</app>
37         <image.version>${project.version}</image.version>
38         <jib-maven-plugin.version>2.6.0</jib-maven-plugin.version>
39         <minimum-coverage>0.7</minimum-coverage>
40         <nexus.repository>nexus3.onap.org:10003/onap/</nexus.repository>
41     </properties>
42
43     <dependencies>
44         <dependency>
45             <groupId>org.springframework.boot</groupId>
46             <artifactId>spring-boot-starter-web</artifactId>
47             <exclusions>
48                 <exclusion>
49                     <groupId>org.springframework.boot</groupId>
50                     <artifactId>spring-boot-starter-tomcat</artifactId>
51                 </exclusion>
52             </exclusions>
53         </dependency>
54         <dependency>
55             <groupId>org.springframework.boot</groupId>
56             <artifactId>spring-boot-starter-jetty</artifactId>
57         </dependency>
58         <dependency>
59             <groupId>org.springframework.boot</groupId>
60             <artifactId>spring-boot-starter-security</artifactId>
61         </dependency>
62         <dependency>
63             <groupId>org.springframework.boot</groupId>
64             <artifactId>spring-boot-starter-actuator</artifactId>
65         </dependency>
66         <dependency>
67             <groupId>org.springframework.cloud</groupId>
68             <artifactId>spring-cloud-starter-sleuth</artifactId>
69         </dependency>
70         <!-- T E S T   D E P E N D E N C I E S -->
71         <dependency>
72             <groupId>org.springframework.security</groupId>
73             <artifactId>spring-security-test</artifactId>
74             <scope>test</scope>
75         </dependency>
76         <dependency>
77             <groupId>org.codehaus.groovy</groupId>
78             <artifactId>groovy</artifactId>
79             <scope>test</scope>
80         </dependency>
81         <dependency>
82             <groupId>org.spockframework</groupId>
83             <artifactId>spock-core</artifactId>
84             <scope>test</scope>
85         </dependency>
86         <dependency>
87             <groupId>org.spockframework</groupId>
88             <artifactId>spock-spring</artifactId>
89             <scope>test</scope>
90         </dependency>
91         <dependency>
92             <groupId>cglib</groupId>
93             <artifactId>cglib-nodep</artifactId>
94             <scope>test</scope>
95         </dependency>
96         <dependency>
97             <groupId>org.springframework.boot</groupId>
98             <artifactId>spring-boot-starter-test</artifactId>
99             <scope>test</scope>
100             <exclusions>
101                 <exclusion>
102                     <groupId>org.junit.vintage</groupId>
103                     <artifactId>junit-vintage-engine</artifactId>
104                 </exclusion>
105             </exclusions>
106         </dependency>
107     </dependencies>
108
109     <build>
110         <pluginManagement>
111             <plugins>
112                 <plugin>
113                     <groupId>com.google.cloud.tools</groupId>
114                     <artifactId>jib-maven-plugin</artifactId>
115                     <version>${jib-maven-plugin.version}</version>
116                     <configuration>
117                         <container>
118                             <mainClass>${app}</mainClass>
119                             <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
120                         </container>
121                         <from>
122                             <image>${base.image}</image>
123                         </from>
124                         <to>
125                             <tags>
126                                 <tag>latest</tag>
127                             </tags>
128                             <image>${nexus.repository}${image.name}:${image.version}</image>
129                         </to>
130                     </configuration>
131                     <executions>
132                         <execution>
133                             <phase>package</phase>
134                             <id>build</id>
135                             <goals>
136                                 <goal>dockerBuild</goal>
137                             </goals>
138                         </execution>
139                         <execution>
140                             <phase>deploy</phase>
141                             <id>buildAndPush</id>
142                             <goals>
143                                 <goal>build</goal>
144                             </goals>
145                         </execution>
146                     </executions>
147                 </plugin>
148             </plugins>
149         </pluginManagement>
150         <plugins>
151             <plugin>
152                 <groupId>org.springframework.boot</groupId>
153                 <artifactId>spring-boot-maven-plugin</artifactId>
154             </plugin>
155         </plugins>
156     </build>
157     <profiles>
158         <profile>
159             <id>cps-docker</id>
160             <activation>
161                 <activeByDefault>false</activeByDefault>
162             </activation>
163
164             <properties>
165                 <image.name>cps-service</image.name>
166             </properties>
167             <dependencies>
168                 <dependency>
169                     <groupId>${project.groupId}</groupId>
170                     <artifactId>cps-rest</artifactId>
171                 </dependency>
172                 <dependency>
173                     <groupId>${project.groupId}</groupId>
174                     <artifactId>cps-ri</artifactId>
175                 </dependency>
176             </dependencies>
177             <build>
178                 <plugins>
179                     <plugin>
180                         <groupId>com.google.cloud.tools</groupId>
181                         <artifactId>jib-maven-plugin</artifactId>
182                     </plugin>
183                 </plugins>
184             </build>
185         </profile>
186         <profile>
187             <id>xnf-docker</id>
188             <activation>
189                 <activeByDefault>false</activeByDefault>
190             </activation>
191
192             <properties>
193                 <image.name>cps-nf-proxy</image.name>
194             </properties>
195
196             <dependencies>
197                 <dependency>
198                     <groupId>${project.groupId}</groupId>
199                     <artifactId>cps-nf-proxy-rest</artifactId>
200                 </dependency>
201                 <dependency>
202                     <groupId>${project.groupId}</groupId>
203                     <artifactId>cps-ri</artifactId>
204                 </dependency>
205             </dependencies>
206             <build>
207                 <plugins>
208                     <plugin>
209                         <groupId>com.google.cloud.tools</groupId>
210                         <artifactId>jib-maven-plugin</artifactId>
211                     </plugin>
212                 </plugins>
213             </build>
214         </profile>
215         <profile>
216             <id>cps-xnf-docker</id>
217             <activation>
218                 <activeByDefault>true</activeByDefault>
219             </activation>
220
221             <properties>
222                 <image.name>cps-and-nf-proxy</image.name>
223             </properties>
224
225             <dependencies>
226                 <dependency>
227                     <groupId>${project.groupId}</groupId>
228                     <artifactId>cps-rest</artifactId>
229                 </dependency>
230                 <dependency>
231                     <groupId>${project.groupId}</groupId>
232                     <artifactId>cps-nf-proxy-rest</artifactId>
233                 </dependency>
234                 <dependency>
235                     <groupId>${project.groupId}</groupId>
236                     <artifactId>cps-ri</artifactId>
237                 </dependency>
238             </dependencies>
239             <build>
240                 <plugins>
241                     <plugin>
242                         <groupId>com.google.cloud.tools</groupId>
243                         <artifactId>jib-maven-plugin</artifactId>
244                     </plugin>
245                 </plugins>
246             </build>
247         </profile>
248     </profiles>
249 </project>