Skip to content

Commit 9a69f26

Browse files
committed
Reproduced problem with @Restricted(NoExternalUse.class) as in localizer-maven-plugin
1 parent 8649288 commit 9a69f26

File tree

6 files changed

+59
-0
lines changed

6 files changed

+59
-0
lines changed

src/it/localizer/invoker.properties

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# release.skipTests normally set in jenkins-release profile since release:perform would do the tests
2+
invoker.goals=-Dstyle.color=always -ntp -Pjenkins-release -Drelease.skipTests=false clean verify

src/it/localizer/pom.xml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<parent>
6+
<groupId>org.jenkins-ci.plugins</groupId>
7+
<artifactId>plugin</artifactId>
8+
<version>@project.version@</version>
9+
<relativePath/>
10+
</parent>
11+
<groupId>org.jenkins-ci.plugins.its</groupId>
12+
<artifactId>localizer</artifactId>
13+
<version>1.0-SNAPSHOT</version>
14+
<packaging>hpi</packaging>
15+
<properties>
16+
<jenkins.version>2.277.4</jenkins.version>
17+
<java.level>8</java.level>
18+
<maven-hpi-plugin.disabledTestInjection>true</maven-hpi-plugin.disabledTestInjection>
19+
</properties>
20+
<repositories>
21+
<repository>
22+
<id>repo.jenkins-ci.org</id>
23+
<url>https://repo.jenkins-ci.org/public/</url>
24+
</repository>
25+
</repositories>
26+
<pluginRepositories>
27+
<pluginRepository>
28+
<id>repo.jenkins-ci.org</id>
29+
<url>https://repo.jenkins-ci.org/public/</url>
30+
</pluginRepository>
31+
</pluginRepositories>
32+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package test;
2+
3+
public class X {
4+
5+
public static String label() {
6+
return Messages.label();
7+
}
8+
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?jelly escape-by-default='true'?>
2+
<div/>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
label=Whatever
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package test;
2+
3+
import org.junit.Test;
4+
import static org.junit.Assert.*;
5+
6+
public class XTest {
7+
8+
@Test
9+
public void label() throws Exception {
10+
assertEquals("Whatever", X.label());
11+
}
12+
13+
}

0 commit comments

Comments
 (0)