Skip to content

Commit

Permalink
Fonts: fixed gradle build error and javadoc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
DevCharly committed Nov 21, 2022
1 parent d491847 commit adf7753
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
4 changes: 4 additions & 0 deletions flatlaf-fonts/flatlaf-fonts-inter/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ dependencies {
testRuntimeOnly( "org.junit.jupiter:junit-jupiter-engine" )
}

flatlafModuleInfo {
dependsOn( ":flatlaf-core:jar" )
}

java {
withSourcesJar()
withJavadocJar()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ private FlatInterFont() {}
* This is the preferred method (when using FlatLaf) to avoid unnecessary loading of maybe unused fonts.
* <p>
* <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.
* When FlatLaf loads a font, or when using {@link FontUtils#getCompositeFont(family, style, size)},
* {@link FontUtils#loadFontFamily(String)} to ensure that the font family is loaded.
* When FlatLaf loads a font, or when using {@link FontUtils#getCompositeFont(String, int, int)},
* this is done automatically.
*/
public static void installLazy() {
Expand Down
4 changes: 4 additions & 0 deletions flatlaf-fonts/flatlaf-fonts-jetbrains-mono/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ dependencies {
testRuntimeOnly( "org.junit.jupiter:junit-jupiter-engine" )
}

flatlafModuleInfo {
dependsOn( ":flatlaf-core:jar" )
}

java {
withSourcesJar()
withJavadocJar()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ private FlatJetBrainsMonoFont() {}
* This is the preferred method (when using FlatLaf) to avoid unnecessary loading of maybe unused fonts.
* <p>
* <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.
* When FlatLaf loads a font, or when using {@link FontUtils#getCompositeFont(family, style, size)},
* {@link FontUtils#loadFontFamily(String)} to ensure that the font family is loaded.
* When FlatLaf loads a font, or when using {@link FontUtils#getCompositeFont(String, int, int)},
* this is done automatically.
*/
public static void installLazy() {
Expand Down
4 changes: 4 additions & 0 deletions flatlaf-fonts/flatlaf-fonts-roboto/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ dependencies {
testRuntimeOnly( "org.junit.jupiter:junit-jupiter-engine" )
}

flatlafModuleInfo {
dependsOn( ":flatlaf-core:jar" )
}

java {
withSourcesJar()
withJavadocJar()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ private FlatRobotoFont() {}
* This is the preferred method (when using FlatLaf) to avoid unnecessary loading of maybe unused fonts.
* <p>
* <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.
* When FlatLaf loads a font, or when using {@link FontUtils#getCompositeFont(family, style, size)},
* {@link FontUtils#loadFontFamily(String)} to ensure that the font family is loaded.
* When FlatLaf loads a font, or when using {@link FontUtils#getCompositeFont(String, int, int)},
* this is done automatically.
*/
public static void installLazy() {
Expand Down

0 comments on commit adf7753

Please sign in to comment.