Gradle compile error

Hi All,

While compiling code in jenkins for kotlin, getting below error. We tried to add sourceCompatibility in build.gradle file aswell but still its giving error

#11 21.98 > Task :downloadGraphQLSchema SKIPPED
#11 21.99 > Task :generateMainApolloClasses SKIPPED
#11 21.99 > Task :generateTestApolloClasses SKIPPED
#11 21.99 > Task :moveGeneratedClientToAcceptanceTestFolderOld NO-SOURCE
#11 21.99 > Task :generateUtilApolloClasses SKIPPED
#11 21.99 > Task :moveGeneratedClientToAcceptanceTestFolder NO-SOURCE
#11 21.99 > Task :generateApolloClasses UP-TO-DATE
#11 28.08 > Task :compileKotlin FAILED
#11 28.08
#11 28.08 FAILURE: Build failed with an exception.
#11 28.08
#11 28.08 * What went wrong:
#11 28.08 Execution failed for task ‘:compileKotlin’.
#11 28.08 > Could not resolve all files for configuration ‘:compileClasspath’.
#11 28.08 > Could not resolve com.asurint:graphql-spring:1.38.0.
#11 28.08 Required by:
#11 28.08 project :
#11 28.08 > No matching variant of com.asurint:graphql-spring:1.38.0 was found. The consumer was configured to find an API of a library compatible with Java 8, preferably in the form of class files, and its dependencies declared externally, as well as attribute ‘org.jetbrains.kotlin.platform.type’ with value ‘jvm’ but:
#11 28.08 - Variant ‘apiElements’ capability com.asurint:graphql-spring:1.38.0 declares an API of a library, packaged as a jar, and its dependencies declared externally, as well as attribute ‘org.jetbrains.kotlin.platform.type’ with value ‘jvm’:
#11 28.08 - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
#11 28.08 - Variant ‘runtimeElements’ capability com.asurint:graphql-spring:1.38.0 declares a runtime of a library, packaged as a jar, and its dependencies declared externally, as well as attribute ‘org.jetbrains.kotlin.platform.type’ with value ‘jvm’:
#11 28.08 - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
#11 28.08
#11 28.08 * Try:
#11 28.08 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.