Skip to content

Commit

Permalink
Merge pull request #63 from apache/Update_to_core2.0.0
Browse files Browse the repository at this point in the history
Updates to match java core 2.0.0
  • Loading branch information
leerho committed Feb 2, 2022
2 parents 1d9defb + f283d34 commit 4802dcd
Show file tree
Hide file tree
Showing 86 changed files with 986 additions and 1,084 deletions.
36 changes: 36 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# The default behavior, which overrides 'core.autocrlf', is to use Git's
# built-in heuristics to determine whether a particular file is text or binary.
# Text files are automatically normalized to the user's platforms.
* text=auto

# Explicitly declare text files that should always be normalized and converted
# to native line endings.
.asf.yaml text
.gitattributes text
.gitignore text
git.properties text
.travis.yml text
LICENSE text
NOTICE text
*.html text
*.java text
*.md text
*.properties text
*.sh text
*.xml text
*.yml text
*.yaml text

# Declare files that will always have CRLF line endings on checkout.

# Explicitly denote all files that are truly binary and should not be modified.
*.jpg binary
*.png binary
*.svg binary

# Declare files that should be ignored when creating an archive of the git repository
.asf.yaml export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.travis.yml export-ignore
.github/ export-ignore
13 changes: 13 additions & 0 deletions .github/workflows/.toolchains.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF8"?>
<toolchains>
<toolchain>
<type>jdk</type>
<provides>
<version>8</version>
<vendor>openjdk</vendor>
</provides>
<configuration>
<jdkHome>${JAVA_HOME}</jdkHome>
</configuration>
</toolchain>
</toolchains>
53 changes: 53 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Java Test Coverage with Maven, Coveralls

on:
pull_request:
push:
branches: [ master ]

env:
MAVEN_OPTS: -Xmx4g -Xms1g
repo_token: ${{secrets.coveralls_token}}

jobs:
build:
name: Build, Test, Coverage
runs-on: ubuntu-latest

steps:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v2
with:
persist-credentials: false

- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: build-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: build-${{ runner.os }}-maven-

- name: Install JDK
uses: AdoptOpenJDK/install-jdk@v1
with:
version: '8'
architecture: x64
impl: hotspot
targets: 'JDK_8;JAVA_HOME'

- name: Install Dependencies
run: >
mvn clean install -B -V -q
-DskipTests=true
-Dmaven.javadoc.skip=true
-Dgpg.skip=true
--toolchains .github/workflows/.toolchains.xml
- name: Test & Report
if: ${{ success() }}
run: >
mvn verify coveralls:report -B -V -q
-Dcoveralls-repo-token=${repo_token}
-Dmaven.javadoc.skip=true
-Dgpg.skip=true
--toolchains .github/workflows/.toolchains.xml
40 changes: 32 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,44 @@
.settings/
.checkstyle

#OSX files
# IntelliJ project files
*.idea
*.iml
*.ipr
*.iws

# Additional tools
.clover/

# OSX files
.DS_Store

# Compiler output, class files
*.class
bin/

#Test output
# Log file
*.log

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

#Test config and output
test-output/
.clover/
local/
reports/
.pmd
Expand All @@ -25,17 +54,12 @@ build/
jarsIn/
*.jar
build.xml
.idea
*.iml
*.properties
*.releaseBackup
*.next
*.tag

# Jekyll
Gemfile
Gemfile.lock
_site/
_*
_*/

43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 4802dcd

Please sign in to comment.