Skip to content

Commit

Permalink
Fix linter warnings (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNino authored Jul 10, 2024
1 parent 1551a67 commit c3957c3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ tasks.named<Jar>("jar") {
exclude("META-INF/*.RSA", "META-INF/*.SF", "META-INF/*.DSA")
}

tasks {
withType<JavaCompile> {
options.compilerArgs.add("-Xlint:unchecked")
}
}

tasks.matching { task -> task.name.contains("PluginMarker") }.configureEach {
enabled = false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void extractModuleInfo() {
continue;
}

//noinspection unchecked
@SuppressWarnings("unchecked")
ActualPublication actualPublication = (ActualPublication) publication;
buildAndPublishArtifactWithSignatures(moduleMetadata, actualPublication, getPublicationArtifactId(actualPublication), "module", "module", null, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public static void addArtifactoryResolutionRepositoryAction(MavenArtifactReposit
* Extract the resolver information from the build-info.properties file generated by the JFrog CLI or by the
* Jenkins Artifactory plugin.
*
* @param log - The logger.
* @return resolver handler.
*/
public static ArtifactoryClientConfiguration.ResolverHandler getResolverHandler(Log log) {
Expand Down

0 comments on commit c3957c3

Please sign in to comment.