diff options
Diffstat (limited to 'sdnr/wt/devicemanager-onap/onf14/provider/pom.xml')
-rw-r--r-- | sdnr/wt/devicemanager-onap/onf14/provider/pom.xml | 73 |
1 files changed, 71 insertions, 2 deletions
diff --git a/sdnr/wt/devicemanager-onap/onf14/provider/pom.xml b/sdnr/wt/devicemanager-onap/onf14/provider/pom.xml index 58db0ee60..3a6522ed0 100644 --- a/sdnr/wt/devicemanager-onap/onf14/provider/pom.xml +++ b/sdnr/wt/devicemanager-onap/onf14/provider/pom.xml @@ -28,7 +28,7 @@ <parent> <groupId>org.onap.ccsdk.parent</groupId> <artifactId>binding-parent</artifactId> - <version>2.3.2</version> + <version>2.3.3-SNAPSHOT</version> <relativePath/> </parent> @@ -51,7 +51,7 @@ <buildtime>${maven.build.timestamp} UTC</buildtime> <databaseport>49400</databaseport> </properties> - + <dependencies> <!-- begin for testing --> <dependency> @@ -86,6 +86,7 @@ <dependency> <groupId>org.opendaylight.netconf</groupId> <artifactId>sal-netconf-connector</artifactId> + <version>2.0.4</version> <scope>provided</scope> </dependency> <dependency> @@ -107,6 +108,34 @@ <filtering>true</filtering> </resource> </resources> + <pluginManagement><plugins> + <plugin> + <groupId>org.opendaylight.yangtools</groupId> + <artifactId>yang-maven-plugin</artifactId> + <version>7.0.9</version> + <executions> + <execution> + <id>binding</id> + <phase>none</phase> + <goals> + <goal>generate-sources</goal> + </goals> + <configuration> + <inspectDependencies>true</inspectDependencies> + </configuration> + </execution> + </executions> + <dependencies> + <dependency> + <groupId>org.opendaylight.mdsal</groupId> + <artifactId>mdsal-binding-java-api-generator</artifactId> + <version>8.0.6</version> + <scope>compile</scope> + </dependency> + </dependencies> + </plugin> + </plugins> + </pluginManagement> <plugins> <plugin> <groupId>org.jacoco</groupId> @@ -120,6 +149,46 @@ </excludes> </configuration> </plugin> + <plugin> + <artifactId>maven-enforcer-plugin</artifactId> + <version>3.0.0</version> + <executions> + <execution> + <id>enforce-maven</id> + <goals> + <goal>enforce</goal> + </goals> + <configuration> + <rules> + <requireJavaVersion> + <version>11</version> + </requireJavaVersion> + <requireMavenVersion> + <version>[3.5.0,)</version> + </requireMavenVersion> + </rules> + </configuration> + </execution> + <execution> + <id>enforce-banned-dependencies</id> + <goals> + <goal>enforce</goal> + </goals> + <configuration> + <rules> + <bannedDependencies> + <message>Please always use mockito-core instead of mockito-all (see https://bugs.opendaylight.org/show_bug.cgi?id=7662), and spotbugs:annotations instead of findbugs:annotations</message> + <excludes> + <exclude>org.mockito:mockito-all</exclude> + <exclude>com.google.code.findbugs:annotations</exclude> + </excludes> + </bannedDependencies> + </rules> + <fail>false</fail> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> </project> |