Skip to content

Commit a4d2f30

Browse files
committed
Merge branch 'release-1.0.1'
2 parents dab5c0e + 2ee4b39 commit a4d2f30

File tree

12 files changed

+649
-159
lines changed

12 files changed

+649
-159
lines changed

.dependabot/config.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: maven
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "04:00"
8+
open-pull-requests-limit: 10

.github/workflows/codeql-analysis.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ develop ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ develop ]
20+
schedule:
21+
- cron: '17 19 * * 3'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
language: [ 'java' ]
32+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
33+
# Learn more:
34+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
35+
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v2
39+
40+
# Initializes the CodeQL tools for scanning.
41+
- name: Initialize CodeQL
42+
uses: github/codeql-action/init@v1
43+
with:
44+
languages: ${{ matrix.language }}
45+
# If you wish to specify custom queries, you can do so here or in a config file.
46+
# By default, queries listed here will override any specified in a config file.
47+
# Prefix the list here with "+" to use these queries and those in the config file.
48+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
49+
50+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51+
# If this step fails, then you should remove it and run the build manually (see below)
52+
- name: Autobuild
53+
uses: github/codeql-action/autobuild@v1
54+
55+
# ℹ️ Command-line programs to run using the OS shell.
56+
# 📚 https://git.io/JvXDl
57+
58+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
59+
# and modify them (or add more) to build your code if your project
60+
# uses a compiled language
61+
62+
#- run: |
63+
# make bootstrap
64+
# make release
65+
66+
- name: Perform CodeQL Analysis
67+
uses: github/codeql-action/analyze@v1

.github/workflows/java8-maven.yml

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
name: Java8+ with Maven
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
build-and-test-job:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
java: [ 8, 11 ]
11+
os: [ ubuntu-latest, macOS-latest, windows-latest ]
12+
experimental: [ false ]
13+
include:
14+
- java: '>11'
15+
os: ubuntu-latest
16+
experimental: true
17+
18+
name: JDK${{ matrix.java }} on ${{ matrix.os }}
19+
runs-on: ${{ matrix.os }}
20+
continue-on-error: ${{ matrix.experimental }}
21+
22+
steps:
23+
- name: Checkout source code
24+
uses: actions/checkout@v2
25+
with:
26+
submodules: true
27+
28+
- name: Setup Java
29+
uses: actions/setup-java@v1
30+
with:
31+
java-version: ${{ matrix.java }}
32+
33+
- name: Setup Maven cache
34+
uses: actions/cache@v1
35+
with:
36+
path: ~/.m2
37+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
38+
restore-keys: ${{ runner.os }}-m2
39+
40+
- name: Build and (headless) test with Maven
41+
uses: GabrielBB/xvfb-action@v1
42+
with:
43+
run: mvn -B -ntp package
44+
45+
snapshot-job:
46+
needs: build-and-test-job
47+
if: startsWith(github.repository, 'nbbrd/') && startsWith(github.ref, 'refs/heads/develop')
48+
strategy:
49+
matrix:
50+
java: [ 11 ]
51+
os: [ ubuntu-latest ]
52+
53+
name: Snapshot on develop
54+
runs-on: ${{ matrix.os }}
55+
56+
steps:
57+
- name: Checkout source code
58+
uses: actions/checkout@v2
59+
with:
60+
submodules: true
61+
62+
- name: Setup Java
63+
uses: actions/setup-java@v1
64+
with:
65+
java-version: ${{ matrix.java }}
66+
67+
- name: Setup Maven cache
68+
uses: actions/cache@v1
69+
with:
70+
path: ~/.m2
71+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
72+
restore-keys: ${{ runner.os }}-m2
73+
74+
- name: Deploy snapshot with Maven if settings defined
75+
run: test -f ci.settings.xml && mvn -B -ntp deploy -DskipTests=true -s ci.settings.xml -P base-deploy,snapshot-deploy,!non-deployable-modules
76+
env:
77+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
78+
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
79+
SIGN_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
80+
SIGN_KEY_PASS: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
81+
82+
release-job:
83+
needs: build-and-test-job
84+
if: startsWith(github.repository, 'nbbrd/') && startsWith(github.ref, 'refs/tags/v')
85+
strategy:
86+
matrix:
87+
java: [ 11 ]
88+
os: [ ubuntu-latest ]
89+
90+
name: Release on tag
91+
runs-on: ${{ matrix.os }}
92+
93+
steps:
94+
- name: Checkout source code
95+
uses: actions/checkout@v2
96+
with:
97+
submodules: true
98+
99+
- name: Setup Java
100+
uses: actions/setup-java@v1
101+
with:
102+
java-version: ${{ matrix.java }}
103+
104+
- name: Setup Maven cache
105+
uses: actions/cache@v1
106+
with:
107+
path: ~/.m2
108+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
109+
restore-keys: ${{ runner.os }}-m2
110+
111+
- name: Deploy with Maven if settings defined
112+
run: test -f ci.settings.xml && mvn -B -ntp deploy -DskipTests=true -s ci.settings.xml -P base-deploy,release-deploy,!non-deployable-modules
113+
env:
114+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
115+
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
116+
SIGN_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
117+
SIGN_KEY_PASS: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
118+
119+
- name: Build assets with Maven
120+
run: mvn -B -ntp install -DskipTests=true -P base-deploy
121+
env:
122+
SIGN_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
123+
SIGN_KEY_PASS: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
124+
125+
- name: Create dummy file if no assets
126+
run: test -d "binaries" || (mkdir binaries && echo "no assets" > binaries/no_assets.txt)
127+
128+
- name: Create draft release and upload assets
129+
uses: xresloader/upload-to-github-release@v1
130+
env:
131+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
132+
with:
133+
file: 'binaries/*'

.travis.settings.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)