Skip to content

Commit

Permalink
Forward compatibility with Guice 7
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored and nfalco79 committed Jan 23, 2024
1 parent ed8ae04 commit 93256da
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 21 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
---
version: 2
updates:
- package-ecosystem: "maven"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
23 changes: 23 additions & 0 deletions .github/workflows/jenkins-security-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Jenkins Security Scan
# For more information, see: https://www.jenkins.io/doc/developer/security/scan/
---
name: Jenkins Security Scan
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:

permissions:
security-events: write
contents: read
actions: read

jobs:
security-scan:
uses: jenkins-infra/jenkins-security-scan/.github/workflows/jenkins-security-scan.yaml@v2
with:
java-cache: 'maven'
java-version: 11
2 changes: 1 addition & 1 deletion .mvn/extensions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<extension>
<groupId>io.jenkins.tools.incrementals</groupId>
<artifactId>git-changelist-maven-extension</artifactId>
<version>1.4</version>
<version>1.7</version>
</extension>
</extensions>
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

5 changes: 4 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env groovy

// see https://github.com/jenkins-infra/pipeline-library
buildPlugin(jdkVersions: [11])
buildPlugin(useContainerAgent: true, configurations: [
[platform: 'linux', jdk: 21],
[platform: 'windows', jdk: 17],
])
12 changes: 6 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.51</version>
<version>4.77</version>
<relativePath />
</parent>

Expand Down Expand Up @@ -46,13 +46,13 @@
<revision>3.1.4</revision>
<changelist>-SNAPSHOT</changelist>
<hpi.compatibleSinceVersion>3.0.0</hpi.compatibleSinceVersion>
<jenkins.version>2.346.3</jenkins.version>
<jenkins.version>2.414.3</jenkins.version>
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>

<!-- dependencies versions -->
<assertj.version>3.15.0</assertj.version>
<dtkit-api.version>3.0.2</dtkit-api.version>
<xmlunit.version>2.7.0</xmlunit.version>
<xmlunit.version>2.9.1</xmlunit.version>
</properties>

<repositories>
Expand All @@ -73,8 +73,8 @@
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.346.x</artifactId>
<version>1763.v092b_8980a_f5e</version>
<artifactId>bom-2.414.x</artifactId>
<version>2718.v7e8a_d43b_3f0b_</version>
<scope>import</scope>
<type>pom</type>
</dependency>
Expand Down Expand Up @@ -176,7 +176,7 @@
<plugins>
<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.1.1</version>
<version>3.3.1</version>
<configuration>
<configLocation>${basedir}/checkstyle.xml</configLocation>
<sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import java.io.Serializable;
import java.util.UUID;

import javax.inject.Inject;
import jakarta.inject.Inject;

import org.apache.commons.io.FileUtils;
import org.jenkinsci.lib.dtkit.model.InputMetric;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import java.io.File;
import java.io.IOException;

import javax.inject.Inject;
import jakarta.inject.Inject;

import org.apache.commons.io.FileUtils;
import org.jenkinsci.lib.dtkit.util.validator.ValidationError;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import java.io.IOException;
import java.io.Serializable;

import javax.inject.Inject;
import jakarta.inject.Inject;

import org.jenkinsci.lib.dtkit.model.InputMetric;
import org.jenkinsci.lib.dtkit.util.validator.ValidationError;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
package org.jenkinsci.plugins.xunit;

import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.hamcrest.MatcherAssert.assertThat;

import java.io.IOException;
import java.util.HashSet;
Expand Down

0 comments on commit 93256da

Please sign in to comment.