|
33 | 33 | <maven.compiler.source>17</maven.compiler.source>
|
34 | 34 | <maven.compiler.target>17</maven.compiler.target>
|
35 | 35 | <jacoco.line.coverage>.7</jacoco.line.coverage>
|
| 36 | + <sonar.organization>opentdf</sonar.organization> |
| 37 | + <sonar.projectKey>opentdf_nifi</sonar.projectKey> |
| 38 | + <sonar.host.url>https://sonarcloud.io</sonar.host.url> |
| 39 | + <sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/target/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths> |
36 | 40 | </properties>
|
37 | 41 | <modules>
|
38 | 42 | <module>nifi-tdf-controller-services-api</module>
|
|
60 | 64 | <dependency>
|
61 | 65 | <groupId>io.opentdf.platform</groupId>
|
62 | 66 | <artifactId>sdk</artifactId>
|
63 |
| - <version>0.6.1</version> |
| 67 | + <version>0.7.3</version> |
64 | 68 | </dependency>
|
65 | 69 | <dependency>
|
66 | 70 | <groupId>org.apache.commons</groupId>
|
|
96 | 100 | <version>1.5.1</version>
|
97 | 101 | <extensions>true</extensions>
|
98 | 102 | </plugin>
|
99 |
| - <plugin> |
100 |
| - <groupId>org.jacoco</groupId> |
101 |
| - <artifactId>jacoco-maven-plugin</artifactId> |
102 |
| - <version>0.8.12</version> |
103 |
| - <executions> |
104 |
| - <execution> |
105 |
| - <id>jacoco-prepare-agent</id> |
106 |
| - <goals> |
107 |
| - <goal>prepare-agent</goal> |
108 |
| - </goals> |
109 |
| - </execution> |
110 |
| - <execution> |
111 |
| - <id>jacoco-prepare-agent-integration</id> |
112 |
| - <goals> |
113 |
| - <goal>prepare-agent-integration</goal> |
114 |
| - </goals> |
115 |
| - </execution> |
116 |
| - <execution> |
117 |
| - <id>jacoco-report</id> |
118 |
| - <goals> |
119 |
| - <goal>report</goal> |
120 |
| - </goals> |
121 |
| - <phase>test</phase> |
122 |
| - </execution> |
123 |
| - <execution> |
124 |
| - <id>check</id> |
125 |
| - <goals> |
126 |
| - <goal>check</goal> |
127 |
| - </goals> |
128 |
| - <configuration> |
129 |
| - <rules> |
130 |
| - <rule> |
131 |
| - <element>BUNDLE</element> |
132 |
| - <limits> |
133 |
| - <limit> |
134 |
| - <counter>LINE</counter> |
135 |
| - <value>COVEREDRATIO</value> |
136 |
| - <minimum>${jacoco.line.coverage}</minimum> |
137 |
| - </limit> |
138 |
| - </limits> |
139 |
| - </rule> |
140 |
| - </rules> |
141 |
| - </configuration> |
142 |
| - </execution> |
143 |
| - </executions> |
144 |
| - </plugin> |
145 |
| - <plugin> |
146 |
| - <groupId>org.apache.maven.plugins</groupId> |
147 |
| - <artifactId>maven-surefire-plugin</artifactId> |
148 |
| - <version>3.2.5</version> |
149 |
| - <configuration> |
150 |
| - <!--When using the maven-surefire-plugin or maven-failsafe-plugin you must not use a forkCount of 0 or set the forkMode to never as this would prevent the execution of the tests with the javaagent set and no coverage would be recorded.--> |
151 |
| - <forkCount>1</forkCount> |
152 |
| - <!-- this is required for test coverage--> |
153 |
| -<!-- <argLine>${argLine}</argLine>--> |
154 |
| - </configuration> |
155 |
| - </plugin> |
156 | 103 | </plugins>
|
157 | 104 | </pluginManagement>
|
158 | 105 | <plugins>
|
|
182 | 129 | <enabled>true</enabled>
|
183 | 130 | </releases>
|
184 | 131 | </repository>
|
185 |
| - <repository> |
186 |
| - <id>opentdf</id> |
187 |
| - <url>https://maven.pkg.github.com/opentdf/java-sdk</url> |
188 |
| - <snapshots> |
189 |
| - <enabled>true</enabled> |
190 |
| - </snapshots> |
191 |
| - <releases> |
192 |
| - <enabled>true</enabled> |
193 |
| - </releases> |
194 |
| - </repository> |
195 | 132 | </repositories>
|
196 | 133 | <profiles>
|
197 | 134 | <profile>
|
|
258 | 195 | </plugins>
|
259 | 196 | </build>
|
260 | 197 | </profile>
|
| 198 | + <profile> |
| 199 | + <id>coverage</id> |
| 200 | + <build> |
| 201 | + <plugins> |
| 202 | + <plugin> |
| 203 | + <groupId>org.jacoco</groupId> |
| 204 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 205 | + <version>0.8.12</version> |
| 206 | + <executions> |
| 207 | + <execution> |
| 208 | + <id>jacoco-prepare-agent</id> |
| 209 | + <goals> |
| 210 | + <goal>prepare-agent</goal> |
| 211 | + </goals> |
| 212 | + </execution> |
| 213 | + <execution> |
| 214 | + <id>jacoco-prepare-agent-integration</id> |
| 215 | + <goals> |
| 216 | + <goal>prepare-agent-integration</goal> |
| 217 | + </goals> |
| 218 | + </execution> |
| 219 | + <execution> |
| 220 | + <id>jacoco-report</id> |
| 221 | + <goals> |
| 222 | + <goal>report</goal> |
| 223 | + </goals> |
| 224 | + <phase>test</phase> |
| 225 | + </execution> |
| 226 | + <execution> |
| 227 | + <id>check</id> |
| 228 | + <goals> |
| 229 | + <goal>check</goal> |
| 230 | + </goals> |
| 231 | + <configuration> |
| 232 | + <rules> |
| 233 | + <rule> |
| 234 | + <element>BUNDLE</element> |
| 235 | + <limits> |
| 236 | + <limit> |
| 237 | + <counter>LINE</counter> |
| 238 | + <value>COVEREDRATIO</value> |
| 239 | + <minimum>${jacoco.line.coverage}</minimum> |
| 240 | + </limit> |
| 241 | + </limits> |
| 242 | + </rule> |
| 243 | + </rules> |
| 244 | + </configuration> |
| 245 | + </execution> |
| 246 | + <execution> |
| 247 | + <id>report-aggregate</id> |
| 248 | + <phase>verify</phase> |
| 249 | + <goals> |
| 250 | + <goal>report-aggregate</goal> |
| 251 | + </goals> |
| 252 | + </execution> |
| 253 | + </executions> |
| 254 | + </plugin> |
| 255 | + <plugin> |
| 256 | + <groupId>org.apache.maven.plugins</groupId> |
| 257 | + <artifactId>maven-surefire-plugin</artifactId> |
| 258 | + <version>3.2.5</version> |
| 259 | + <configuration> |
| 260 | + <!--When using the maven-surefire-plugin or maven-failsafe-plugin you must not use a forkCount of 0 or set the forkMode to never as this would prevent the execution of the tests with the javaagent set and no coverage would be recorded.--> |
| 261 | + <forkCount>1</forkCount> |
| 262 | + <!-- this is required for test coverage--> |
| 263 | + <argLine>${argLine}</argLine> |
| 264 | + </configuration> |
| 265 | + </plugin> |
| 266 | + </plugins> |
| 267 | + </build> |
| 268 | + </profile> |
261 | 269 | </profiles>
|
262 | 270 | </project>
|
0 commit comments