HHH-17047 - Follow up tasks for Gradle 8.2 upgrade

- toolchains
- lazy Task creation
- documentation (documentation/ and release/) tasks
This commit is contained in:
Steve Ebersole 2023-08-14 10:38:00 -05:00
parent 6808f451ba
commit 761ec95145
2 changed files with 3 additions and 2 deletions

View File

@ -53,8 +53,8 @@ public class JavaModulePlugin implements Plugin<Project> {
final SourceSet testSourceSet = sourceSets.getByName( SourceSet.TEST_SOURCE_SET_NAME );
final JavaCompile mainCompileTask = (JavaCompile) project.getTasks().getByName( mainSourceSet.getCompileJavaTaskName() );
mainCompileTask.setSourceCompatibility( jdkVersionsConfig.getTestCompileVersion().toString() );
mainCompileTask.setTargetCompatibility( jdkVersionsConfig.getTestCompileVersion().toString() );
mainCompileTask.setSourceCompatibility( jdkVersionsConfig.getMainCompileVersion().toString() );
mainCompileTask.setTargetCompatibility( jdkVersionsConfig.getMainCompileVersion().toString() );
final JavaCompile testCompileTask = (JavaCompile) project.getTasks().getByName( testSourceSet.getCompileJavaTaskName() );
testCompileTask.setSourceCompatibility( jdkVersionsConfig.getTestCompileVersion().toString() );

View File

@ -17,6 +17,7 @@ plugins {
id 'maven-publish'
id 'org.hibernate.orm.build.jdks'
id 'org.hibernate.orm.build.java-module'
}
apply from: rootProject.file( 'gradle/module.gradle' )