Skip to content

Commit

Permalink
Updated Scala version and other dependencies (#37)
Browse files Browse the repository at this point in the history
Fixes #21
  • Loading branch information
morazow authored Nov 26, 2021
1 parent ff4e42e commit 351b5a1
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 23 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/broken_links_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,21 @@ on:
schedule:
- cron: "0 5 * * *"
push:
branches:
- main
pull_request:

jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configure broken links checker
run: |
mkdir -p ./target
echo '{ "aliveStatusCodes": [429, 200] }' > ./target/broken_links_checker.json
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
use-verbose-mode: 'yes'
config-file: ./target/broken_links_checker.json
13 changes: 9 additions & 4 deletions .github/workflows/ci-build-next-java.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: CI Build next Java

on:
- push
push:
branches:
- main
pull_request:

jobs:
build:
java-17-compatibility:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
Expand All @@ -24,9 +27,11 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-
- name: Run tests and build with Maven
run: mvn --batch-mode --update-snapshots clean package -DtrimStackTrace=false
run: |
mvn --batch-mode --update-snapshots clean package -DtrimStackTrace=false \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
- name: Publish Test Report
uses: scacap/action-surefire-report@v1
if: ${{ always() }}
if: ${{ always() && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
34 changes: 30 additions & 4 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: CI Build

on:
- push
push:
branches:
- main
pull_request:

jobs:
build:
Expand All @@ -12,8 +15,9 @@ jobs:
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 11
- name: Cache local Maven repository
uses: actions/cache@v2
Expand All @@ -22,9 +26,31 @@ jobs:
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Cache SonarCloud packages
uses: actions/cache@v2
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Run tests and build with Maven
run: mvn --batch-mode --update-snapshots clean verify sonar:sonar --file pom.xml -DtrimStackTrace=false -Dsonar.organization=exasol -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN
run: |
mvn --batch-mode clean verify \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
-DtrimStackTrace=false
- name: Publish Test Report
uses: scacap/action-surefire-report@v1
if: ${{ always() && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Sonar analysis
if: ${{ env.SONAR_TOKEN != null }}
run: |
mvn --batch-mode sonar:sonar \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
-DtrimStackTrace=false \
-Dsonar.organization=exasol \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.login=$SONAR_TOKEN
env:
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
1 change: 1 addition & 0 deletions doc/changes/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Changes

* [1.2.1](changes_1.2.1.md)
* [1.2.0](changes_1.2.0.md)
* [1.1.0](changes_1.1.0.md)
* [1.0.3](changes_1.0.3.md)
Expand Down
29 changes: 29 additions & 0 deletions doc/changes/changes_1.2.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Parquet for Java 1.2.1, released 2021-11-26

Code name: Dependency Updates

## Summary

In this release we updated project dependencies and build plugins.

## Features

* #21: Updated Scala dependency version to 2.13

## Dependency Updates

### Compile Dependency Updates

* Updated `org.scala-lang:scala-library:2.12.15` to `2.13.7`

### Test Dependency Updates

* Updated `org.mockito:mockito-core:4.0.0` to `4.1.0`
* Updated `org.mockito:mockito-junit-jupiter:4.0.0` to `4.1.0`
* Removed `org.scalatest:scalatest_2.12:3.2.7`
* Added `org.scalatest:scalatest_2.13:3.2.7`

### Plugin Dependency Updates

* Updated `com.exasol:project-keeper-maven-plugin:1.3.1` to `1.3.4`
* Updated `io.github.zlika:reproducible-build-maven-plugin:0.13` to `0.14`
26 changes: 12 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.exasol</groupId>
<artifactId>parquet-io-java</artifactId>
<version>1.2.0</version>
<version>1.2.1</version>
<name>Parquet for Java</name>
<description>This project provides a library that reads Parquet files into Java objects.</description>
<url>https://github.com/exasol/parquet-io-java</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>11</java.version>
<scala.version>2.12.15</scala.version>
<mockito.version>4.0.0</mockito.version>
<scala.version>2.13.7</scala.version>
<scala.compat.version>2.13</scala.compat.version>
<mockito.version>4.1.0</mockito.version>
<gpg.skip>true</gpg.skip>
</properties>
<licenses>
Expand Down Expand Up @@ -152,7 +152,7 @@
</dependency>
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_2.12</artifactId>
<artifactId>scalatest_${scala.compat.version}</artifactId>
<version>3.2.7</version>
<scope>test</scope>
</dependency>
Expand Down Expand Up @@ -208,8 +208,7 @@
<javacArg>${java.version}</javacArg>
<javacArg>-Xlint:all,-serial,-path,-try</javacArg>
</javacArgs>
<compilerPlugins>
</compilerPlugins>
<compilerPlugins />
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -382,7 +381,7 @@
<configuration>
<rules>
<requireMavenVersion>
<version>3.3.9</version>
<version>3.6.3</version>
</requireMavenVersion>
</rules>
</configuration>
Expand Down Expand Up @@ -420,8 +419,7 @@
<includes>
<include>**IT.java</include>
</includes>
<systemPropertyVariables>
</systemPropertyVariables>
<systemPropertyVariables />
</configuration>
<executions>
<execution>
Expand Down Expand Up @@ -506,7 +504,7 @@
</executions>
<configuration>
<charset>UTF-8</charset>
<doclint/>
<doclint />
<serialwarn>true</serialwarn>
<failOnError>true</failOnError>
<failOnWarnings>true</failOnWarnings>
Expand All @@ -516,7 +514,7 @@
<plugin>
<groupId>io.github.zlika</groupId>
<artifactId>reproducible-build-maven-plugin</artifactId>
<version>0.13</version>
<version>0.14</version>
<executions>
<execution>
<id>strip-jar</id>
Expand All @@ -530,7 +528,7 @@
<plugin>
<groupId>com.exasol</groupId>
<artifactId>project-keeper-maven-plugin</artifactId>
<version>1.3.1</version>
<version>1.3.4</version>
<executions>
<execution>
<goals>
Expand Down

0 comments on commit 351b5a1

Please sign in to comment.