Hello, Getting this error on our CI/CD machine. `...
# gradle
e
Hello, Getting this error on our CI/CD machine.
Copy code
An exception occurred applying plugin request [id: 'org.jetbrains.kotlin.multiplatform', version: '1.9.22']
> Failed to apply plugin 'org.jetbrains.kotlin.multiplatform'.
   > Could not create an instance of type org.jetbrains.kotlin.gradle.plugin.internal.CustomPropertiesFileValueSource$Parameters.
      > org/jetbrains/kotlin/gradle/plugin/internal/CustomPropertiesFileValueSource
Copy code
Could not create provider for value source CustomPropertiesFileValueSource.
Copy code
Caused by: org.gradle.api.GradleException: Could not create provider for value source CustomPropertiesFileValueSource.
Copy code
Caused by: org.gradle.api.reflect.ObjectInstantiationException: Could not create an instance of type org.jetbrains.kotlin.gradle.plugin.internal.CustomPropertiesFileValueSource$Parameters.
Copy code
Caused by: java.lang.NoClassDefFoundError: org/jetbrains/kotlin/gradle/plugin/internal/CustomPropertiesFileValueSource
Environment: Gradle 8.2 / Kotlin 1.9.22 / JDK openjdk 20.0.1 2023-04-18 Any help is appreciated!!
a
Can you share more details of your setup (buildscripts) or share a reproducer project?
e
It is working on my machine, the CI/CD is on premise managed by IT. the same code base used to work and suddenly stopped working on CI/CD. I was now thinking of clearning the ~/.gradle/caches. Do you this would help?
t
could you share Gradle build scan with error?
e
@tapchicoma which command exactly you want?
t
add
--scan
option to command line on CI
c
+ you'll have to accept the ToS
true story 2
you can take inspiration from this (it goes into settings.gradle.kts)
(if you want to use it as-is, the plugin ID is
dev.opensavvy.conventions.settings.enterprise
)
e
okay deal
c
you just have to create the environment variable instead of setting up everything
e
the weird part is the same code base used to work the day before, I am afraid of some interaction with other builds that could be running on that machine and that caused some inconsistency in the caches As I shared earlier it’s on premise machine with Jenkins that builds multiple projects
161 Views