Fix "uses unchecked or unsafe operations"

Note: hibernate-orm/local-build-plugins/src/main/java/org/hibernate/orm/jakarta/JakartaPublishingPlugin.java uses unchecked or unsafe operations.
This commit is contained in:
Yanming Zhou 2024-06-13 11:04:08 +08:00
parent 2772a9d6fb
commit b42c7dbd25
1 changed files with 1 additions and 2 deletions

View File

@ -24,7 +24,6 @@ import org.gradle.api.component.SoftwareComponentFactory;
import org.gradle.api.model.ObjectFactory;
import org.gradle.api.tasks.TaskContainer;
import org.gradle.api.tasks.TaskProvider;
import org.gradle.api.tasks.testing.Test;
/**
* Models a publishable Jakartafied project
@ -209,7 +208,7 @@ public class JakartaPublishingPlugin implements Plugin<Project> {
}
}
else {
mainJarTask = (TaskProvider) tasks.named( jarTaskName );
mainJarTask = tasks.named( jarTaskName, JakartaJarTransformation.class );
}
variantConfig.getOutgoing().artifact(