|
14 | 14 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
15 | 15 | <maven.compiler.source>1.8</maven.compiler.source> |
16 | 16 | <maven.compiler.target>1.8</maven.compiler.target> |
| 17 | + <junit.platform.version>1.0.3</junit.platform.version> |
| 18 | + <junit.jupiter.version>5.0.3</junit.jupiter.version> |
| 19 | + <coverage.resources.directory>${basedir}/src/main/resources/CoverageHTMLReporter</coverage.resources.directory> |
| 20 | + <coverage.resources.version>1.0.0</coverage.resources.version> |
| 21 | + <coverage.resources.zip.directory>utPLSQL-coverage-html-${coverage.resources.version}</coverage.resources.zip.directory> |
| 22 | + <coverage.resources.zip>${coverage.resources.zip.directory}.zip</coverage.resources.zip> |
17 | 23 | </properties> |
18 | 24 |
|
19 | 25 | <dependencies> |
|
30 | 36 | <scope>compile</scope> |
31 | 37 | </dependency> |
32 | 38 | <dependency> |
33 | | - <groupId>junit</groupId> |
34 | | - <artifactId>junit</artifactId> |
35 | | - <version>4.12</version> |
| 39 | + <groupId>org.junit.jupiter</groupId> |
| 40 | + <artifactId>junit-jupiter-api</artifactId> |
| 41 | + <version>${junit.jupiter.version}</version> |
| 42 | + <scope>test</scope> |
| 43 | + </dependency> |
| 44 | + <dependency> |
| 45 | + <groupId>org.junit.jupiter</groupId> |
| 46 | + <artifactId>junit-jupiter-engine</artifactId> |
| 47 | + <version>${junit.jupiter.version}</version> |
36 | 48 | <scope>test</scope> |
37 | 49 | </dependency> |
38 | 50 | </dependencies> |
|
66 | 78 | <version>0.0.6</version> |
67 | 79 | </extension> |
68 | 80 | </extensions> |
| 81 | + <plugins> |
| 82 | + <plugin> |
| 83 | + <groupId>com.googlecode.maven-download-plugin</groupId> |
| 84 | + <artifactId>download-maven-plugin</artifactId> |
| 85 | + <version>1.3.0</version> |
| 86 | + <executions> |
| 87 | + <execution> |
| 88 | + <!-- the wget goal actually binds itself to this phase by default --> |
| 89 | + <phase>process-resources</phase> |
| 90 | + <goals> |
| 91 | + <goal>wget</goal> |
| 92 | + </goals> |
| 93 | + <configuration> |
| 94 | + <url>https://codeload.github.com/utPLSQL/utPLSQL-coverage-html/zip/${coverage.resources.version}</url> |
| 95 | + <outputFileName>${coverage.resources.zip}</outputFileName> |
| 96 | + <!-- default target location, just to demonstrate the parameter --> |
| 97 | + <outputDirectory>${coverage.resources.directory}</outputDirectory> |
| 98 | + </configuration> |
| 99 | + </execution> |
| 100 | + </executions> |
| 101 | + </plugin> |
| 102 | + <plugin> |
| 103 | + <artifactId>maven-antrun-plugin</artifactId> |
| 104 | + <version>1.7</version> |
| 105 | + <executions> |
| 106 | + <execution> |
| 107 | + <phase>process-resources</phase> |
| 108 | + <goals> |
| 109 | + <goal>run</goal> |
| 110 | + </goals> |
| 111 | + <configuration> |
| 112 | + <target> |
| 113 | + <echo message="unzip Resources" /> |
| 114 | + <unzip src="${coverage.resources.directory}/${coverage.resources.zip}" dest="${coverage.resources.directory}" /> |
| 115 | + <echo message="move unzipped assets to target resources directory" /> |
| 116 | + <move toDir="${coverage.resources.directory}" includeEmptyDirs="yes" verbose="false"> |
| 117 | + <fileset dir="${coverage.resources.directory}/${coverage.resources.zip.directory}/assets"> |
| 118 | + <include name="**/*" /> |
| 119 | + <include name="**/*.*" /> |
| 120 | + </fileset> |
| 121 | + </move> |
| 122 | + <echo message="delete unzip directory" /> |
| 123 | + <delete dir="${coverage.resources.directory}/${coverage.resources.zip.directory}" includeEmptyDirs="yes" verbose="false"/> |
| 124 | + <echo message="delete Resources ZIP" /> |
| 125 | + <delete file="${coverage.resources.directory}/${coverage.resources.zip}" verbose="false"/> |
| 126 | + </target> |
| 127 | + </configuration> |
| 128 | + </execution> |
| 129 | + </executions> |
| 130 | + </plugin> |
| 131 | + <plugin> |
| 132 | + <groupId>org.apache.maven.plugins</groupId> |
| 133 | + <artifactId>maven-surefire-plugin</artifactId> |
| 134 | + <version>2.19.1</version> |
| 135 | + <configuration> |
| 136 | + <excludes> |
| 137 | + <exclude>**/*IT.java</exclude> |
| 138 | + </excludes> |
| 139 | + </configuration> |
| 140 | + <dependencies> |
| 141 | + <dependency> |
| 142 | + <groupId>org.junit.platform</groupId> |
| 143 | + <artifactId>junit-platform-surefire-provider</artifactId> |
| 144 | + <version>${junit.platform.version}</version> |
| 145 | + </dependency> |
| 146 | + </dependencies> |
| 147 | + </plugin> |
| 148 | + <plugin> |
| 149 | + <groupId>org.apache.maven.plugins</groupId> |
| 150 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 151 | + <version>2.19.1</version> |
| 152 | + <executions> |
| 153 | + <execution> |
| 154 | + <goals> |
| 155 | + <goal>integration-test</goal> |
| 156 | + <goal>verify</goal> |
| 157 | + </goals> |
| 158 | + </execution> |
| 159 | + </executions> |
| 160 | + <dependencies> |
| 161 | + <dependency> |
| 162 | + <groupId>org.junit.platform</groupId> |
| 163 | + <artifactId>junit-platform-surefire-provider</artifactId> |
| 164 | + <version>${junit.platform.version}</version> |
| 165 | + </dependency> |
| 166 | + </dependencies> |
| 167 | + </plugin> |
| 168 | + </plugins> |
69 | 169 | </build> |
70 | 170 |
|
| 171 | + <profiles> |
| 172 | + <profile> |
| 173 | + <id>utPLSQL-local</id> |
| 174 | + <build> |
| 175 | + <pluginManagement> |
| 176 | + <plugins> |
| 177 | + <plugin> |
| 178 | + <groupId>org.apache.maven.plugins</groupId> |
| 179 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 180 | + <configuration> |
| 181 | + <environmentVariables> |
| 182 | + <DB_URL>${dbUrl}</DB_URL> |
| 183 | + <DB_USER>${dbUser}</DB_USER> |
| 184 | + <DB_PASS>${dbPass}</DB_PASS> |
| 185 | + </environmentVariables> |
| 186 | + </configuration> |
| 187 | + </plugin> |
| 188 | + </plugins> |
| 189 | + </pluginManagement> |
| 190 | + </build> |
| 191 | + </profile> |
| 192 | + </profiles> |
| 193 | + |
71 | 194 | <distributionManagement> |
72 | 195 | <repository> |
73 | 196 | <id>packagecloud-utPLSQL</id> |
|
0 commit comments