Skip to content

Commit

Permalink
Compilação com openjdk 11 (#276)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
gilbertoca authored Oct 18, 2024
1 parent 619d3cf commit 7d4484b
Show file tree
Hide file tree
Showing 5 changed files with 235 additions and 186 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Java CI
on: [push]
env:
MAVEN_OPTS: -Dmaven.artifact.threads=256 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11
- name: 'Cache Maven packages'
uses: actions/cache@v4
with:
path: ~/.m2
key: 'cache'
restore-keys: 'cache'
- name: 'Build with Maven'
run: mvn -B install --file pom.xml
- name: 'Remove Snapshots Before Caching'
run: find ~/.m2 -name '*SNAPSHOT' | xargs rm -Rf
24 changes: 24 additions & 0 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Pull Request
on: [pull_request]
env:
MAVEN_OPTS: -Dmaven.artifact.threads=256 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 11
- name: 'Cache Maven packages'
uses: actions/cache@v4
with:
path: ~/.m2
key: 'cache'
restore-keys: 'cache'
- name: 'Build with Maven'
run: mvn -B install --file pom.xml
- name: 'Remove Snapshots Before Caching'
run: find ~/.m2 -name '*SNAPSHOT' | xargs rm -Rf
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

45 changes: 33 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,18 @@
<version>1.8.5</version>
<scope>test</scope>
</dependency>
<!-- API, java.xml.bind module -->
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>2.3.2</version>
</dependency>
<!-- Runtime, com.sun.xml.bind module -->
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>2.3.2</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand All @@ -94,6 +106,14 @@
<artifactId>mockito-all</artifactId>
<version>1.8.5</version>
</dependency>
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
</dependency>
</dependencies>

<build>
Expand All @@ -106,15 +126,18 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding>
</configuration>
<version>3.8.1</version>
<configuration>
<release>11</release>
<source>1.8</source>
<target>1.8</target>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>attach-javadoc</id>
Expand All @@ -128,8 +151,6 @@
http://java.sun.com/j2se/1.5/docs/api
</link>
</links>
<encoding>utf-8</encoding>
<charset>utf-8</charset>
</configuration>
</execution>
</executions>
Expand All @@ -149,7 +170,7 @@
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.2</version>
<version>3.0.0-M5</version>
<configuration>
<forkMode>once</forkMode>
<printSummary>true</printSummary>
Expand Down Expand Up @@ -207,7 +228,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<version>3.8.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -216,7 +237,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
<version>3.3.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -454,12 +475,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
<version>3.3.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.8.1</version>
<version>3.0.0-M5</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
Expand Down
Loading

0 comments on commit 7d4484b

Please sign in to comment.