There is a task named compileThreePartNameJava. The sample above is trying to run that task but it’s failing within Hibernate’s plugin as it doesn’t like the task’s name. Here’s the output of running the script with --stacktrace:
./gradlew compileThreePartNameJava --stacktrace
FAILURE: Build failed with an exception.
* What went wrong:
Unexpected compilation task name : compileThreePartNameJava
* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Exception is:
java.lang.RuntimeException: Unexpected compilation task name : compileThreePartNameJava
at org.hibernate.orm.tooling.gradle.Helper.determineCompileNameParts(Helper.java:53)
at org.hibernate.orm.tooling.gradle.Helper.determineCompileSourceSetName(Helper.java:28)
at org.hibernate.orm.tooling.gradle.HibernateOrmPlugin.lambda$prepareEnhancement$1(HibernateOrmPlugin.java:67)
at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:406)
at org.hibernate.orm.tooling.gradle.HibernateOrmPlugin.lambda$prepareEnhancement$2(HibernateOrmPlugin.java:63)
…