HHH-17047 - Follow up tasks for Gradle 8.2 upgrade
- toolchains - lazy Task creation - documentation (documentation/ and release/) tasks
This commit is contained in:
parent
6808f451ba
commit
761ec95145
|
@ -53,8 +53,8 @@ public class JavaModulePlugin implements Plugin<Project> {
|
||||||
final SourceSet testSourceSet = sourceSets.getByName( SourceSet.TEST_SOURCE_SET_NAME );
|
final SourceSet testSourceSet = sourceSets.getByName( SourceSet.TEST_SOURCE_SET_NAME );
|
||||||
|
|
||||||
final JavaCompile mainCompileTask = (JavaCompile) project.getTasks().getByName( mainSourceSet.getCompileJavaTaskName() );
|
final JavaCompile mainCompileTask = (JavaCompile) project.getTasks().getByName( mainSourceSet.getCompileJavaTaskName() );
|
||||||
mainCompileTask.setSourceCompatibility( jdkVersionsConfig.getTestCompileVersion().toString() );
|
mainCompileTask.setSourceCompatibility( jdkVersionsConfig.getMainCompileVersion().toString() );
|
||||||
mainCompileTask.setTargetCompatibility( jdkVersionsConfig.getTestCompileVersion().toString() );
|
mainCompileTask.setTargetCompatibility( jdkVersionsConfig.getMainCompileVersion().toString() );
|
||||||
|
|
||||||
final JavaCompile testCompileTask = (JavaCompile) project.getTasks().getByName( testSourceSet.getCompileJavaTaskName() );
|
final JavaCompile testCompileTask = (JavaCompile) project.getTasks().getByName( testSourceSet.getCompileJavaTaskName() );
|
||||||
testCompileTask.setSourceCompatibility( jdkVersionsConfig.getTestCompileVersion().toString() );
|
testCompileTask.setSourceCompatibility( jdkVersionsConfig.getTestCompileVersion().toString() );
|
||||||
|
|
|
@ -17,6 +17,7 @@ plugins {
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
|
|
||||||
id 'org.hibernate.orm.build.jdks'
|
id 'org.hibernate.orm.build.jdks'
|
||||||
|
id 'org.hibernate.orm.build.java-module'
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: rootProject.file( 'gradle/module.gradle' )
|
apply from: rootProject.file( 'gradle/module.gradle' )
|
||||||
|
|
Loading…
Reference in New Issue