Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The jenkins pipeline does not work with java 11 #109

Open
HelainSchoonjans opened this issue Jun 7, 2023 · 0 comments
Open

The jenkins pipeline does not work with java 11 #109

HelainSchoonjans opened this issue Jun 7, 2023 · 0 comments
Milestone

Comments

@HelainSchoonjans
Copy link

`// based on https://github.com/nextlayer-ops/jenkins-pipeline-shared-library-example
plugins {
id("com.mkobit.jenkins.pipelines.shared-library") version "0.7.0"
id("codenarc")
id 'com.dorongold.task-tree' version '1.3'
}

apply plugin: 'groovy'

repositories {
maven { url 'http://repo.jenkins-ci.org/releases/' }
mavenCentral()
jcenter()
}

task wrapper(type: Wrapper) {
gradleVersion = '4.10'
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
}`

This is my build.gradle. I'm building the project with Java 11, but I always get the following error:

An exception occurred applying plugin request [id: 'com.mkobit.jenkins.pipelines.shared-library', version: '0.7.0']

Failed to apply plugin [id 'com.mkobit.jenkins.pipelines.shared-library']
Could not create task ':generateLocalLibraryRetriever'.
> Could not initialize class com.mkobit.jenkins.pipelines.CodegenTypesKt

I tried adding the following dependency, but with no success:
dependencies { implementation 'javax.annotation:javax.annotation-api:1.3.2' }

@mkobit mkobit added this to the 1.0.0 milestone Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants