cds-feature-attachments
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.sap.cds</groupId> <artifactId>cds-feature-attachments</artifactId> <version>1.0.9</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.sap.cds</groupId> <artifactId>cds-feature-attachments-root</artifactId> <version>1.0.9</version> </parent> <artifactId>cds-feature-attachments</artifactId> <version>1.0.9</version> <name>CDS Feature for Attachments</name> <url>https://cap.cloud.sap/docs/plugins/#attachments</url> <licenses> <license> <name>The Apache Software License, Version 2.0</name> <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> <distribution>repo</distribution> </license> </licenses> <properties> <generation-package>com.sap.cds.feature.attachments.generated</generation-package> <test-generation-folder>src/test/gen</test-generation-folder> </properties> <dependencies> <dependency> <groupId>com.sap.cloud.sdk.cloudplatform</groupId> <artifactId>cloudplatform-core</artifactId> <exclusions> <exclusion> <artifactId>guava</artifactId> <groupId>com.google.guava</groupId> </exclusion> <exclusion> <artifactId>vavr</artifactId> <groupId>io.vavr</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.sap.cds</groupId> <artifactId>cds-services-utils</artifactId> <exclusions> <exclusion> <artifactId>cds-adapter-api</artifactId> <groupId>com.sap.cds</groupId> </exclusion> <exclusion> <artifactId>cds4j-core</artifactId> <groupId>com.sap.cds</groupId> </exclusion> <exclusion> <artifactId>tools</artifactId> <groupId>com.sap.cloud.mt</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.sap.cds</groupId> <artifactId>cds-services-impl</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>com.github.spotbugs</groupId> <artifactId>spotbugs-annotations</artifactId> <version>4.9.3</version> <scope>test</scope> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.5.18</version> <scope>test</scope> </dependency> <dependency> <groupId>org.awaitility</groupId> <artifactId>awaitility</artifactId> <version>4.3.0</version> <scope>test</scope> </dependency> </dependencies> <build> <finalName>${project.artifactId}</finalName> <plugins> <plugin> <groupId>org.pitest</groupId> <artifactId>pitest-maven</artifactId> <dependencies> <dependency> <groupId>org.pitest</groupId> <artifactId>pitest-junit5-plugin</artifactId> <version>1.2.3</version> </dependency> </dependencies> <configuration> <targetClasses> <param>com.sap.cds.feature.attachments.handler.*</param> <param>com.sap.cds.feature.attachments.service.*</param> </targetClasses> <mutators> <mutator>CONSTRUCTOR_CALLS</mutator> <mutator>VOID_METHOD_CALLS</mutator> <mutator>NON_VOID_METHOD_CALLS</mutator> <mutator>REMOVE_CONDITIONALS_ORDER_ELSE</mutator> <mutator>CONDITIONALS_BOUNDARY</mutator> <mutator>EMPTY_RETURNS</mutator> <mutator>NEGATE_CONDITIONALS</mutator> <mutator>REMOVE_CONDITIONALS_EQUAL_IF</mutator> <mutator>REMOVE_CONDITIONALS_EQUAL_ELSE</mutator> <mutator>REMOVE_CONDITIONALS_ORDER_IF</mutator> <mutator>REMOVE_CONDITIONALS_ORDER_ELSE</mutator> </mutators> <coverageThreshold>95</coverageThreshold> <aggregatedMutationThreshold>90</aggregatedMutationThreshold> </configuration> </plugin> <plugin> <artifactId>maven-clean-plugin</artifactId> <executions> <execution> <id>auto-clean</id> <phase>clean</phase> <goals> <goal>clean</goal> </goals> </execution> </executions> <configuration> <filesets> <fileset> <directory>${test-generation-folder}</directory> <includes> <include>**/*</include> </includes> <followSymlinks>false</followSymlinks> </fileset> <fileset> <directory>src/test/resources</directory> <includes> <include>schema.sql</include> </includes> </fileset> <fileset> <directory>src/test/resources/cds</directory> <includes> <include>csn.json</include> </includes> </fileset> <fileset> <directory>src/test/resources/gen</directory> <includes> <include>**/*</include> </includes> <followSymlinks>false</followSymlinks> </fileset> <fileset> <directory>./</directory> <includes> <include>.flattened-pom.xml</include> </includes> </fileset> </filesets> </configuration> </plugin> <plugin> <groupId>com.sap.cds</groupId> <artifactId>cds-maven-plugin</artifactId> <executions> <execution> <id>cds.clean</id> <goals> <goal>clean</goal> </goals> </execution> <execution> <id>cds.install-node</id> <goals> <goal>install-node</goal> </goals> </execution> <execution> <id>cds.install-cdsdk</id> <goals> <goal>install-cdsdk</goal> </goals> </execution> <execution> <id>cds.build</id> <goals> <goal>cds</goal> </goals> <configuration> <workingDirectory>./src/main/resources/cds/com.sap.cds/cds-feature-attachments</workingDirectory> <commands> <command>build --for java --src ./ --dest ../../../../../../gen/srv</command> </commands> </configuration> </execution> <execution> <id>cds.generate</id> <goals> <goal>generate</goal> </goals> <configuration> <basePackage>${generation-package}.cds4j</basePackage> <csnFile>${project.basedir}/src/gen/srv/src/main/resources/edmx/csn.json</csnFile> </configuration> </execution> <execution> <id>cds.test.build</id> <goals> <goal>cds</goal> </goals> <configuration> <skip>${maven.test.skip}</skip> <workingDirectory>./src/test/resources/cds</workingDirectory> <commands> <command>build --for java --src . --dest ../../gen</command> <command>compile index.cds -2 sql > ../schema.sql</command> </commands> </configuration> </execution> <execution> <id>cds.test.generate</id> <goals> <goal>generate</goal> </goals> <configuration> <skip>${maven.test.skip}</skip> <codeOutputDirectory>${project.basedir}/${test-generation-folder}/cds4j</codeOutputDirectory> <basePackage>${generation-package}.test.cds4j</basePackage> <testSources>true</testSources> <csnFile>${project.basedir}/src/test/resources/gen/src/main/resources/edmx/csn.json</csnFile> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <executions> <execution> <id>jacoco-initialize</id> <goals> <goal>prepare-agent</goal> </goals> </execution> <execution> <id>jacoco-site-report-all-tests</id> <phase>verify</phase> <goals> <goal>report</goal> </goals> </execution> <execution> <id>jacoco-site-report-only-unit-tests</id> <phase>test</phase> <goals> <goal>report</goal> </goals> </execution> <execution> <id>jacoco-check-unit-tests-only</id> <phase>test</phase> <goals> <goal>check</goal> </goals> <configuration> <rules> <rule implementation="org.jacoco.maven.RuleConfiguration"> <element>BUNDLE</element> <limits> <limit implementation="org.jacoco.report.check.Limit"> <counter>INSTRUCTION</counter> <value>COVEREDRATIO</value> <minimum>0.95</minimum> </limit> <limit implementation="org.jacoco.report.check.Limit"> <counter>BRANCH</counter> <value>COVEREDRATIO</value> <minimum>0.95</minimum> </limit> <limit implementation="org.jacoco.report.check.Limit"> <counter>COMPLEXITY</counter> <value>COVEREDRATIO</value> <minimum>0.95</minimum> </limit> <limit implementation="org.jacoco.report.check.Limit"> <counter>CLASS</counter> <value>MISSEDCOUNT</value> <maximum>0</maximum> </limit> </limits> </rule> </rules> </configuration> </execution> </executions> <configuration> <excludes> <exclude>${excluded.generation.package}**/*</exclude> </excludes> </configuration> </plugin> <plugin> <artifactId>maven-javadoc-plugin</artifactId> <executions> <execution> <goals> <goal>jar</goal> </goals> <configuration> <excludePackageNames>${generation-package}.*</excludePackageNames> </configuration> </execution> </executions> <configuration> <failOnError>true</failOnError> <doclint>all,-missing</doclint> </configuration> </plugin> <plugin> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>