Skip to content

Commit 7d4484b

Browse files
authored
Compilação com openjdk 11 (#276)
* Conserta o build Conserta o build * Maven mirror com certificado inválido Maven mirror com certificado inválido * Somente openjdk Somente openjdk * ajuste para compilar com jdk11 * ajusta o compilador do jasperreports plugin * configura o build para jdk11 * jasperreporsts 6.1.0 * maven-compiler 3.8.1 * maven 3.8.2 e desabilita bloqueio do uso HTTP * Conserta java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException * Conserta java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/JsonNode * ajuste pois o Travis está com uma versão openjdk11 antiga * incorpora a sugestão feita no PR #275 * Rervert parcialmente o o commit "desabilita bloqueio do uso HTTP" O projeto jasperreports mantido pelo JasperSoft disponibilizou um repositório com HTTPS * substitui travis por github workflow
1 parent 619d3cf commit 7d4484b

File tree

5 files changed

+235
-186
lines changed

5 files changed

+235
-186
lines changed

.github/workflows/ci.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Java CI
2+
on: [push]
3+
env:
4+
MAVEN_OPTS: -Dmaven.artifact.threads=256 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Setup Java JDK
11+
uses: actions/setup-java@v4
12+
with:
13+
distribution: 'zulu'
14+
java-version: 11
15+
- name: 'Cache Maven packages'
16+
uses: actions/cache@v4
17+
with:
18+
path: ~/.m2
19+
key: 'cache'
20+
restore-keys: 'cache'
21+
- name: 'Build with Maven'
22+
run: mvn -B install --file pom.xml
23+
- name: 'Remove Snapshots Before Caching'
24+
run: find ~/.m2 -name '*SNAPSHOT' | xargs rm -Rf

.github/workflows/pr-validation.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Pull Request
2+
on: [pull_request]
3+
env:
4+
MAVEN_OPTS: -Dmaven.artifact.threads=256 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Setup Java JDK
11+
uses: actions/setup-java@v4
12+
with:
13+
distribution: 'zulu'
14+
java-version: 11
15+
- name: 'Cache Maven packages'
16+
uses: actions/cache@v4
17+
with:
18+
path: ~/.m2
19+
key: 'cache'
20+
restore-keys: 'cache'
21+
- name: 'Build with Maven'
22+
run: mvn -B install --file pom.xml
23+
- name: 'Remove Snapshots Before Caching'
24+
run: find ~/.m2 -name '*SNAPSHOT' | xargs rm -Rf

.travis.yml

-13
This file was deleted.

pom.xml

+33-12
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,18 @@
7373
<version>1.8.5</version>
7474
<scope>test</scope>
7575
</dependency>
76+
<!-- API, java.xml.bind module -->
77+
<dependency>
78+
<groupId>jakarta.xml.bind</groupId>
79+
<artifactId>jakarta.xml.bind-api</artifactId>
80+
<version>2.3.2</version>
81+
</dependency>
82+
<!-- Runtime, com.sun.xml.bind module -->
83+
<dependency>
84+
<groupId>org.glassfish.jaxb</groupId>
85+
<artifactId>jaxb-runtime</artifactId>
86+
<version>2.3.2</version>
87+
</dependency>
7688
</dependencies>
7789
</dependencyManagement>
7890

@@ -94,6 +106,14 @@
94106
<artifactId>mockito-all</artifactId>
95107
<version>1.8.5</version>
96108
</dependency>
109+
<dependency>
110+
<groupId>jakarta.xml.bind</groupId>
111+
<artifactId>jakarta.xml.bind-api</artifactId>
112+
</dependency>
113+
<dependency>
114+
<groupId>org.glassfish.jaxb</groupId>
115+
<artifactId>jaxb-runtime</artifactId>
116+
</dependency>
97117
</dependencies>
98118

99119
<build>
@@ -106,15 +126,18 @@
106126
<plugin>
107127
<groupId>org.apache.maven.plugins</groupId>
108128
<artifactId>maven-compiler-plugin</artifactId>
109-
<configuration>
110-
<source>1.6</source>
111-
<target>1.6</target>
112-
<encoding>UTF-8</encoding>
113-
</configuration>
129+
<version>3.8.1</version>
130+
<configuration>
131+
<release>11</release>
132+
<source>1.8</source>
133+
<target>1.8</target>
134+
<showDeprecation>true</showDeprecation>
135+
</configuration>
114136
</plugin>
115137
<plugin>
116138
<groupId>org.apache.maven.plugins</groupId>
117139
<artifactId>maven-javadoc-plugin</artifactId>
140+
<version>3.3.0</version>
118141
<executions>
119142
<execution>
120143
<id>attach-javadoc</id>
@@ -128,8 +151,6 @@
128151
http://java.sun.com/j2se/1.5/docs/api
129152
</link>
130153
</links>
131-
<encoding>utf-8</encoding>
132-
<charset>utf-8</charset>
133154
</configuration>
134155
</execution>
135156
</executions>
@@ -149,7 +170,7 @@
149170
</plugin>
150171
<plugin>
151172
<artifactId>maven-surefire-plugin</artifactId>
152-
<version>2.4.2</version>
173+
<version>3.0.0-M5</version>
153174
<configuration>
154175
<forkMode>once</forkMode>
155176
<printSummary>true</printSummary>
@@ -207,7 +228,7 @@
207228
<plugin>
208229
<groupId>org.apache.maven.plugins</groupId>
209230
<artifactId>maven-compiler-plugin</artifactId>
210-
<version>2.3.2</version>
231+
<version>3.8.0</version>
211232
</plugin>
212233
<plugin>
213234
<groupId>org.apache.maven.plugins</groupId>
@@ -216,7 +237,7 @@
216237
<plugin>
217238
<groupId>org.apache.maven.plugins</groupId>
218239
<artifactId>maven-javadoc-plugin</artifactId>
219-
<version>2.8</version>
240+
<version>3.3.0</version>
220241
</plugin>
221242
<plugin>
222243
<groupId>org.apache.maven.plugins</groupId>
@@ -454,12 +475,12 @@
454475
<plugin>
455476
<groupId>org.apache.maven.plugins</groupId>
456477
<artifactId>maven-javadoc-plugin</artifactId>
457-
<version>2.8</version>
478+
<version>3.3.0</version>
458479
</plugin>
459480
<plugin>
460481
<groupId>org.apache.maven.plugins</groupId>
461482
<artifactId>maven-surefire-plugin</artifactId>
462-
<version>2.8.1</version>
483+
<version>3.0.0-M5</version>
463484
</plugin>
464485
<plugin>
465486
<groupId>org.codehaus.mojo</groupId>

0 commit comments

Comments
 (0)