Skip to content

Commit

Permalink
Modernize plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesbusy committed Nov 6, 2022
1 parent 335a656 commit 530f9e6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 63 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: maven
directory: /
schedule:
interval: weekly
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
1 change: 1 addition & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_extends: .github
75 changes: 12 additions & 63 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.40</version>
<version>4.49</version>
<relativePath />
</parent>

Expand All @@ -20,14 +20,7 @@
<changelist>-SNAPSHOT</changelist>
<gitHubRepo>jenkinsci/gitea-pat-kubernetes-credentials-plugin</gitHubRepo>
<!-- Baseline Jenkins version you use to build the plugin. Users must have this version or newer to run. -->
<jenkins.version>2.332.1</jenkins.version>
<gitea.version>1.4.1</gitea.version>
<java.level>8</java.level>
<jenkins-test-harness.version>1731.v383b_5d6c3393</jenkins-test-harness.version>
<workflow.version>711.vdfef37cda_816</workflow.version>
<assertj.version>3.22.0</assertj.version>
<kubernetes-credentials-provider.version>0.20</kubernetes-credentials-provider.version>
<enforcer.skip>true</enforcer.skip>
<jenkins.version>2.346.3</jenkins.version>
</properties>

<name>Gitea PAT Kubernetes Credentials</name>
Expand All @@ -51,8 +44,8 @@
</developers>

<scm>
<connection>scm:git:git://github.com/${gitHubRepo}.git</connection>
<developerConnection>scm:git:git@github.com:${gitHubRepo}.git</developerConnection>
<connection>scm:git:https://github.com/${gitHubRepo}.git</connection>
<developerConnection>scm:git:https@github.com:${gitHubRepo}.git</developerConnection>
<url>https://github.com/${gitHubRepo}</url>
<tag>${scmTag}</tag>
</scm>
Expand All @@ -72,64 +65,44 @@
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.squareup.okio</groupId>
<artifactId>okio</artifactId>
<version>1.15.0</version>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.346.x</artifactId>
<version>1654.vcb_69d035fa_20</version>
<scope>import</scope>
<type>pom</type>
</dependency>

<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>scm-api</artifactId>
<version>2.6.5</version>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.9</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plain-credentials</artifactId>
<version>1.8</version>
</dependency>


</dependencies>
</dependencyManagement>
<dependencies>

<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>gitea</artifactId>
<version>${gitea.version}</version>
<version>1.4.4</version>
<optional>true</optional>
</dependency>

<dependency>
<groupId>com.cloudbees.jenkins.plugins</groupId>
<artifactId>kubernetes-credentials-provider</artifactId>
<version>${kubernetes-credentials-provider.version}</version>
<version>1.206.v7ce2cf7b_0c8b</version>
<optional>true</optional>
</dependency>

<!-- Currently just here for interactive testing via hpi:run: -->
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-multibranch</artifactId>
<version>${workflow.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>token-macro</artifactId>
<version>2.15</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>${assertj.version}</version>
<version>3.23.1</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -139,28 +112,4 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>

0 comments on commit 530f9e6

Please sign in to comment.