Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-64259

Move Kotlin Std Lib to direct dependency of project

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • appcenter-plugin
    • None
    • 0.10.1

      JENKINS-64188 appears to have broken the plugin for some users.

      In v 0.10.0 upload breaks:

      It seems its missing a dependency.
      On jenkins LTS 2.249.3 with jre1.8.0_261 following error occurs:

      java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
      at okhttp3.HttpUrl$Companion.get(HttpUrl.kt)
      at okhttp3.HttpUrl.get(HttpUrl.kt)
      at io.jenkins.plugins.appcenter.api.AppCenterServiceFactory.createAppCenterService(AppCenterServiceFactory.java:48)
      at io.jenkins.plugins.appcenter.task.internal.CreateUploadResourceTask.createUploadResourceForApp(CreateUploadResourceTask.java:55)
      at io.jenkins.plugins.appcenter.task.internal.CreateUploadResourceTask.execute(CreateUploadResourceTask.java:40)

      This suggests that Kotlin is not on the classpath. Why exactly I don't know because all our tests pass locally and on the CI. Additionally I am able to upload when running mvn hpi:run.

      Acceptance Criteria:

      1. Promote the Kotlin dependencies to the main dependency block.
      2. Plugin works....

            mezpahlan Mez Pahlan
            mezpahlan Mez Pahlan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: