eikrwaq | 5eb9cfd | 2018-05-22 09:48:30 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
| 3 | Copyright (C) 2018 Ericsson. All rights reserved. |
Pamela Dragosh | 81c8b33 | 2020-02-07 07:19:37 -0500 | [diff] [blame] | 4 | Modifications Copyright (C) 2020 AT&T. All rights reserved. |
eikrwaq | 5eb9cfd | 2018-05-22 09:48:30 +0100 | [diff] [blame] | 5 | ================================================================================ |
| 6 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | you may not use this file except in compliance with the License. |
| 8 | You may obtain a copy of the License at |
| 9 | |
| 10 | http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | |
| 12 | Unless required by applicable law or agreed to in writing, software |
| 13 | distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | See the License for the specific language governing permissions and |
| 16 | limitations under the License. |
| 17 | |
| 18 | SPDX-License-Identifier: Apache-2.0 |
| 19 | ============LICENSE_END========================================================= |
| 20 | --> |
liamfallon | e2f4c02 | 2018-10-31 10:50:49 +0000 | [diff] [blame] | 21 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
eikrwaq | 5eb9cfd | 2018-05-22 09:48:30 +0100 | [diff] [blame] | 22 | <modelVersion>4.0.0</modelVersion> |
| 23 | <parent> |
| 24 | <groupId>org.onap.oparent</groupId> |
| 25 | <artifactId>oparent</artifactId> |
Ram Krishna Verma | d04923a | 2020-07-09 10:18:57 -0400 | [diff] [blame] | 26 | <version>3.1.0</version> |
HOCKLA | 0278ad6 | 2019-12-04 11:38:24 -0600 | [diff] [blame] | 27 | <relativePath /> |
eikrwaq | 5eb9cfd | 2018-05-22 09:48:30 +0100 | [diff] [blame] | 28 | </parent> |
| 29 | <groupId>org.onap.policy.parent</groupId> |
| 30 | <artifactId>policy-parent</artifactId> |
Jim Hahn | b45b74e | 2020-10-26 11:09:20 -0400 | [diff] [blame] | 31 | <version>3.3.0-SNAPSHOT</version> |
eikrwaq | 5eb9cfd | 2018-05-22 09:48:30 +0100 | [diff] [blame] | 32 | <packaging>pom</packaging> |
| 33 | |
Pamela Dragosh | c6f09d3 | 2018-08-22 13:58:13 -0400 | [diff] [blame] | 34 | <properties> |
Ram Krishna Verma | d04923a | 2020-07-09 10:18:57 -0400 | [diff] [blame] | 35 | <oparent.version>3.1.0</oparent.version> |
Pamela Dragosh | c6f09d3 | 2018-08-22 13:58:13 -0400 | [diff] [blame] | 36 | </properties> |
eikrwaq | 5eb9cfd | 2018-05-22 09:48:30 +0100 | [diff] [blame] | 37 | |
| 38 | <modules> |
| 39 | <module>integration</module> |
| 40 | </modules> |
Pamela Dragosh | d3e3903 | 2019-10-04 16:45:50 -0400 | [diff] [blame] | 41 | |
| 42 | <build> |
| 43 | <pluginManagement> |
| 44 | <plugins> |
| 45 | <!-- |
| 46 | Using https://code.revelc.net/formatter-maven-plugin/ for Eclipse formatter |
| 47 | Using https://github.com/diffplug/spotless/tree/master/plugin-maven for import order |
| 48 | Use in combination to rewrite code and imports, then checkstyle |
| 49 | |
Pamela Dragosh | 4b48d37 | 2019-10-17 10:28:38 -0400 | [diff] [blame] | 50 | Be sure to override ${project.parent.basedir} in order to find the XML file |
| 51 | |
| 52 | mvn formatter:format spotless:apply process-sources -Dproject.parent.basedir=TODO |
Pamela Dragosh | d3e3903 | 2019-10-04 16:45:50 -0400 | [diff] [blame] | 53 | --> |
| 54 | <plugin> |
| 55 | <groupId>net.revelc.code.formatter</groupId> |
| 56 | <artifactId>formatter-maven-plugin</artifactId> |
HOCKLA | 4b7e270 | 2019-12-10 09:54:48 -0600 | [diff] [blame] | 57 | <version>2.11.0</version> |
Pamela Dragosh | d3e3903 | 2019-10-04 16:45:50 -0400 | [diff] [blame] | 58 | <configuration> |
| 59 | <configFile>${project.parent.basedir}/onap-java-formatter.xml</configFile> |
| 60 | </configuration> |
| 61 | <!-- https://code.revelc.net/formatter-maven-plugin/ |
| 62 | use mvn formatter:format to rewrite source files |
| 63 | use mvn formatter:validate to validate source files --> |
| 64 | </plugin> |
| 65 | <plugin> |
| 66 | <groupId>com.diffplug.spotless</groupId> |
| 67 | <artifactId>spotless-maven-plugin</artifactId> |
HOCKLA | 4b7e270 | 2019-12-10 09:54:48 -0600 | [diff] [blame] | 68 | <version>1.26.1</version> |
Pamela Dragosh | d3e3903 | 2019-10-04 16:45:50 -0400 | [diff] [blame] | 69 | <configuration> |
| 70 | <java> |
| 71 | <importOrder> |
| 72 | <order>com,java,javax,org</order> |
| 73 | </importOrder> |
| 74 | </java> |
| 75 | </configuration> |
| 76 | <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven |
| 77 | use mvn spotless:apply to rewrite source files |
| 78 | use mvn spotless:check to validate source files --> |
| 79 | </plugin> |
| 80 | </plugins> |
| 81 | </pluginManagement> |
| 82 | </build> |
| 83 | |
Pamela Dragosh | fb1af89 | 2018-08-27 13:51:57 -0400 | [diff] [blame] | 84 | </project> |