Skip to content

Commit

Permalink
Upgrade to Java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
dheid committed Jul 15, 2024
1 parent 35556fc commit 1983d9c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '8'
java-version: '11'
distribution: 'temurin'
cache: maven
- uses: GabrielBB/xvfb-action@v1
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ https://www.gnu.org/licenses/lgpl-3.0.en.html

## :loudspeaker: Release Notes

### 3.0.0

This version needs at least Java 11 to run. Updated a

### 2.5.2

This version supports [Darklaf](https://github.com/weisJ/darklaf) now.
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.drjekyll</groupId>
<artifactId>fontchooser</artifactId>
<version>2.5.3-SNAPSHOT</version>
<version>3.0.0-SNAPSHOT</version>
<description>A Java Swing Component to choose a font according to the list of available font families, styles and sizes.</description>
<developers>
<developer>
Expand Down Expand Up @@ -55,8 +55,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.resourceEncoding>UTF-8</project.build.resourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
<dependencyManagement>
<dependencies>
Expand Down
11 changes: 10 additions & 1 deletion src/test/java/org/drjekyll/fontchooser/panes/StylePaneTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyNoInteractions;

import java.awt.Font;
import java.awt.*;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
Expand Down Expand Up @@ -35,6 +35,15 @@ public class StylePaneTest {
@Mock
private ListSelectionListener listSelectionListener;

@Mock
private Component objectLock;

@Mock
private Object aaHint;

@Mock
private Object lcdRenderingHint;

@InjectMocks
private StylePane stylePane;

Expand Down

0 comments on commit 1983d9c

Please sign in to comment.