Not able to apply plugin because cast exception

Hi,

I raised gradle version from 4.2.1 to 5.4.1 and now, crucial plugins are not applied but failing hard.

I configured this in the build.gradle:

apply plugin: “at.comm_unity.gradle.plugins.jpamodelgen”
apply plugin: ‘net.ltgt.apt-eclipse’.

this is what happenend:

Failed to apply plugin [class ‘net.ltgt.gradle.apt.AptPlugin’]
org.gradle.api.internal.tasks.DefaultTaskInputFilePropertyRegistration cannot be cast to org.gradle.api.tasks.TaskInputs

and

Could not create task ‘:commons:compileJpaModelgenJava’.
org.gradle.api.internal.tasks.DefaultTaskInputFilePropertyRegistration cannot be cast to org.gradle.api.tasks.TaskInputs.

If anyone could help me out…I know next to nothing regarding gradle.

thanks in advance