Skip to content

Commit

Permalink
Merge pull request #428 from jglick/localizer
Browse files Browse the repository at this point in the history
Bogus errors about `@Restricted(NoExternalUse.class)` as in `localizer-maven-plugin`
  • Loading branch information
jglick authored Jul 30, 2021
2 parents 8649288 + 02de227 commit f4d39c4
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<!-- To skip the wizard by default in hpi:run. It should not impact other goals. -->
<hudson.Main.development>true</hudson.Main.development>

<access-modifier-checker.version>1.23</access-modifier-checker.version>
<access-modifier-checker.version>1.24</access-modifier-checker.version>
<animal.sniffer.version>1.20</animal.sniffer.version>
<powermock.version>2.0.9</powermock.version>

Expand Down
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 f4d39c4

Please sign in to comment.