|
| 1 | +<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" |
| 2 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
| 4 | + |
| 5 | + <parent> |
| 6 | + <groupId>com.sap.cds</groupId> |
| 7 | + <artifactId>cds-feature-attachments-root</artifactId> |
| 8 | + <version>${revision}</version> |
| 9 | + <relativePath>../..</relativePath> |
| 10 | + </parent> |
| 11 | + |
| 12 | + <artifactId>cds-feature-attachments-oss</artifactId> |
| 13 | + <packaging>jar</packaging> |
| 14 | + |
| 15 | + <name>CDS Feature for Attachments - Object Store Service</name> |
| 16 | + <url>https://cap.cloud.sap/docs/plugins/#attachments</url> |
| 17 | + |
| 18 | + <dependencies> |
| 19 | + <dependency> |
| 20 | + <groupId>com.sap.cds</groupId> |
| 21 | + <artifactId>cds-feature-attachments</artifactId> |
| 22 | + </dependency> |
| 23 | + |
| 24 | + <dependency> |
| 25 | + <groupId>com.sap.cds</groupId> |
| 26 | + <artifactId>cds-services-api</artifactId> |
| 27 | + </dependency> |
| 28 | + |
| 29 | + <dependency> |
| 30 | + <groupId>software.amazon.awssdk</groupId> |
| 31 | + <artifactId>s3</artifactId> |
| 32 | + <version>${software.amazon.awssdk-s3-version}</version> |
| 33 | + </dependency> |
| 34 | + |
| 35 | + <dependency> |
| 36 | + <groupId>software.amazon.awssdk.crt</groupId> |
| 37 | + <artifactId>aws-crt</artifactId> |
| 38 | + <version>${software.amazon.awssdk-crt-version}</version> |
| 39 | + </dependency> |
| 40 | + |
| 41 | + <dependency> |
| 42 | + <groupId>com.azure</groupId> |
| 43 | + <artifactId>azure-storage-blob</artifactId> |
| 44 | + <version>12.25.0</version> |
| 45 | + </dependency> |
| 46 | + |
| 47 | + <dependency> |
| 48 | + <groupId>com.google.cloud</groupId> |
| 49 | + <artifactId>google-cloud-storage</artifactId> |
| 50 | + <version>2.30.0</version> |
| 51 | + </dependency> |
| 52 | + |
| 53 | + <dependency> |
| 54 | + <groupId>com.sap.cloud.sdk</groupId> |
| 55 | + <artifactId>sdk-bom</artifactId> |
| 56 | + <version>5.20.0</version> |
| 57 | + <type>pom</type> |
| 58 | + <scope>import</scope> |
| 59 | + </dependency> |
| 60 | + |
| 61 | + <!-- TESTS --> |
| 62 | + <dependency> |
| 63 | + <groupId>com.sap.cds</groupId> |
| 64 | + <artifactId>cds-services-impl</artifactId> |
| 65 | + <scope>test</scope> |
| 66 | + </dependency> |
| 67 | + <dependency> |
| 68 | + <groupId>ch.qos.logback</groupId> |
| 69 | + <artifactId>logback-classic</artifactId> |
| 70 | + <scope>test</scope> |
| 71 | + </dependency> |
| 72 | + <dependency> |
| 73 | + <groupId>org.awaitility</groupId> |
| 74 | + <artifactId>awaitility</artifactId> |
| 75 | + <scope>test</scope> |
| 76 | + </dependency> |
| 77 | + </dependencies> |
| 78 | + |
| 79 | + <build> |
| 80 | + <plugins> |
| 81 | + <plugin> |
| 82 | + <groupId>org.jacoco</groupId> |
| 83 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 84 | + <configuration> |
| 85 | + <excludes> |
| 86 | + <exclude> |
| 87 | + ${excluded.generation.package}**/* |
| 88 | + </exclude> |
| 89 | + </excludes> |
| 90 | + </configuration> |
| 91 | + <executions> |
| 92 | + <execution> |
| 93 | + <id>jacoco-initialize</id> |
| 94 | + <goals> |
| 95 | + <goal>prepare-agent</goal> |
| 96 | + </goals> |
| 97 | + </execution> |
| 98 | + <execution> |
| 99 | + <id>jacoco-site-report-all-tests</id> |
| 100 | + <phase>verify</phase> |
| 101 | + <goals> |
| 102 | + <goal>report</goal> |
| 103 | + </goals> |
| 104 | + </execution> |
| 105 | + <execution> |
| 106 | + <id>jacoco-site-report-only-unit-tests</id> |
| 107 | + <phase>test</phase> |
| 108 | + <goals> |
| 109 | + <goal>report</goal> |
| 110 | + </goals> |
| 111 | + </execution> |
| 112 | + <execution> |
| 113 | + <id>jacoco-check-unit-tests-only</id> |
| 114 | + <phase>test</phase> |
| 115 | + <goals> |
| 116 | + <goal>check</goal> |
| 117 | + </goals> |
| 118 | + <configuration> |
| 119 | + <rules> |
| 120 | + <rule implementation="org.jacoco.maven.RuleConfiguration"> |
| 121 | + <element>BUNDLE</element> |
| 122 | + <limits> |
| 123 | + <limit implementation="org.jacoco.report.check.Limit"> |
| 124 | + <counter>INSTRUCTION</counter> |
| 125 | + <value>COVEREDRATIO</value> |
| 126 | + <minimum>0.80</minimum> |
| 127 | + </limit> |
| 128 | + <limit implementation="org.jacoco.report.check.Limit"> |
| 129 | + <counter>BRANCH</counter> |
| 130 | + <value>COVEREDRATIO</value> |
| 131 | + <minimum>0.75</minimum> |
| 132 | + </limit> |
| 133 | + <limit implementation="org.jacoco.report.check.Limit"> |
| 134 | + <counter>COMPLEXITY</counter> |
| 135 | + <value>COVEREDRATIO</value> |
| 136 | + <minimum>0.80</minimum> |
| 137 | + </limit> |
| 138 | + <limit implementation="org.jacoco.report.check.Limit"> |
| 139 | + <counter>CLASS</counter> |
| 140 | + <value>MISSEDCOUNT</value> |
| 141 | + <maximum>0</maximum> |
| 142 | + </limit> |
| 143 | + </limits> |
| 144 | + </rule> |
| 145 | + </rules> |
| 146 | + </configuration> |
| 147 | + </execution> |
| 148 | + </executions> |
| 149 | + </plugin> |
| 150 | + |
| 151 | + <plugin> |
| 152 | + <groupId>com.sap.cds</groupId> |
| 153 | + <artifactId>cds-maven-plugin</artifactId> |
| 154 | + <executions> |
| 155 | + <execution> |
| 156 | + <id>cds.resolve</id> |
| 157 | + <goals> |
| 158 | + <goal>resolve</goal> |
| 159 | + </goals> |
| 160 | + </execution> |
| 161 | + </executions> |
| 162 | + </plugin> |
| 163 | + |
| 164 | + <plugin> |
| 165 | + <groupId>com.github.spotbugs</groupId> |
| 166 | + <artifactId>spotbugs-maven-plugin</artifactId> |
| 167 | + <configuration> |
| 168 | + <skip>true</skip> |
| 169 | + </configuration> |
| 170 | + </plugin> |
| 171 | + |
| 172 | + </plugins> |
| 173 | + </build> |
| 174 | + <profiles> |
| 175 | + <profile> |
| 176 | + <id>integration-tests-oss</id> |
| 177 | + <build> |
| 178 | + <plugins> |
| 179 | + <plugin> |
| 180 | + <groupId>org.apache.maven.plugins</groupId> |
| 181 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 182 | + <version>3.5.3</version> |
| 183 | + <executions> |
| 184 | + <execution> |
| 185 | + <id>integration-tests</id> |
| 186 | + <goals> |
| 187 | + <goal>integration-test</goal> |
| 188 | + <goal>verify</goal> |
| 189 | + </goals> |
| 190 | + </execution> |
| 191 | + </executions> |
| 192 | + <configuration> |
| 193 | + <includes> |
| 194 | + <include>**/*IT.java</include> |
| 195 | + </includes> |
| 196 | + </configuration> |
| 197 | + </plugin> |
| 198 | + </plugins> |
| 199 | + </build> |
| 200 | + </profile> |
| 201 | + </profiles> |
| 202 | + |
| 203 | +</project> |
0 commit comments