Skip to content

Commit

Permalink
[MPIR-409] Upgrade Maven Site Plugin to 3.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-o committed Jan 26, 2022
1 parent 83c7f64 commit 51a051b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ under the License.
<doxia-sitetoolsVersion>1.11.1</doxia-sitetoolsVersion>
<mavenVersion>3.0</mavenVersion>
<scmVersion>1.12.2</scmVersion>
<sitePluginVersion>3.7</sitePluginVersion>
<sitePluginVersion>3.10.0</sitePluginVersion>
<surefire.version>2.22.2</surefire.version>
<javaVersion>7</javaVersion>
<checkstyle.violation.ignore>ParameterNumber,MethodLength</checkstyle.violation.ignore>
Expand Down
28 changes: 14 additions & 14 deletions src/it/dependencies-java-1.7-and-1.8/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,24 @@
File dependencies = new File( basedir, 'target/site/dependencies.html' )
def mavenModel = '''\
<tr class="a">
<td>maven-model-3.3.9.jar</td>
<td>164 kB</td>
<td>71</td>
<td>54</td>
<td>3</td>
<td>1.7</td>
<td>Yes</td></tr>
<td align="left">maven-model-3.3.9.jar</td>
<td align="right">164 kB</td>
<td align="right">71</td>
<td align="right">54</td>
<td align="right">3</td>
<td align="center">1.7</td>
<td align="center">Yes</td></tr>
'''

def jacksonDataTypeJsr310 = '''\
<tr class="a">
<td>jackson-datatype-jsr310-2.6.4.jar</td>
<td>78.1 kB</td>
<td>69</td>
<td>51</td>
<td>5</td>
<td>1.8</td>
<td>Yes</td></tr>
<td align="left">jackson-datatype-jsr310-2.6.4.jar</td>
<td align="right">78.1 kB</td>
<td align="right">69</td>
<td align="right">51</td>
<td align="right">5</td>
<td align="center">1.8</td>
<td align="center">Yes</td></tr>
'''

assert dependencies.text.contains( mavenModel.replaceAll( "\n", System.getProperty( "line.separator" ) ) )
Expand Down
4 changes: 2 additions & 2 deletions src/it/multi-module/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ File mainDependencies = new File( basedir, 'main/target/site/dependencies.html'

// Dependency File Details section should display dep-1.0-SNAPSHOT.jar packaged from previous build (package phase),
// not dep/target/classes from current build (site phase)
assert !mainDependencies.text.contains( '<td>dep/target/classes</td>' )
assert mainDependencies.text.contains( '<td>dep-1.0-SNAPSHOT.jar</td>' )
assert !mainDependencies.text.contains( '<td align="left">dep/target/classes</td>' )
assert mainDependencies.text.contains( '<td align="left">dep-1.0-SNAPSHOT.jar</td>' )

0 comments on commit 51a051b

Please sign in to comment.