Skip to content

Commit

Permalink
[RELEASE] iText 7 Core - 7.1.8
Browse files Browse the repository at this point in the history
https://github.com/itext/itext7/releases/tag/7.1.8

* release/7.1.8:
  [RELEASE] 7.1.8-SNAPSHOT -> 7.1.8
  Add missing copyright headers
  Allow font cache to be cleared
  Implement new pattern color tests
  Extract PdfCanvasColorTest from PdfCanvasTest
  Refactor according to findbugs
  Add unit tests in UriResolverTest. DEVSIX-2880
  Purge itext artifacts from local maven repository
  Exclude xmp from SonarQube analysis
  Improve some links in javadocs.
  Add some issues to the findbugs-filter that somehow got into develop
  Remove commented-out lines making the Quality Gate fail
  Implement xfdf support
  Make PdfPolyGeomAnnotation abstract
  Improve itextcore's javadocs.
  Update page boundary keys that are used for VIEW_CLIP, PRINT_AREA, PRINT_CLIP constants. Add some PdfViewerPreferences tests.
  Refactor implementation of building hyphenation trees to avoid StackOverflowErrors
  Replace Throwable with SecurityException in ResourceUtil
  Fix javadocs in order in order to make them portable to C# code documentation
  Wrap System.getenv with SecurityException
  Rework isIgnoredClassOrPackage method
  Increase waiting in DataHandlerTest
  Add hyphenation result test, add todo remark
  Expose TypographyUtils#isPdfCalligraphAvailable()
  Do not recalculate table's minmax width once the table has been split.
  Change structural comparison instead of visual.
  Add some link tests.
  Update jacoco plugin version to 0.8.4
  Review checked exceptions softening in layout module
  Fix PdfLayer#getIntents in case of multiple intents; add new PdfLayer tests
  Add missing copyright headers
  Cover layer related logic with tests.
  Remove p tags from tables
  Remove empty tag
  Fix Barcodes java docs
  Separate tiff images testing
  Add missing copyright headers
  Add unit tests for font characteristics classes
  Improve Javadocs of io and styled-xml-parser
  Move svg path converting tests
  Update javadoc in FontProgramFactory and PdfFontFactory
  Add integration tests for BackgroundImage
  Improve porting of a piece of documentation
  Cover solid, dashed and dotted lines with tests.
  Add logmessages into unit tests
  Add missing copyright headers
  Move JFreeSvg tests from FT repository
  Remove unnecessary log message throw.
  Add new LogMessageConstant.
  Prevent TableRenderer's applyVerticalAlignment from throwing NPE.
  Improve Javadocs for some of the members of PdfFormField class
  Move pie chart test from FT repository
  Increase timeout for test stage
  Add functionality to search samples in both main and test directory
  Add missing copyright headers
  Add test that produces non-conforming PDF/A
  Add test that produces non-conforming PDF/A
  Use local Maven repository
  Fix javadoc warnings in kernel
  Use initial bytes to check if byte[] is WmfImage
  Move svg clipPath
  Improve detection of a character's location.
  Refactor Jenkinsfile
  Remove WrapToTest annotation check. Remove unused IsLookLikeTest method
  Move svg simple samples
  Improve documentation and fix a few Javadoc warnings
  Add slack notifications to #ci channel
  Move svg ignored tags tests
  Add clean of workspace in case of successful build
  Add monthy cron job for master branch
  Update svg and cmp files
  Move svg css style tests
  Move svg elliptical arc
  Add missing copyright headers
  Move svg mask tests
  Don't provide a SonarQube target branch when analyzing the main branch
  [RELEASE] Update dependency versions
  Ignore tests related to SNAPSHOT being written to extracted images.
  Remove redundant TODO in PdfImageXObject#flush()
  Add missing copyright headers
  Move svg opacity tests
  Move svg text converting tests
  Add missing copyright headers
  Move svg basic elements tests
  Add missing copyright headers
  Move google chart tests
  • Loading branch information
iText-CI committed Aug 29, 2019
2 parents f82dfe1 + d068ec3 commit 98294ec
Show file tree
Hide file tree
Showing 1,210 changed files with 114,382 additions and 2,379 deletions.
46 changes: 32 additions & 14 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env groovy
@Library('pipeline-library')_

def schedule = env.BRANCH_NAME.contains('master') ? '@monthly' : env.BRANCH_NAME == 'develop' ? '@midnight' : ''
def sonarBranchName = env.BRANCH_NAME.contains('master') ? '-Dsonar.branch.name=master' : '-Dsonar.branch.name=' + env.BRANCH_NAME
def sonarBranchTarget = env.BRANCH_NAME.contains('master') ? '' : env.BRANCH_NAME == 'develop' ? '-Dsonar.branch.target=master' : '-Dsonar.branch.target=develop'

pipeline {

Expand All @@ -14,12 +19,12 @@ pipeline {
parallelsAlwaysFailFast()
retry(1)
skipStagesAfterUnstable()
timeout(time: 60, unit: 'MINUTES')
timeout(time: 2, unit: 'HOURS')
timestamps()
}

triggers {
cron(env.BRANCH_NAME == 'develop' ? '@midnight' : '')
cron(schedule)
}

tools {
Expand All @@ -33,32 +38,30 @@ pipeline {
timeout(time: 5, unit: 'MINUTES')
}
steps {
withMaven(jdk: "${JDK_VERSION}", maven: 'M3') {
withMaven(jdk: "${JDK_VERSION}", maven: 'M3', mavenLocalRepo: '.repository') {
sh 'mvn clean'
sh 'mvn dependency:purge-local-repository -Dinclude=com.itextpdf -DresolutionFuzziness=groupId -DreResolve=false'
}
}
}
stage('Compile') {
options {
timeout(time: 5, unit: 'MINUTES')
timeout(time: 10, unit: 'MINUTES')
}
steps {
withMaven(jdk: "${JDK_VERSION}", maven: 'M3') {
sh 'mvn compile test-compile'
withMaven(jdk: "${JDK_VERSION}", maven: 'M3', mavenLocalRepo: '.repository') {
sh 'mvn compile test-compile package -Dmaven.test.skip=true -Dmaven.javadoc.failOnError=false'
}
}
}
stage('Run Tests') {
options {
timeout(time: 30, unit: 'MINUTES')
}
environment {
SONAR_BRANCH_TARGET= sh (returnStdout: true, script: '[ $BRANCH_NAME = master ] && echo master || echo develop').trim()
timeout(time: 1, unit: 'HOURS')
}
steps {
withMaven(jdk: "${JDK_VERSION}", maven: 'M3') {
withMaven(jdk: "${JDK_VERSION}", maven: 'M3', mavenLocalRepo: '.repository') {
withSonarQubeEnv('Sonar') {
sh 'mvn --activate-profiles test test verify org.jacoco:jacoco-maven-plugin:prepare-agent org.jacoco:jacoco-maven-plugin:report sonar:sonar -DgsExec="${gsExec}" -DcompareExec="${compareExec}" -Dmaven.test.skip=false -Dmaven.test.failure.ignore=false -Dmaven.javadoc.skip=true -Dsonar.branch.name="${BRANCH_NAME}" -Dsonar.branch.target="${SONAR_BRANCH_TARGET}"'
sh 'mvn --activate-profiles test -DgsExec="${gsExec}" -DcompareExec="${compareExec}" -Dmaven.test.skip=false -Dmaven.test.failure.ignore=false -Dmaven.javadoc.skip=true org.jacoco:jacoco-maven-plugin:prepare-agent verify org.jacoco:jacoco-maven-plugin:report sonar:sonar ' + sonarBranchName + ' ' + sonarBranchTarget
}
}
}
Expand All @@ -68,7 +71,7 @@ pipeline {
timeout(time: 30, unit: 'MINUTES')
}
steps {
withMaven(jdk: "${JDK_VERSION}", maven: 'M3') {
withMaven(jdk: "${JDK_VERSION}", maven: 'M3', mavenLocalRepo: '.repository') {
sh 'mvn --activate-profiles qa verify -Dpmd.analysisCache=true'
}
}
Expand Down Expand Up @@ -108,7 +111,7 @@ pipeline {
timeout(time: 5, unit: 'MINUTES')
}
steps {
archiveArtifacts allowEmptyArchive: true, artifacts: '**/*.jar'
archiveArtifacts allowEmptyArchive: true, artifacts: '**/*.jar, **/*.pom', excludes: '**/fb-contrib-*.jar, **/findsecbugs-plugin-*.jar'
}
}
}
Expand All @@ -119,6 +122,7 @@ pipeline {
}
success {
echo 'I succeeeded! \u263A'
cleanWs deleteDirs: true
}
unstable {
echo 'I am unstable \uD83D\uDE2E'
Expand All @@ -129,6 +133,20 @@ pipeline {
changed {
echo 'Things were different before... \uD83E\uDD14'
}
fixed {
script {
if (env.BRANCH_NAME.contains('master') || env.BRANCH_NAME.contains('develop')) {
slackNotifier("#ci", currentBuild.currentResult, "${env.BRANCH_NAME} - Back to normal")
}
}
}
regression {
script {
if (env.BRANCH_NAME.contains('master') || env.BRANCH_NAME.contains('develop')) {
slackNotifier("#ci", currentBuild.currentResult, "${env.BRANCH_NAME} - First failure")
}
}
}
}

}
2 changes: 1 addition & 1 deletion barcodes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.itextpdf</groupId>
<artifactId>root</artifactId>
<version>7.1.7</version>
<version>7.1.8</version>
</parent>
<artifactId>barcodes</artifactId>
<name>iText 7 - barcodes</name>
Expand Down
32 changes: 16 additions & 16 deletions barcodes/src/main/java/com/itextpdf/barcodes/Barcode128.java
Original file line number Diff line number Diff line change
Expand Up @@ -548,31 +548,31 @@ public Rectangle getBarcodeSize() {
* translation matrix to move it elsewhere.<p>
* The bars and text are written in the following colors:
* <br>
* <TABLE BORDER=1 SUMMARY="barcode properties">
* <TABLE BORDER="1" SUMMARY="barcode properties">
* <TR>
* <TH><P><CODE>barColor</CODE></TH>
* <TH><P><CODE>textColor</CODE></TH>
* <TH><P>Result</TH>
* <TH><CODE>barColor</CODE></TH>
* <TH><CODE>textColor</CODE></TH>
* <TH>Result</TH>
* </TR>
* <TR>
* <TD><P><CODE>null</CODE></TD>
* <TD><P><CODE>null</CODE></TD>
* <TD><P>bars and text painted with current fill color</TD>
* <TD><CODE>null</CODE></TD>
* <TD><CODE>null</CODE></TD>
* <TD>bars and text painted with current fill color</TD>
* </TR>
* <TR>
* <TD><P><CODE>barColor</CODE></TD>
* <TD><P><CODE>null</CODE></TD>
* <TD><P>bars and text painted with <CODE>barColor</CODE></TD>
* <TD><CODE>barColor</CODE></TD>
* <TD><CODE>null</CODE></TD>
* <TD>bars and text painted with <CODE>barColor</CODE></TD>
* </TR>
* <TR>
* <TD><P><CODE>null</CODE></TD>
* <TD><P><CODE>textColor</CODE></TD>
* <TD><P>bars painted with current color<br>text painted with <CODE>textColor</CODE></TD>
* <TD><CODE>null</CODE></TD>
* <TD><CODE>textColor</CODE></TD>
* <TD>bars painted with current color<br>text painted with <CODE>textColor</CODE></TD>
* </TR>
* <TR>
* <TD><P><CODE>barColor</CODE></TD>
* <TD><P><CODE>textColor</CODE></TD>
* <TD><P>bars painted with <CODE>barColor</CODE><br>text painted with <CODE>textColor</CODE></TD>
* <TD><CODE>barColor</CODE></TD>
* <TD><CODE>textColor</CODE></TD>
* <TD>bars painted with <CODE>barColor</CODE><br>text painted with <CODE>textColor</CODE></TD>
* </TR>
* </TABLE>
*
Expand Down
32 changes: 16 additions & 16 deletions barcodes/src/main/java/com/itextpdf/barcodes/Barcode1D.java
Original file line number Diff line number Diff line change
Expand Up @@ -424,31 +424,31 @@ public void setCodeType(int codeType) {
* translation matrix to move it elsewhere.<p>
* The bars and text are written in the following colors:
* <br>
* <TABLE BORDER=1 SUMMARY="barcode properties">
* <TABLE BORDER="1" SUMMARY="barcode properties">
* <TR>
* <TH><P><CODE>barColor</CODE></TH>
* <TH><P><CODE>textColor</CODE></TH>
* <TH><P>Result</TH>
* <TH><CODE>barColor</CODE></TH>
* <TH><CODE>textColor</CODE></TH>
* <TH>Result</TH>
* </TR>
* <TR>
* <TD><P><CODE>null</CODE></TD>
* <TD><P><CODE>null</CODE></TD>
* <TD><P>bars and text painted with current fill color</TD>
* <TD><CODE>null</CODE></TD>
* <TD><CODE>null</CODE></TD>
* <TD>bars and text painted with current fill color</TD>
* </TR>
* <TR>
* <TD><P><CODE>barColor</CODE></TD>
* <TD><P><CODE>null</CODE></TD>
* <TD><P>bars and text painted with <CODE>barColor</CODE></TD>
* <TD><CODE>barColor</CODE></TD>
* <TD><CODE>null</CODE></TD>
* <TD>bars and text painted with <CODE>barColor</CODE></TD>
* </TR>
* <TR>
* <TD><P><CODE>null</CODE></TD>
* <TD><P><CODE>textColor</CODE></TD>
* <TD><P>bars painted with current color<br>text painted with <CODE>textColor</CODE></TD>
* <TD><CODE>null</CODE></TD>
* <TD><CODE>textColor</CODE></TD>
* <TD>bars painted with current color<br>text painted with <CODE>textColor</CODE></TD>
* </TR>
* <TR>
* <TD><P><CODE>barColor</CODE></TD>
* <TD><P><CODE>textColor</CODE></TD>
* <TD><P>bars painted with <CODE>barColor</CODE><br>text painted with <CODE>textColor</CODE></TD>
* <TD><CODE>barColor</CODE></TD>
* <TD><CODE>textColor</CODE></TD>
* <TD>bars painted with <CODE>barColor</CODE><br>text painted with <CODE>textColor</CODE></TD>
* </TR>
* </TABLE>
*
Expand Down
32 changes: 16 additions & 16 deletions barcodes/src/main/java/com/itextpdf/barcodes/Barcode39.java
Original file line number Diff line number Diff line change
Expand Up @@ -269,31 +269,31 @@ public Rectangle getBarcodeSize() {
* translation matrix to move it elsewhere.<p>
* The bars and text are written in the following colors:
* <br>
* <TABLE BORDER=1 SUMMARY="barcode properties">
* <TABLE BORDER="1" SUMMARY="barcode properties">
* <TR>
* <TH><P><CODE>barColor</CODE></TH>
* <TH><P><CODE>textColor</CODE></TH>
* <TH><P>Result</TH>
* <TH><CODE>barColor</CODE></TH>
* <TH><CODE>textColor</CODE></TH>
* <TH>Result</TH>
* </TR>
* <TR>
* <TD><P><CODE>null</CODE></TD>
* <TD><P><CODE>null</CODE></TD>
* <TD><P>bars and text painted with current fill color</TD>
* <TD><CODE>null</CODE></TD>
* <TD><CODE>null</CODE></TD>
* <TD>bars and text painted with current fill color</TD>
* </TR>
* <TR>
* <TD><P><CODE>barColor</CODE></TD>
* <TD><P><CODE>null</CODE></TD>
* <TD><P>bars and text painted with <CODE>barColor</CODE></TD>
* <TD><CODE>barColor</CODE></TD>
* <TD><CODE>null</CODE></TD>
* <TD>bars and text painted with <CODE>barColor</CODE></TD>
* </TR>
* <TR>
* <TD><P><CODE>null</CODE></TD>
* <TD><P><CODE>textColor</CODE></TD>
* <TD><P>bars painted with current color<br>text painted with <CODE>textColor</CODE></TD>
* <TD><CODE>null</CODE></TD>
* <TD><CODE>textColor</CODE></TD>
* <TD>bars painted with current color<br>text painted with <CODE>textColor</CODE></TD>
* </TR>
* <TR>
* <TD><P><CODE>barColor</CODE></TD>
* <TD><P><CODE>textColor</CODE></TD>
* <TD><P>bars painted with <CODE>barColor</CODE><br>text painted with <CODE>textColor</CODE></TD>
* <TD><CODE>barColor</CODE></TD>
* <TD><CODE>textColor</CODE></TD>
* <TD>bars painted with <CODE>barColor</CODE><br>text painted with <CODE>textColor</CODE></TD>
* </TR>
* </TABLE>
*
Expand Down
32 changes: 16 additions & 16 deletions barcodes/src/main/java/com/itextpdf/barcodes/BarcodeCodabar.java
Original file line number Diff line number Diff line change
Expand Up @@ -205,31 +205,31 @@ public Rectangle getBarcodeSize() {
* translation matrix to move it elsewhere.<p>
* The bars and text are written in the following colors:
* <br>
* <TABLE BORDER=1 SUMMARY="barcode properties">
* <TABLE BORDER="1" SUMMARY="barcode properties">
* <TR>
* <TH><P><CODE>barColor</CODE></TH>
* <TH><P><CODE>textColor</CODE></TH>
* <TH><P>Result</TH>
* <TH><CODE>barColor</CODE></TH>
* <TH><CODE>textColor</CODE></TH>
* <TH>Result</TH>
* </TR>
* <TR>
* <TD><P><CODE>null</CODE></TD>
* <TD><P><CODE>null</CODE></TD>
* <TD><P>bars and text painted with current fill color</TD>
* <TD><CODE>null</CODE></TD>
* <TD><CODE>null</CODE></TD>
* <TD>bars and text painted with current fill color</TD>
* </TR>
* <TR>
* <TD><P><CODE>barColor</CODE></TD>
* <TD><P><CODE>null</CODE></TD>
* <TD><P>bars and text painted with <CODE>barColor</CODE></TD>
* <TD><CODE>barColor</CODE></TD>
* <TD><CODE>null</CODE></TD>
* <TD>bars and text painted with <CODE>barColor</CODE></TD>
* </TR>
* <TR>
* <TD><P><CODE>null</CODE></TD>
* <TD><P><CODE>textColor</CODE></TD>
* <TD><P>bars painted with current color<br>text painted with <CODE>textColor</CODE></TD>
* <TD><CODE>null</CODE></TD>
* <TD><CODE>textColor</CODE></TD>
* <TD>bars painted with current color<br>text painted with <CODE>textColor</CODE></TD>
* </TR>
* <TR>
* <TD><P><CODE>barColor</CODE></TD>
* <TD><P><CODE>textColor</CODE></TD>
* <TD><P>bars painted with <CODE>barColor</CODE><br>text painted with <CODE>textColor</CODE></TD>
* <TD><CODE>barColor</CODE></TD>
* <TD><CODE>textColor</CODE></TD>
* <TD>bars painted with <CODE>barColor</CODE><br>text painted with <CODE>textColor</CODE></TD>
* </TR>
* </TABLE>
*
Expand Down
32 changes: 16 additions & 16 deletions barcodes/src/main/java/com/itextpdf/barcodes/BarcodeEAN.java
Original file line number Diff line number Diff line change
Expand Up @@ -554,31 +554,31 @@ public Rectangle getBarcodeSize() {
* translation matrix to move it elsewhere.<p>
* The bars and text are written in the following colors:
* <br>
* <TABLE BORDER=1 SUMMARY="barcode properties">
* <TABLE BORDER="1" SUMMARY="barcode properties">
* <TR>
* <TH><P><CODE>barColor</CODE></TH>
* <TH><P><CODE>textColor</CODE></TH>
* <TH><P>Result</TH>
* <TH><CODE>barColor</CODE></TH>
* <TH><CODE>textColor</CODE></TH>
* <TH>Result</TH>
* </TR>
* <TR>
* <TD><P><CODE>null</CODE></TD>
* <TD><P><CODE>null</CODE></TD>
* <TD><P>bars and text painted with current fill color</TD>
* <TD><CODE>null</CODE></TD>
* <TD><CODE>null</CODE></TD>
* <TD>bars and text painted with current fill color</TD>
* </TR>
* <TR>
* <TD><P><CODE>barColor</CODE></TD>
* <TD><P><CODE>null</CODE></TD>
* <TD><P>bars and text painted with <CODE>barColor</CODE></TD>
* <TD><CODE>barColor</CODE></TD>
* <TD><CODE>null</CODE></TD>
* <TD>bars and text painted with <CODE>barColor</CODE></TD>
* </TR>
* <TR>
* <TD><P><CODE>null</CODE></TD>
* <TD><P><CODE>textColor</CODE></TD>
* <TD><P>bars painted with current color<br>text painted with <CODE>textColor</CODE></TD>
* <TD><CODE>null</CODE></TD>
* <TD><CODE>textColor</CODE></TD>
* <TD>bars painted with current color<br>text painted with <CODE>textColor</CODE></TD>
* </TR>
* <TR>
* <TD><P><CODE>barColor</CODE></TD>
* <TD><P><CODE>textColor</CODE></TD>
* <TD><P>bars painted with <CODE>barColor</CODE><br>text painted with <CODE>textColor</CODE></TD>
* <TD><CODE>barColor</CODE></TD>
* <TD><CODE>textColor</CODE></TD>
* <TD>bars painted with <CODE>barColor</CODE><br>text painted with <CODE>textColor</CODE></TD>
* </TR>
* </TABLE>
*
Expand Down
Loading

0 comments on commit 98294ec

Please sign in to comment.