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

Unable to upgrade jenkins plugin to jdk17

XMLWordPrintable

      <?xml version="1.0" encoding="UTF-8"?>
      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <parent>
      <groupId>org.jenkins-ci.plugins</groupId>
      <artifactId>plugin</artifactId>
      <version>4.56</version>
      <relativePath />
      </parent>
      <groupId>io.jenkins.plugins</groupId>
      <artifactId>oracle-cloud-infrastructure-devops</artifactId>
      <version>1.0.2-SNAPSHOT</version>
      <packaging>hpi</packaging>
      <properties>
      <!-- Baseline Jenkins version you use to build the plugin. Users must have this version or newer to run. -->
      <jenkins.version>2.361.4</jenkins.version>
      <!{}java.level>17</java.level{}>
      <enforcer.skip>true</enforcer.skip>
      <oci-java-sdk.version>2.51.0</oci-java-sdk.version>

      <!-- Other properties you may want to use:
      ~ jenkins-test-harness.version: Jenkins Test Harness version you use to test the plugin. For Jenkins version >= 1.580.1 use JTH 2.0 or higher.
      ~ hpi-plugin.version: The HPI Maven Plugin version used by the plugin..
      ~ stapler-plugin.version: The Stapler Maven plugin version required by the plugin.
      -->
      </properties>
      <name>Oracle Cloud Infrastructure DevOps Plugin</name>
      <!-- The default licence for Jenkins OSS Plugins is MIT. Substitute for the applicable one if needed. -->
      <licenses>
      <license>
      <name>The Universal Permissive License (UPL), Version 1.0</name>
      <url>https://oss.oracle.com/licenses/upl</url>
      </license>
      </licenses>
      <dependencies>
      <dependency>
      <groupId>org.jenkins-ci.plugins</groupId>
      <artifactId>credentials</artifactId>
      <version>2.6.1.1</version>
      </dependency>
      <dependency>
      <groupId>org.jenkins-ci.plugins</groupId>
      <artifactId>oracle-cloud-infrastructure-compute</artifactId>
      <version>1.0.15</version>
      <exclusions>
      <exclusion>
      <groupId>org.glassfish.jersey.core</groupId>
      <artifactId>jersey-common</artifactId>
      </exclusion>
      <exclusion>
      <groupId>org.glassfish.jersey.core</groupId>
      <artifactId>jersey-client</artifactId>
      </exclusion>
      <exclusion>
      <groupId>com.google.guava</groupId>
      <artifactId>guava</artifactId>
      </exclusion>
      </exclusions>
      </dependency>
      <dependency>
      <groupId>org.glassfish.jersey.core</groupId>
      <artifactId>jersey-common</artifactId>
      <version>2.34</version>
      </dependency>
      <dependency>
      <groupId>org.glassfish.jersey.core</groupId>
      <artifactId>jersey-client</artifactId>
      <version>2.34</version>
      </dependency>
      <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava</artifactId>
      <version>30.0-jre</version>
      </dependency>
      <dependency>
      <groupId>com.oracle.oci.sdk</groupId>
      <artifactId>oci-java-sdk-devops</artifactId>
      <version>${oci-java-sdk.version}</version>
      </dependency>
      <dependency>
      <groupId>com.oracle.oci.sdk</groupId>
      <artifactId>oci-java-sdk-identity</artifactId>
      <version>${oci-java-sdk.version}</version>
      </dependency>
      <dependency>
      <groupId>com.oracle.oci.sdk</groupId>
      <artifactId>oci-java-sdk-genericartifactscontent</artifactId>
      <version>${oci-java-sdk.version}</version>
      </dependency>
      <dependency>
      <groupId>com.oracle.oci.sdk</groupId>
      <artifactId>oci-java-sdk-core</artifactId>
      <version>${oci-java-sdk.version}</version>
      </dependency>
      <dependency>
      <groupId>org.jenkins-ci.plugins</groupId>
      <artifactId>bouncycastle-api</artifactId>
      <version>2.27</version>
      <scope>runtime</scope>
      </dependency>
      <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
      <dependency>
      <groupId>org.jenkins-ci</groupId>
      <artifactId>trilead-ssh2</artifactId>
      <version>build-217-jenkins-27</version>
      </dependency>
      <!-- https://mvnrepository.com/artifact/org.mockito/mockito-core -->
      <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <version>4.6.1</version>
      <scope>test</scope>
      </dependency>
      <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
      <version>2.13.3</version>
      </dependency>
      <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter</artifactId>
      <version>5.8.2</version>
      <scope>test</scope>
      </dependency>
      <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <version>1.18.24</version>
      </dependency>
      <dependency>
      <groupId>io.github.resilience4j</groupId>
      <artifactId>resilience4j-all</artifactId>
      <version>1.7.0</version>
      </dependency>
      <dependency>
      <groupId>com.oracle.oci.sdk</groupId>
      <artifactId>oci-java-sdk-artifacts</artifactId>
      <version>${oci-java-sdk.version}</version>
      <scope>test</scope>
      </dependency>
      <dependency>
      <groupId>com.oracle.oci.sdk</groupId>
      <artifactId>oci-java-sdk-logging</artifactId>
      <version>${oci-java-sdk.version}</version>
      <scope>test</scope>
      </dependency>
      <dependency>
      <groupId>com.oracle.oci.sdk</groupId>
      <artifactId>oci-java-sdk-ons</artifactId>
      <version>${oci-java-sdk.version}</version>
      <scope>test</scope>
      </dependency>
      <dependency>
      <groupId>com.oracle.oci.sdk</groupId>
      <artifactId>oci-java-sdk-common</artifactId>
      <version>2.51.0</version>
      </dependency>
      <dependency>
      <groupId>com.oracle.oci.internals.sdk</groupId>
      <artifactId>java-sdk-oci-internals-commons</artifactId>
      <version>1.1</version>
      </dependency>
      <dependency>
      <groupId>com.oracle.oci.internals.sdk</groupId>
      <artifactId>java-sdk-oci-internals-objectstorage-extensions</artifactId>
      <version>1.1</version>
      </dependency>
      </dependencies>
      <build>
      <resources>
      <resource>
      <directory>${project.basedir}</directory>
      <includes>
      <include>LICENSE.txt</include>
      <include>NOTICE.txt</include>
      <include>THIRD_PARTY_LICENSES.txt</include>
      </includes>
      </resource>
      <resource>
      <directory>${project.basedir}/src/main/resources</directory>
      </resource>
      </resources>
      <plugins>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-surefire-plugin</artifactId>
      <version>3.0.0-M3</version>
      <dependencies>
      <dependency>
      <groupId>org.apache.maven.surefire</groupId>
      <artifactId>surefire-junit47</artifactId>
      <version>3.0.0-M3</version>
      </dependency>
      </dependencies>
      <configuration>
      <excludes>
      <exclude>**/*IntegrationTest.java</exclude>
      </excludes>
      </configuration>
      </plugin>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
      <version>3.10.1</version>
      <configuration>
      <source>17</source>
      <target>17</target>
      </configuration>
      </plugin>
      </plugins>
      </build>
      <dependencyManagement>
      <dependencies>

      </dependencies>
      </dependencyManagement>

      <repositories>
      <repository>
      <id>repo.jenkins-ci.org</id>
      <url>https://repo.jenkins-ci.org/public/</url>
      </repository>
      </repositories>
      <pluginRepositories>
      <pluginRepository>
      <id>repo.jenkins-ci.org</id>
      <url>https://repo.jenkins-ci.org/public/</url>
      </pluginRepository>
      </pluginRepositories>
      </project>
       
      mvn build fails tests but succeeds with skip test flag. please check the pom and the respective dependencies if they are right.

            zorotard sharad
            zorotard sharad
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: