Skip to content

Commit

Permalink
Reproduced problem with @Restricted(NoExternalUse.class) as in `loc…
Browse files Browse the repository at this point in the history
…alizer-maven-plugin`
  • Loading branch information
jglick committed Jul 30, 2021
1 parent 8649288 commit 9a69f26
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/it/localizer/invoker.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# release.skipTests normally set in jenkins-release profile since release:perform would do the tests
invoker.goals=-Dstyle.color=always -ntp -Pjenkins-release -Drelease.skipTests=false clean verify
32 changes: 32 additions & 0 deletions src/it/localizer/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?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>@project.version@</version>
<relativePath/>
</parent>
<groupId>org.jenkins-ci.plugins.its</groupId>
<artifactId>localizer</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>hpi</packaging>
<properties>
<jenkins.version>2.277.4</jenkins.version>
<java.level>8</java.level>
<maven-hpi-plugin.disabledTestInjection>true</maven-hpi-plugin.disabledTestInjection>
</properties>
<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>
9 changes: 9 additions & 0 deletions src/it/localizer/src/main/java/test/X.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package test;

public class X {

public static String label() {
return Messages.label();
}

}
2 changes: 2 additions & 0 deletions src/it/localizer/src/main/resources/index.jelly
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?jelly escape-by-default='true'?>
<div/>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
label=Whatever
13 changes: 13 additions & 0 deletions src/it/localizer/src/test/java/test/XTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package test;

import org.junit.Test;
import static org.junit.Assert.*;

public class XTest {

@Test
public void label() throws Exception {
assertEquals("Whatever", X.label());
}

}

0 comments on commit 9a69f26

Please sign in to comment.