Skip to content

Commit

Permalink
Merge pull request #7 from stapler/updates
Browse files Browse the repository at this point in the history
Update to RELEASE121
  • Loading branch information
jglick authored Oct 13, 2020
2 parents 8765695 + 66dd766 commit 714a93f
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 106 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ pipeline {
}
agent {
docker {
image 'maven:3.5.0-jdk-8'
image 'maven:3.6.3-jdk-11'
label 'docker'
}
}
stages {
stage('main') {
steps {
sh 'mvn -B -s settings-azure.xml -Dmaven.test.failure.ignore clean verify'
sh 'mvn -B -ntp -Dmaven.test.failure.ignore clean verify'
}
post {
success {
Expand Down
63 changes: 62 additions & 1 deletion application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,67 @@
<artifactId>java</artifactId>
<version>${netbeans.version}</version>
<type>pom</type>
<exclusions>
<!-- Only a few of these are inherently necessary. -->
<!-- The rest are due to the fact that java.kit depends on some, and more depend on java.kit, and more on them, etc. -->
<!-- Perhaps it would be easier to give up on the whole cluster system and just include enough modules to run interactive tests. -->
<exclusion>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-debugger-jpda-kit</artifactId>
</exclusion>
<exclusion>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-debugger-jpda-jsui</artifactId>
</exclusion>
<exclusion>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-debugger-jpda-truffle</artifactId>
</exclusion>
<exclusion>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-debugger-jpda-trufflenode</artifactId>
</exclusion>
<exclusion>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-debugger-jpda-visual</artifactId>
</exclusion>
<exclusion>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-form-kit</artifactId>
</exclusion>
<exclusion>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-gradle-spring</artifactId>
</exclusion>
<exclusion>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-java-kit</artifactId>
</exclusion>
<exclusion>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-java-source-nbjavac</artifactId>
</exclusion>
<exclusion>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-j2ee-persistence-kit</artifactId>
</exclusion>
<exclusion>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-ko4j-debugging</artifactId>
</exclusion>
<exclusion>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-maven-spring</artifactId>
</exclusion>
<exclusion>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-nashorn-execution</artifactId>
</exclusion>
<exclusion>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-spring-beans</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.netbeans.cluster</groupId>
Expand Down Expand Up @@ -89,7 +150,7 @@
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<groupId>org.apache.netbeans.utilities</groupId>
<artifactId>nbm-maven-plugin</artifactId>
</plugin>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ public class ApplicationTest extends NbTestCase {
public static Test suite() {
return NbModuleSuite.createConfiguration(ApplicationTest.class).
gui(false).
/* TODO fails with two exceptions: one about --jdkhome; another about jcl.over.slf4j_1.7.29 vs. org.slf4j
failOnException(Level.INFO).
*/
enableClasspathModules(false). // #271423
clusters(".*").
/* TODO does not suffice to hide, e.g.: the modules [org.netbeans.modules.form.nb] use org.jdesktop.layout which is deprecated: Use javax.swing.GroupLayout instead. …
Expand Down
2 changes: 1 addition & 1 deletion jenkins-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<groupId>org.apache.netbeans.utilities</groupId>
<artifactId>nbm-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
Expand Down
32 changes: 5 additions & 27 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<groupId>org.apache.netbeans.utilities</groupId>
<artifactId>nbm-maven-plugin</artifactId>
<version>3.13</version>
<version>4.5</version>
<extensions>true</extensions>
<configuration>
<brandingToken>${brandingToken}</brandingToken>
Expand All @@ -42,10 +42,9 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<version>3.8.1</version>
<configuration>
<source>1.${java.level}</source>
<target>1.${java.level}</target>
<release>11</release>
</configuration>
</plugin>
<plugin>
Expand All @@ -56,26 +55,6 @@
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.16</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
<artifactId>java1${java.level}</artifactId>
<version>1.0</version>
</signature>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>groovy-maven-plugin</artifactId>
Expand Down Expand Up @@ -116,8 +95,7 @@
</modules>

<properties>
<netbeans.version>RELEASE82</netbeans.version>
<netbeans.version>RELEASE121</netbeans.version>
<brandingToken>nb</brandingToken>
<java.level>8</java.level>
</properties>
</project>
9 changes: 0 additions & 9 deletions settings-azure.xml

This file was deleted.

72 changes: 7 additions & 65 deletions stapler-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@
<artifactId>org-openide-util-lookup</artifactId>
<version>${netbeans.version}</version>
</dependency>
<dependency>
<groupId>org.netbeans.api</groupId>
<artifactId>org-netbeans-modules-java-project</artifactId>
<version>${netbeans.version}</version>
</dependency>
<dependency>
<groupId>org.netbeans.api</groupId>
<artifactId>org-netbeans-modules-java-source-base</artifactId>
Expand All @@ -146,12 +151,6 @@
<version>${netbeans.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-lib-nbjavac</artifactId>
<version>${netbeans.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-parsing-nb</artifactId>
Expand All @@ -173,15 +172,15 @@
<dependency>
<groupId>org.jenkins-ci.main</groupId>
<artifactId>jenkins-core</artifactId>
<version>1.466.2</version>
<version>2.249.2</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<groupId>org.apache.netbeans.utilities</groupId>
<artifactId>nbm-maven-plugin</artifactId>
<extensions>true</extensions>
</plugin>
Expand All @@ -192,63 +191,6 @@
<useDefaultManifestFile>true</useDefaultManifestFile>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>endorsed</id>
<phase>validate</phase>
<goals>
<goal>copy</goal>
</goals>
</execution>
</executions>
<configuration>
<outputDirectory>${endorsed.dir}</outputDirectory>
<silent>true</silent>
<artifactItems>
<artifactItem>
<groupId>org.netbeans.api</groupId>
<artifactId>org-netbeans-libs-javacapi</artifactId>
<version>${netbeans.version}</version>
</artifactItem>
<artifactItem>
<groupId>org.netbeans.external</groupId>
<artifactId>nb-javac-api</artifactId>
<version>${netbeans.version}</version>
</artifactItem>
<artifactItem>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-libs-javacimpl</artifactId>
<version>${netbeans.version}</version>
</artifactItem>
<artifactItem>
<groupId>org.netbeans.external</groupId>
<artifactId>nb-javac-impl</artifactId>
<version>${netbeans.version}</version>
</artifactItem>
</artifactItems>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArguments>
<endorseddirs>${endorsed.dir}</endorseddirs>
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.13</version>
<configuration>
<argLine>-Djava.endorsed.dirs=${endorsed.dir}</argLine>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@
import java.net.URL;
import org.acegisecurity.Authentication;
import org.junit.Test;
import org.kohsuke.stapler.StaplerProxy;
import org.netbeans.modules.java.hints.test.api.HintTest;
import org.openide.filesystems.FileUtil;

public class ACLImpersonateHintTest {

@Test public void warningIssued() throws Exception {
HintTest.create().classpath(cpify(ACL.class), cpify(Authentication.class))
HintTest.create().classpath(cpify(ACL.class), cpify(Authentication.class), cpify(StaplerProxy.class))
.input("package test;\n"
+ "import hudson.model.AbstractProject;\n"
+ "import hudson.security.ACL;\n"
Expand Down

0 comments on commit 714a93f

Please sign in to comment.