Skip to content

Commit 1e6bced

Browse files
Remove version from configuration-as-code dependency
This enables Bill of Materials for Jenkins plugins. See https://www.jenkins.io/doc/developer/plugin-development/dependency-management/#jenkins-plugin-bom
1 parent fd4f710 commit 1e6bced

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

pom.xml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@
44
<parent>
55
<groupId>org.jenkins-ci.plugins</groupId>
66
<artifactId>plugin</artifactId>
7-
<version>3.18</version>
7+
<version>4.64</version>
88
<relativePath />
99
</parent>
1010
<groupId>io.jenkins.plugins</groupId>
1111
<artifactId>configuration-as-code-groovy</artifactId>
1212
<version>1.2-SNAPSHOT</version>
1313
<packaging>hpi</packaging>
1414
<properties>
15-
<jenkins.version>2.60.3</jenkins.version>
16-
<java.level>8</java.level>
15+
<jenkins.version>2.414.3</jenkins.version>
1716
<useBeta>true</useBeta>
1817
<access-modifier-checker.skip>true</access-modifier-checker.skip>
1918
</properties>
@@ -54,11 +53,21 @@
5453
<url>https://repo.jenkins-ci.org/public/</url>
5554
</pluginRepository>
5655
</pluginRepositories>
56+
<dependencyManagement>
57+
<dependencies>
58+
<dependency>
59+
<groupId>io.jenkins.tools.bom</groupId>
60+
<artifactId>bom-2.414.x</artifactId>
61+
<version>2643.vfa_93ff299d20</version>
62+
<scope>import</scope>
63+
<type>pom</type>
64+
</dependency>
65+
</dependencies>
66+
</dependencyManagement>
5767
<dependencies>
5868
<dependency>
5969
<groupId>io.jenkins</groupId>
6070
<artifactId>configuration-as-code</artifactId>
61-
<version>1.0</version>
6271
</dependency>
6372
</dependencies>
6473
</project>

src/main/java/io/jenkins/plugins/cascgroovy/GroovyScriptCaller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public Boolean[] check(CNode config, ConfigurationContext context) throws Config
9999

100100
@Nonnull
101101
@Override
102-
public List<Configurator> getConfigurators(ConfigurationContext context) {
102+
public List<Configurator<Boolean[]>> getConfigurators(ConfigurationContext context) {
103103
return Collections.singletonList(context.lookup(GroovyScriptSource.class));
104104
}
105105

0 commit comments

Comments
 (0)