Skip to content

Commit

Permalink
Silence more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtlink committed Jul 10, 2024
1 parent bdc60d9 commit bb16ab2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@ class JavaConventionPlugin: Plugin<Project> {
// Use UTF-8 encoding by default
encoding = "UTF-8"
charset("UTF-8")
// Silence doclint warnings
// Reduce doclint warnings
addStringOption("Xmaxwarns", "1")
// Silence doclint lints
addStringOption("Xdoclint:none", "-quiet")
// Silence!
quiet()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ class MavenPublishConventionPlugin: Plugin<Project> {
// Configure publishing to GitHub Packages
maven {
name = GITHUB_PACKAGES_PUBLICATION_NAME
// NOTE: If repoOwner or repoName are not specified, this will fail. In that case we can't configure GitHub Packages
url = with(extension.repoOwner, extension.repoName) { owner, name -> uri("https://maven.pkg.github.com/$owner/$name") }.get()
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_ACTOR")
Expand Down

0 comments on commit bb16ab2

Please sign in to comment.