Compare commits

..

21 commits

Author SHA1 Message Date
dependabot[bot]
b2f39378e8
Bump junit-jupiter from 5.7.1 to 5.7.2 (#23)
Bumps [junit-jupiter](https://github.com/junit-team/junit5) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.7.1...r5.7.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-17 08:50:48 +01:00
dependabot[bot]
4610003595
Bump tiles-maven-plugin from 2.20 to 2.21 (#22)
Bumps [tiles-maven-plugin](https://github.com/repaint-io/maven-tiles) from 2.20 to 2.21.
- [Release notes](https://github.com/repaint-io/maven-tiles/releases)
- [Changelog](https://github.com/repaint-io/maven-tiles/blob/master/CHANGELOG.adoc)
- [Commits](https://github.com/repaint-io/maven-tiles/compare/tiles-maven-plugin-2.20...tiles-maven-plugin-2.21)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-06 10:31:50 +01:00
dependabot-preview[bot]
86c3cdac75
Upgrade to GitHub-native Dependabot (#21)
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-04-30 10:27:38 +01:00
dependabot-preview[bot]
d2df552fa2
Bump lombok from 1.18.18 to 1.18.20 (#20) 2021-04-02 06:20:47 +00:00
dependabot-preview[bot]
842296af3e
Bump tiles-maven-plugin from 2.19 to 2.20 (#19) 2021-03-29 06:49:55 +00:00
dependabot-preview[bot]
40c2d99c47
Bump junit-jupiter from 5.7.0 to 5.7.1 (#18) 2021-02-05 06:23:39 +00:00
dependabot-preview[bot]
724b724272
Bump lombok from 1.18.16 to 1.18.18 (#17) 2021-01-29 06:24:36 +00:00
dependabot-preview[bot]
e11a6a1416
Bump assertj-core from 3.18.1 to 3.19.0 (#16) 2021-01-25 06:23:19 +00:00
dependabot-preview[bot]
72309329c0
Bump tiles-maven-plugin from 2.18 to 2.19 (#15) 2020-12-10 06:31:08 +00:00
dependabot-preview[bot]
07ef236658
Bump assertj-core from 3.18.0 to 3.18.1 (#14) 2020-11-11 06:45:58 +00:00
dependabot-preview[bot]
a5ce8b546b
Bump assertj-core from 3.17.2 to 3.18.0 (#13) 2020-10-26 06:45:53 +00:00
dependabot-preview[bot]
d5dfccab17
Bump lombok from 1.18.14 to 1.18.16 (#12)
Bumps [lombok](https://github.com/rzwitserloot/lombok) from 1.18.14 to 1.18.16.
- [Release notes](https://github.com/rzwitserloot/lombok/releases)
- [Changelog](https://github.com/rzwitserloot/lombok/blob/master/doc/changelog.markdown)
- [Commits](https://github.com/rzwitserloot/lombok/compare/v1.18.14...v1.18.16)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-16 09:25:55 +01:00
dependabot-preview[bot]
e827b42df3
Bump lombok from 1.18.12 to 1.18.14 (#11)
Bumps [lombok](https://github.com/rzwitserloot/lombok) from 1.18.12 to 1.18.14.
- [Release notes](https://github.com/rzwitserloot/lombok/releases)
- [Changelog](https://github.com/rzwitserloot/lombok/blob/master/doc/changelog.markdown)
- [Commits](https://github.com/rzwitserloot/lombok/compare/v1.18.12...v1.18.14)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-09 08:20:57 +01:00
9cece23736
Merge pull request #10 from kemitix/dependabot/maven/io.repaint.maven-tiles-maven-plugin-2.18
Bump tiles-maven-plugin from 2.17 to 2.18
2020-10-05 11:32:27 +01:00
dependabot-preview[bot]
8c3c5f22c1
Bump tiles-maven-plugin from 2.17 to 2.18
Bumps [tiles-maven-plugin](https://github.com/repaint-io/maven-tiles) from 2.17 to 2.18.
- [Release notes](https://github.com/repaint-io/maven-tiles/releases)
- [Changelog](https://github.com/repaint-io/maven-tiles/blob/master/CHANGELOG.adoc)
- [Commits](https://github.com/repaint-io/maven-tiles/compare/tiles-maven-plugin-2.17...tiles-maven-plugin-2.18)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-05 06:47:02 +00:00
dependabot-preview[bot]
25ea1c6554 Bump junit-jupiter from 5.6.2 to 5.7.0
Bumps [junit-jupiter](https://github.com/junit-team/junit5) from 5.6.2 to 5.7.0.
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.6.2...r5.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-14 06:54:29 +00:00
dependabot-preview[bot]
e8317aaa9e Bump assertj-core from 3.17.1 to 3.17.2
Bumps [assertj-core](https://github.com/joel-costigliola/assertj-core) from 3.17.1 to 3.17.2.
- [Release notes](https://github.com/joel-costigliola/assertj-core/releases)
- [Commits](https://github.com/joel-costigliola/assertj-core/compare/assertj-core-3.17.1...assertj-core-3.17.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-07 06:56:00 +00:00
dependabot-preview[bot]
ee5f8ba78c Bump assertj-core from 3.17.0 to 3.17.1
Bumps [assertj-core](https://github.com/joel-costigliola/assertj-core) from 3.17.0 to 3.17.1.
- [Release notes](https://github.com/joel-costigliola/assertj-core/releases)
- [Commits](https://github.com/joel-costigliola/assertj-core/compare/assertj-core-3.17.0...assertj-core-3.17.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-31 06:54:29 +00:00
dependabot-preview[bot]
d3561c9b21 Bump assertj-core from 3.16.1 to 3.17.0
Bumps [assertj-core](https://github.com/joel-costigliola/assertj-core) from 3.16.1 to 3.17.0.
- [Release notes](https://github.com/joel-costigliola/assertj-core/releases)
- [Commits](https://github.com/joel-costigliola/assertj-core/compare/assertj-core-3.16.1...assertj-core-3.17.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-24 06:55:53 +00:00
dependabot-preview[bot]
c3f2b6c619 Bump assertj-core from 3.16.0 to 3.16.1
Bumps [assertj-core](https://github.com/joel-costigliola/assertj-core) from 3.16.0 to 3.16.1.
- [Release notes](https://github.com/joel-costigliola/assertj-core/releases)
- [Commits](https://github.com/joel-costigliola/assertj-core/compare/assertj-core-3.16.0...assertj-core-3.16.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-11 09:15:15 +00:00
272fe20e4c
Update github actions (#3)
* Update github actions

* Bump tiles-maven-plugin to 2.17 for jdk 14 compatibility

* Require JDK 11+
2020-07-11 10:11:52 +01:00
11 changed files with 110 additions and 65 deletions

7
.github/dependabot.yml vendored Normal file
View file

@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: maven
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10

34
.github/release-drafter.yml vendored Normal file
View file

@ -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

17
.github/stale.yaml vendored Normal file
View file

@ -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

23
.github/workflows/build-maven.yml vendored Normal file
View file

@ -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

View file

@ -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

14
.github/workflows/draft-release.yml vendored Normal file
View file

@ -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 }}

View file

@ -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

View file

@ -14,6 +14,10 @@ font size and/or overflow into additional rectangles.
</dependency>
```
## Requirements
* JDK 11+
## Usage
### Word Wrap

View file

@ -14,13 +14,13 @@
<version>DEV-SNAPSHOT</version>
<properties>
<tiles-maven-plugin.version>2.16</tiles-maven-plugin.version>
<tiles-maven-plugin.version>2.21</tiles-maven-plugin.version>
<kemitix-maven-tiles.version>2.6.0</kemitix-maven-tiles.version>
<kemitix-checkstyle.version>5.4.0</kemitix-checkstyle.version>
<lombok.version>1.18.12</lombok.version>
<lombok.version>1.18.20</lombok.version>
<junit.version>5.6.2</junit.version>
<assertj.version>3.16.0</assertj.version>
<junit.version>5.7.2</junit.version>
<assertj.version>3.19.0</assertj.version>
<mockito.version>3.3.3</mockito.version>
<jqwik.version>1.2.7</jqwik.version>
</properties>

View file

@ -1,16 +0,0 @@
package net.kemitix.text.fit;
import lombok.Builder;
import lombok.With;
import java.awt.*;
@With
@Builder
public class WordWrapRequest {
String text;
Font font;
Graphics2D graphics2D;
int width;
}

View file

@ -1,7 +1,6 @@
package net.kemitix.text.fit;
import java.awt.*;
import java.awt.geom.Rectangle2D;
import java.util.List;
public interface WordWrapper {
@ -11,16 +10,4 @@ public interface WordWrapper {
Graphics2D graphics2D,
int width
);
default WordWrapRequest request(
String text,
Font font,
Graphics2D graphics2D
) {
return WordWrapRequest.builder()
.text(text)
.font(font)
.graphics2D(graphics2D)
.build();
}
}