Bruno Sakoto | 4a56deb | 2021-02-17 17:26:33 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
| 4 | Copyright (c) 2021 Bell Canada. |
| 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 | ============LICENSE_END========================================================= |
| 18 | --> |
| 19 | |
| 20 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 21 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 22 | <modelVersion>4.0.0</modelVersion> |
Bruno Sakoto | 472d2e8 | 2021-02-25 23:23:09 -0500 | [diff] [blame] | 23 | |
Bruno Sakoto | 4a56deb | 2021-02-17 17:26:33 -0500 | [diff] [blame] | 24 | <parent> |
Bruno Sakoto | 472d2e8 | 2021-02-25 23:23:09 -0500 | [diff] [blame] | 25 | <groupId>org.onap.oparent</groupId> |
| 26 | <artifactId>oparent</artifactId> |
| 27 | <version>3.2.0</version> |
| 28 | <relativePath/> |
Bruno Sakoto | 4a56deb | 2021-02-17 17:26:33 -0500 | [diff] [blame] | 29 | </parent> |
Bruno Sakoto | 472d2e8 | 2021-02-25 23:23:09 -0500 | [diff] [blame] | 30 | |
Bruno Sakoto | 4a56deb | 2021-02-17 17:26:33 -0500 | [diff] [blame] | 31 | <groupId>org.onap.cps</groupId> |
| 32 | <artifactId>cps-temporal</artifactId> |
| 33 | <version>0.0.1-SNAPSHOT</version> |
| 34 | <name>cps-temporal</name> |
| 35 | <description>CPS Temporal Service</description> |
Bruno Sakoto | 472d2e8 | 2021-02-25 23:23:09 -0500 | [diff] [blame] | 36 | |
Bruno Sakoto | 4a56deb | 2021-02-17 17:26:33 -0500 | [diff] [blame] | 37 | <properties> |
| 38 | <java.version>11</java.version> |
Bruno Sakoto | 472d2e8 | 2021-02-25 23:23:09 -0500 | [diff] [blame] | 39 | <minimum-coverage>0.8</minimum-coverage> |
Bruno Sakoto | 4a56deb | 2021-02-17 17:26:33 -0500 | [diff] [blame] | 40 | </properties> |
Bruno Sakoto | 472d2e8 | 2021-02-25 23:23:09 -0500 | [diff] [blame] | 41 | |
| 42 | <dependencyManagement> |
| 43 | <dependencies> |
| 44 | <dependency> |
| 45 | <groupId>org.springframework.boot</groupId> |
| 46 | <artifactId>spring-boot-dependencies</artifactId> |
| 47 | <version>2.3.8.RELEASE</version> |
| 48 | <type>pom</type> |
| 49 | <scope>import</scope> |
| 50 | </dependency> |
| 51 | <dependency> |
| 52 | <groupId>org.spockframework</groupId> |
| 53 | <artifactId>spock-bom</artifactId> |
| 54 | <version>2.0-M4-groovy-3.0</version> |
| 55 | <type>pom</type> |
| 56 | <scope>import</scope> |
| 57 | </dependency> |
| 58 | </dependencies> |
| 59 | </dependencyManagement> |
| 60 | |
Bruno Sakoto | 4a56deb | 2021-02-17 17:26:33 -0500 | [diff] [blame] | 61 | <dependencies> |
| 62 | <dependency> |
| 63 | <groupId>org.springframework.boot</groupId> |
| 64 | <artifactId>spring-boot-starter</artifactId> |
| 65 | </dependency> |
| 66 | <dependency> |
| 67 | <groupId>org.springframework.boot</groupId> |
| 68 | <artifactId>spring-boot-starter-web</artifactId> |
| 69 | </dependency> |
Bruno Sakoto | 05855d5 | 2021-04-20 08:22:56 -0400 | [diff] [blame^] | 70 | <dependency> |
| 71 | <groupId>org.springframework.boot</groupId> |
| 72 | <artifactId>spring-boot-starter-data-jpa</artifactId> |
| 73 | </dependency> |
| 74 | <dependency> |
| 75 | <groupId>org.liquibase</groupId> |
| 76 | <artifactId>liquibase-core</artifactId> |
| 77 | <version>4.3.2</version> |
| 78 | </dependency> |
| 79 | <!-- Runtime dependencies--> |
| 80 | <dependency> |
| 81 | <groupId>org.postgresql</groupId> |
| 82 | <artifactId>postgresql</artifactId> |
| 83 | <scope>runtime</scope> |
| 84 | </dependency> |
Bruno Sakoto | 472d2e8 | 2021-02-25 23:23:09 -0500 | [diff] [blame] | 85 | <!-- Test dependencies--> |
| 86 | <dependency> |
| 87 | <groupId>org.codehaus.groovy</groupId> |
| 88 | <artifactId>groovy</artifactId> |
| 89 | <version>3.0.7</version> |
| 90 | </dependency> |
Bruno Sakoto | 4a56deb | 2021-02-17 17:26:33 -0500 | [diff] [blame] | 91 | <dependency> |
| 92 | <groupId>org.springframework.boot</groupId> |
| 93 | <artifactId>spring-boot-starter-test</artifactId> |
| 94 | <scope>test</scope> |
| 95 | <exclusions> |
| 96 | <exclusion> |
| 97 | <groupId>org.junit.vintage</groupId> |
| 98 | <artifactId>junit-vintage-engine</artifactId> |
| 99 | </exclusion> |
| 100 | </exclusions> |
| 101 | </dependency> |
Bruno Sakoto | 472d2e8 | 2021-02-25 23:23:09 -0500 | [diff] [blame] | 102 | <dependency> |
| 103 | <groupId>org.spockframework</groupId> |
| 104 | <artifactId>spock-core</artifactId> |
| 105 | <scope>test</scope> |
| 106 | </dependency> |
Bruno Sakoto | 05855d5 | 2021-04-20 08:22:56 -0400 | [diff] [blame^] | 107 | <dependency> |
| 108 | <groupId>org.testcontainers</groupId> |
| 109 | <artifactId>junit-jupiter</artifactId> |
| 110 | <version>1.15.2</version> |
| 111 | <scope>test</scope> |
| 112 | </dependency> |
| 113 | <dependency> |
| 114 | <groupId>org.testcontainers</groupId> |
| 115 | <artifactId>postgresql</artifactId> |
| 116 | <version>1.15.2</version> |
| 117 | <scope>test</scope> |
| 118 | </dependency> |
Bruno Sakoto | 4a56deb | 2021-02-17 17:26:33 -0500 | [diff] [blame] | 119 | </dependencies> |
| 120 | |
| 121 | <build> |
| 122 | <plugins> |
| 123 | <plugin> |
| 124 | <groupId>org.springframework.boot</groupId> |
| 125 | <artifactId>spring-boot-maven-plugin</artifactId> |
Bruno Sakoto | 05855d5 | 2021-04-20 08:22:56 -0400 | [diff] [blame^] | 126 | <version>2.3.3.RELEASE</version> |
Bruno Sakoto | 4a56deb | 2021-02-17 17:26:33 -0500 | [diff] [blame] | 127 | </plugin> |
Bruno Sakoto | 472d2e8 | 2021-02-25 23:23:09 -0500 | [diff] [blame] | 128 | <plugin> |
| 129 | <!-- The gmavenplus plugin is used to compile Groovy code. To learn more about this plugin, |
| 130 | visit https://github.com/groovy/GMavenPlus/wiki --> |
| 131 | <groupId>org.codehaus.gmavenplus</groupId> |
| 132 | <artifactId>gmavenplus-plugin</artifactId> |
| 133 | <version>1.12.1</version> |
| 134 | <executions> |
| 135 | <execution> |
| 136 | <goals> |
| 137 | <goal>compile</goal> |
| 138 | <goal>compileTests</goal> |
| 139 | </goals> |
| 140 | </execution> |
| 141 | </executions> |
| 142 | </plugin> |
| 143 | <plugin> |
| 144 | <groupId>org.apache.maven.plugins</groupId> |
| 145 | <artifactId>maven-surefire-plugin</artifactId> |
| 146 | <configuration> |
| 147 | <!--suppress UnresolvedMavenProperty --> |
| 148 | <argLine>${surefireArgLine}</argLine> |
| 149 | <useFile>false</useFile> |
| 150 | <includes> |
| 151 | <include>**/*Spec.java</include> |
| 152 | <include>**/*Test.java</include> |
| 153 | </includes> |
Bruno Sakoto | 05855d5 | 2021-04-20 08:22:56 -0400 | [diff] [blame^] | 154 | <environmentVariables> |
| 155 | <!-- |
| 156 | Disable privileged container usage to cleanup the test containers; |
| 157 | these are removed automatically on jvm termination; |
| 158 | see https://www.testcontainers.org/features/configuration/#disabling-ryuk |
| 159 | --> |
| 160 | <TESTCONTAINERS_RYUK_DISABLED>true</TESTCONTAINERS_RYUK_DISABLED> |
| 161 | </environmentVariables> |
Bruno Sakoto | 472d2e8 | 2021-02-25 23:23:09 -0500 | [diff] [blame] | 162 | </configuration> |
| 163 | </plugin> |
| 164 | <plugin> |
| 165 | <groupId>org.jacoco</groupId> |
| 166 | <artifactId>jacoco-maven-plugin</artifactId> |
| 167 | <version>0.8.6</version> |
| 168 | <executions> |
| 169 | <execution> |
| 170 | <id>coverage-prepare-agent</id> |
| 171 | <goals> |
| 172 | <goal>prepare-agent</goal> |
| 173 | </goals> |
| 174 | </execution> |
| 175 | <execution> |
| 176 | <id>coverage-check</id> |
| 177 | <goals> |
| 178 | <goal>check</goal> |
| 179 | </goals> |
| 180 | <configuration> |
| 181 | <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile> |
| 182 | <rules> |
| 183 | <rule> |
| 184 | <element>BUNDLE</element> |
| 185 | <limits> |
| 186 | <limit> |
| 187 | <counter>INSTRUCTION</counter> |
| 188 | <value>COVEREDRATIO</value> |
| 189 | <minimum>${minimum-coverage}</minimum> |
| 190 | </limit> |
| 191 | </limits> |
| 192 | </rule> |
| 193 | </rules> |
| 194 | </configuration> |
| 195 | </execution> |
| 196 | <execution> |
| 197 | <id>coverage-report</id> |
| 198 | <goals> |
| 199 | <goal>report</goal> |
| 200 | </goals> |
| 201 | <configuration> |
| 202 | <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile> |
| 203 | </configuration> |
| 204 | </execution> |
| 205 | </executions> |
| 206 | </plugin> |
Bruno Sakoto | 4a56deb | 2021-02-17 17:26:33 -0500 | [diff] [blame] | 207 | </plugins> |
| 208 | </build> |
| 209 | |
| 210 | </project> |