Fonts: fixed gradle build error and javadoc warnings

This commit is contained in:
Karl Tauber
2022-11-21 12:55:55 +01:00
parent d491847754
commit adf7753617
6 changed files with 18 additions and 6 deletions

View File

@@ -38,6 +38,10 @@ dependencies {
testRuntimeOnly( "org.junit.jupiter:junit-jupiter-engine" ) testRuntimeOnly( "org.junit.jupiter:junit-jupiter-engine" )
} }
flatlafModuleInfo {
dependsOn( ":flatlaf-core:jar" )
}
java { java {
withSourcesJar() withSourcesJar()
withJavadocJar() withJavadocJar()

View File

@@ -146,8 +146,8 @@ public class FlatInterFont
* This is the preferred method (when using FlatLaf) to avoid unnecessary loading of maybe unused fonts. * This is the preferred method (when using FlatLaf) to avoid unnecessary loading of maybe unused fonts.
* <p> * <p>
* <strong>Note</strong>: When using '{@code new Font(...)}', you need to first invoke * <strong>Note</strong>: When using '{@code new Font(...)}', you need to first invoke
* {@link FontUtils#loadFontFamily(family)} to ensure that the font family is loaded. * {@link FontUtils#loadFontFamily(String)} to ensure that the font family is loaded.
* When FlatLaf loads a font, or when using {@link FontUtils#getCompositeFont(family, style, size)}, * When FlatLaf loads a font, or when using {@link FontUtils#getCompositeFont(String, int, int)},
* this is done automatically. * this is done automatically.
*/ */
public static void installLazy() { public static void installLazy() {

View File

@@ -38,6 +38,10 @@ dependencies {
testRuntimeOnly( "org.junit.jupiter:junit-jupiter-engine" ) testRuntimeOnly( "org.junit.jupiter:junit-jupiter-engine" )
} }
flatlafModuleInfo {
dependsOn( ":flatlaf-core:jar" )
}
java { java {
withSourcesJar() withSourcesJar()
withJavadocJar() withJavadocJar()

View File

@@ -101,8 +101,8 @@ public class FlatJetBrainsMonoFont
* This is the preferred method (when using FlatLaf) to avoid unnecessary loading of maybe unused fonts. * This is the preferred method (when using FlatLaf) to avoid unnecessary loading of maybe unused fonts.
* <p> * <p>
* <strong>Note</strong>: When using '{@code new Font(...)}', you need to first invoke * <strong>Note</strong>: When using '{@code new Font(...)}', you need to first invoke
* {@link FontUtils#loadFontFamily(family)} to ensure that the font family is loaded. * {@link FontUtils#loadFontFamily(String)} to ensure that the font family is loaded.
* When FlatLaf loads a font, or when using {@link FontUtils#getCompositeFont(family, style, size)}, * When FlatLaf loads a font, or when using {@link FontUtils#getCompositeFont(String, int, int)},
* this is done automatically. * this is done automatically.
*/ */
public static void installLazy() { public static void installLazy() {

View File

@@ -38,6 +38,10 @@ dependencies {
testRuntimeOnly( "org.junit.jupiter:junit-jupiter-engine" ) testRuntimeOnly( "org.junit.jupiter:junit-jupiter-engine" )
} }
flatlafModuleInfo {
dependsOn( ":flatlaf-core:jar" )
}
java { java {
withSourcesJar() withSourcesJar()
withJavadocJar() withJavadocJar()

View File

@@ -143,8 +143,8 @@ public class FlatRobotoFont
* This is the preferred method (when using FlatLaf) to avoid unnecessary loading of maybe unused fonts. * This is the preferred method (when using FlatLaf) to avoid unnecessary loading of maybe unused fonts.
* <p> * <p>
* <strong>Note</strong>: When using '{@code new Font(...)}', you need to first invoke * <strong>Note</strong>: When using '{@code new Font(...)}', you need to first invoke
* {@link FontUtils#loadFontFamily(family)} to ensure that the font family is loaded. * {@link FontUtils#loadFontFamily(String)} to ensure that the font family is loaded.
* When FlatLaf loads a font, or when using {@link FontUtils#getCompositeFont(family, style, size)}, * When FlatLaf loads a font, or when using {@link FontUtils#getCompositeFont(String, int, int)},
* this is done automatically. * this is done automatically.
*/ */
public static void installLazy() { public static void installLazy() {