diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml
new file mode 100644
index 0000000..146ec7d
--- /dev/null
+++ b/.github/release-drafter.yml
@@ -0,0 +1,34 @@
+name-template: 'v$RESOLVED_VERSION 🌈'
+tag-template: 'v$RESOLVED_VERSION'
+categories:
+ - title: '🚀 Features'
+ labels:
+ - 'feature'
+ - 'enhancement'
+ - title: '🐛 Bug Fixes'
+ labels:
+ - 'fix'
+ - 'bugfix'
+ - 'bug'
+ - title: '🧰 Maintenance'
+ labels:
+ - 'chore'
+ - 'dependencies'
+change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
+version-resolver:
+ major:
+ labels:
+ - 'major'
+ minor:
+ labels:
+ - 'minor'
+ patch:
+ labels:
+ - 'patch'
+ default: patch
+exclude-labels:
+ - 'skip-changelog'
+template: |
+ ## Changes
+
+ $CHANGES
diff --git a/.github/stale.yaml b/.github/stale.yaml
new file mode 100644
index 0000000..dc90e5a
--- /dev/null
+++ b/.github/stale.yaml
@@ -0,0 +1,17 @@
+# Number of days of inactivity before an issue becomes stale
+daysUntilStale: 60
+# Number of days of inactivity before a stale issue is closed
+daysUntilClose: 7
+# Issues with these labels will never be considered stale
+exemptLabels:
+ - pinned
+ - security
+# Label to use when marking an issue as stale
+staleLabel: wontfix
+# Comment to post when marking an issue as stale. Set to `false` to disable
+markComment: >
+ This issue has been automatically marked as stale because it has not had
+ recent activity. It will be closed if no further activity occurs. Thank you
+ for your contributions.
+# Comment to post when closing a stale issue. Set to `false` to disable
+closeComment: false
diff --git a/.github/workflows/build-maven.yml b/.github/workflows/build-maven.yml
new file mode 100644
index 0000000..ef12486
--- /dev/null
+++ b/.github/workflows/build-maven.yml
@@ -0,0 +1,23 @@
+name: maven-build
+
+on:
+ push:
+ branches: '*'
+ pull_request:
+ branches: '*'
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ java: [ 11, 14 ]
+ steps:
+ - uses: kamiazya/setup-graphviz@v1
+ - uses: actions/checkout@v2
+ - name: setup-jdk-${{ matrix.java }}
+ uses: actions/setup-java@v1
+ with:
+ java-version: ${{ matrix.java }}
+ - name: build-jar
+ run: mvn -B install
diff --git a/.github/workflows/sonatype-deploy.yml b/.github/workflows/deploy-sonatype.yml
similarity index 85%
rename from .github/workflows/sonatype-deploy.yml
rename to .github/workflows/deploy-sonatype.yml
index 5a95a76..ea469cb 100644
--- a/.github/workflows/sonatype-deploy.yml
+++ b/.github/workflows/deploy-sonatype.yml
@@ -1,19 +1,20 @@
-name: Deploy to Sonatype Nexus
+name: sonatype-deploy
on:
- release:
- types: [created]
+ push:
+ tags:
+ - "v*"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
-# - uses: kamiazya/setup-graphviz@v1
+ - uses: kamiazya/setup-graphviz@v1
- uses: actions/checkout@v2
- - name: Set up JDK 11
+ - name: Set up JDK
uses: actions/setup-java@v1
with:
- java-version: 11
+ java-version: 8
- name: Build with Maven
run: mvn -B install
- name: Nexus Repo Publish
diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml
new file mode 100644
index 0000000..f3d4750
--- /dev/null
+++ b/.github/workflows/draft-release.yml
@@ -0,0 +1,14 @@
+name: draft-release
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ update_draft_release:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: release-drafter/release-drafter@v5.11.0
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml
deleted file mode 100644
index a6b0605..0000000
--- a/.github/workflows/maven-build.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-# This workflow will build a Java project with Maven
-# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
-
-name: Java CI with Maven
-
-on:
- push:
- branches: '*'
- pull_request:
- branches: '*'
-
-jobs:
- build:
- runs-on: ubuntu-latest
- strategy:
- matrix:
- java: [ 11, 13 ]
- steps:
-# - uses: kamiazya/setup-graphviz@v1
- - uses: actions/checkout@v2
- - name: setup-java-${{ matrix.java }}
- uses: actions/setup-java@v1
- with:
- java-version: ${{ matrix.java }}
- - name: install
- run: mvn -B install
diff --git a/README.md b/README.md
index b36482a..294e355 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,10 @@ font size and/or overflow into additional rectangles.
```
+## Requirements
+
+* JDK 11+
+
## Usage
### Word Wrap
diff --git a/pom.xml b/pom.xml
index 08e9fcb..158fc23 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
DEV-SNAPSHOT
- 2.16
+ 2.17
2.6.0
5.4.0
1.18.12