Skip to content

Commit e339233

Browse files
Bump org.apache.pdfbox:pdfbox from 3.0.6 to 3.0.7 in /src/jvm/netpdf (#144)
* Bump org.apache.pdfbox:pdfbox from 3.0.6 to 3.0.7 in /src/jvm/netpdf Bumps org.apache.pdfbox:pdfbox from 3.0.6 to 3.0.7. --- updated-dependencies: - dependency-name: org.apache.pdfbox:pdfbox dependency-version: 3.0.7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Adds version change by workflow --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: masesdevelopers <94312179+masesdevelopers@users.noreply.github.com>
1 parent 5f664bf commit e339233

8 files changed

Lines changed: 77 additions & 70 deletions

File tree

.github/workflows/build.yaml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -152,18 +152,9 @@ jobs:
152152
distribution: temurin
153153
java-version: 11
154154
cache: 'maven'
155-
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
156-
server-username: MAVEN_USERNAME # env variable for username in deploy
157-
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
158-
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
159-
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
160155

161156
- name: Create Jars
162157
run: mvn "-DmavenSkipMain=true" --file ./src/jvm/netpdf/pom.xml --no-transfer-progress package
163-
env:
164-
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
165-
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
166-
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
167158

168159
- name: Compile command line
169160
run: dotnet build --no-incremental --configuration Release /p:Platform="Any CPU" /p:NoWarn="0108%3B1030%3B0618" src\net\NetPDFCLI\NetPDFCLI.csproj
@@ -238,18 +229,9 @@ jobs:
238229
distribution: temurin
239230
java-version: 11
240231
cache: 'maven'
241-
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
242-
server-username: MAVEN_USERNAME # env variable for username in deploy
243-
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
244-
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
245-
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
246232

247233
- name: Create Jars
248234
run: mvn "-DmavenSkipMain=true" --file ./src/jvm/netpdf/pom.xml --no-transfer-progress package
249-
env:
250-
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
251-
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
252-
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
253235

254236
- name: Set up QEMU
255237
uses: docker/setup-qemu-action@v3

.github/workflows/docker.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,9 @@ jobs:
4444
distribution: temurin
4545
java-version: 11
4646
cache: 'maven'
47-
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
48-
server-username: MAVEN_USERNAME # env variable for username in deploy
49-
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
50-
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
51-
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
5247

5348
- name: Create Jars
5449
run: mvn --file ./src/jvm/netpdf/pom.xml --no-transfer-progress package
55-
env:
56-
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
57-
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
58-
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
5950

6051
- name: Set up QEMU
6152
uses: docker/setup-qemu-action@v3

.github/workflows/generateclasses.yaml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
DOTNET_EnableCrashReport: 1
4343
JCOBRIDGE_LicensePath: ${{ secrets.JCOBRIDGE_ENCODED_2_6_5 }}
4444
JNet_Version: 2.6.5
45-
PDFBox_Version: 3.0.6
45+
PDFBox_Version: 3.0.7
4646
FONTCACHE_FOLDER: ${{ github.workspace }}\fontcache
4747

4848
# Steps represent a sequence of tasks that will be executed as part of the job
@@ -81,24 +81,15 @@ jobs:
8181
distribution: temurin
8282
java-version: 11
8383
cache: 'maven'
84-
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
85-
server-username: MAVEN_USERNAME # env variable for username in deploy
86-
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
87-
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
88-
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
8984

9085
- name: Create Jars
9186
run: mvn "-DmavenSkipMain=true" --file ./src/jvm/netpdf/pom.xml --no-transfer-progress package
92-
env:
93-
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
94-
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
95-
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
9687

9788
- name: Clear C# generated files
9889
run: Remove-Item .\src\net\NetPDF\Generated\* -Recurse -Force -Exclude README.md
9990

10091
- name: Clear Java generated files
101-
run: Remove-Item .\src\jvm\netpdf\src\main\java\org\mases\netpdf\generated\* -Recurse -Force -Exclude README.md
92+
run: Remove-Item .\src\jvm\netpdf\src\main\java\org\mases\netpdf\generated\* -Recurse -Force -Exclude README.md,.editorconfig
10293

10394
- name: Get last workflow run of JNet
10495
if: ${{ inputs.UseLastRepositoryBuild == true }}
@@ -130,10 +121,6 @@ jobs:
130121
- name: Create Jars of JNetReflector
131122
if: ${{ inputs.UseLatestJNetReflectorSource == true }}
132123
run: mvn "-Djcobridgepath=../../../binReflector/net8.0/JCOBridge.jar" --file ./JNet/src/jvm/jnet/pom.xml --no-transfer-progress package
133-
env:
134-
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
135-
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
136-
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
137124

138125
- name: Build JNetReflector
139126
if: ${{ inputs.UseLatestJNetReflectorSource == true }}

.github/workflows/pullrequest.yaml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,9 @@ jobs:
9090
distribution: temurin
9191
java-version: 11
9292
cache: 'maven'
93-
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
94-
server-username: MAVEN_USERNAME # env variable for username in deploy
95-
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
96-
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
97-
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
9893

9994
- name: Create Jars
10095
run: mvn "-DmavenSkipMain=true" --file ./src/jvm/netpdf/pom.xml --no-transfer-progress package
101-
env:
102-
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
103-
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
104-
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
10596

10697
- name: Build Docker Image
10798
run: docker build -t netpdf -f ./src/container/Dockerfile.linux .
@@ -145,18 +136,9 @@ jobs:
145136
distribution: temurin
146137
java-version: 11
147138
cache: 'maven'
148-
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
149-
server-username: MAVEN_USERNAME # env variable for username in deploy
150-
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
151-
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
152-
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
153139

154140
- name: Create Jars
155141
run: mvn "-DmavenSkipMain=true" --file ./src/jvm/netpdf/pom.xml --no-transfer-progress package
156-
env:
157-
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
158-
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
159-
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
160142

161143
- name: Compile command line
162144
run: dotnet build --no-incremental --configuration Release /p:Platform="Any CPU" /p:NoWarn="0108%3B1030%3B0618" src\net\NetPDFCLI\NetPDFCLI.csproj

.github/workflows/release.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,9 @@ jobs:
4646
distribution: temurin
4747
java-version: 11
4848
cache: 'maven'
49-
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
50-
server-username: MAVEN_USERNAME # env variable for username in deploy
51-
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
52-
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
53-
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
5449

5550
- name: Create Jars
5651
run: mvn --file ./src/jvm/netpdf/pom.xml --no-transfer-progress package
57-
env:
58-
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
59-
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
60-
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
6152

6253
- name: Compile NetPDF CLI
6354
run: dotnet build --no-incremental --configuration Release /p:Platform="Any CPU" /p:NoWarn="0108%3B1030%3B0618" src\net\NetPDFCLI\NetPDFCLI.csproj
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: "Change version"
4+
5+
# Controls when the action will run. Triggers the workflow on push
6+
# events but only for the master branch
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
CurrentVersion:
11+
description: 'The current version'
12+
required: true
13+
type: string
14+
PreReleaseCurrentVersion:
15+
description: 'The current version pre-release tag'
16+
required: false
17+
type: string
18+
NewVersion:
19+
description: 'The new version'
20+
required: true
21+
type: string
22+
PreReleaseNewVersion:
23+
description: 'The new version pre-release tag'
24+
required: false
25+
type: string
26+
27+
# This workflow contains one job called "build_documentation"
28+
jobs:
29+
update_version:
30+
# The type of runner that the job will run on
31+
runs-on: windows-2022
32+
33+
# Steps represent a sequence of tasks that will be executed as part of the job
34+
steps:
35+
# Runs a set of commands using the runners shell
36+
# Support longpaths
37+
- name: Support long paths
38+
run: git config --system core.longpaths true
39+
40+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
41+
- uses: actions/checkout@v6
42+
with:
43+
fetch-depth: '1'
44+
45+
- run: (Get-Content ${{ github.workspace }}\src\jvm\netpdf\pom.xml).Replace('<netpdfversion>${{ inputs.CurrentVersion }}.0</netpdfversion>', '<netpdfversion>${{ inputs.NewVersion }}.0</netpdfversion>') | Set-Content ${{ github.workspace }}\src\jvm\netpdf\pom.xml
46+
47+
- run: (Get-Content ${{ github.workspace }}\src\net\Common\Common.props).Replace('<Version>${{ inputs.CurrentVersion }}.0${{ inputs.PreReleaseCurrentVersion }}</Version>', '<Version>${{ inputs.NewVersion }}.0${{ inputs.PreReleaseNewVersion }}</Version>') | Set-Content ${{ github.workspace }}\src\net\Common\Common.props
48+
49+
- run: (Get-Content ${{ github.workspace }}\src\net\NetPDFCLI\NetPDFCLI.nuspec).Replace('<version>${{ inputs.CurrentVersion }}${{ inputs.PreReleaseCurrentVersion }}</version>', '<version>${{ inputs.NewVersion }}${{ inputs.PreReleaseNewVersion }}</version>') | Set-Content ${{ github.workspace }}\src\net\NetPDFCLI\NetPDFCLI.nuspec
50+
51+
- run: (Get-Content ${{ github.workspace }}\src\net\NetPDFPS\MASES.NetPDFPS.psd1).Replace('${{ inputs.CurrentVersion }}${{ inputs.PreReleaseCurrentVersion }}', '${{ inputs.NewVersion }}${{ inputs.PreReleaseNewVersion }}') | Set-Content ${{ github.workspace }}\src\net\NetPDFPS\MASES.NetPDFPS.psd1
52+
- run: (Get-Content ${{ github.workspace }}\src\net\NetPDFPS\MASES.NetPDFPSCore.psd1).Replace('${{ inputs.CurrentVersion }}${{ inputs.PreReleaseCurrentVersion }}', '${{ inputs.NewVersion }}${{ inputs.PreReleaseNewVersion }}') | Set-Content ${{ github.workspace }}\src\net\NetPDFPS\MASES.NetPDFPSCore.psd1
53+
- run: (Get-Content ${{ github.workspace }}\src\net\NetPDFPS\MASES.NetPDFPSFramework.psd1).Replace('${{ inputs.CurrentVersion }}${{ inputs.PreReleaseCurrentVersion }}', '${{ inputs.NewVersion }}${{ inputs.PreReleaseNewVersion }}') | Set-Content ${{ github.workspace }}\src\net\NetPDFPS\MASES.NetPDFPSFramework.psd1
54+
55+
- run: (Get-Content ${{ github.workspace }}\src\net\templates\templates\netpdfApp\netpdfApp.csproj).Replace('${{ inputs.CurrentVersion }}${{ inputs.PreReleaseCurrentVersion }}', '${{ inputs.NewVersion }}${{ inputs.PreReleaseNewVersion }}') | Set-Content ${{ github.workspace }}\src\net\templates\templates\netpdfApp\netpdfApp.csproj
56+
57+
- name: Request a PR to commit changes
58+
uses: peter-evans/create-pull-request@v8
59+
with:
60+
branch-suffix: short-commit-hash
61+
add-paths: src/*.*
62+
commit-message: Update version from ${{ inputs.CurrentVersion }}${{ inputs.PreReleaseCurrentVersion }} to ${{ inputs.NewVersion }}${{ inputs.PreReleaseNewVersion }}
63+
title: Update version from ${{ inputs.CurrentVersion }}${{ inputs.PreReleaseCurrentVersion }} to ${{ inputs.NewVersion }}${{ inputs.PreReleaseNewVersion }}
64+
body: |
65+
Automated changes by GitHub action fix #47
66+
reviewers: masesdevelopers
67+
assignees: masesdevelopers
68+
labels: enhancement, Docker, java, NetPDF, NetPDF CLI, NetPDF PowerShell, NetPDF Template, .NET

src/jvm/netpdf/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<classpathfile>${basedir}/classpathfile.classpath</classpathfile>
4545
<mavenSkipMain>false</mavenSkipMain> <!-- set mavenSkipMain to true to avoid source compilation: use directive in command-line -->
4646
<jnetVersion>2.6.5.0</jnetVersion>
47-
<pdfBoxVersion>3.0.6</pdfBoxVersion>
47+
<pdfBoxVersion>3.0.7</pdfBoxVersion>
4848
<netpdfversion>3.0.9.0</netpdfversion>
4949
<rootDir>${basedir}/../../../</rootDir>
5050
<jcobridgepath>${rootDir}/bin/net8.0/JCOBridge.jar</jcobridgepath>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[*.cs]
2+
generated_code = true
3+
dotnet_analyzer_diagnostic.severity = none
4+
dotnet_diagnostic.CS0108.severity = none
5+
dotnet_diagnostic.CS0419.severity = none
6+
dotnet_diagnostic.CS1574.severity = none

0 commit comments

Comments
 (0)