Skip to content

Commit 3c8a128

Browse files
committed
Merge branch 'master' into sigstore
2 parents 5617348 + 0498a82 commit 3c8a128

File tree

41 files changed

+1246
-1700
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1246
-1700
lines changed

.asf.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,14 @@ github:
2424
- maven-plugins
2525
- maven-gpg-plugin
2626
- maven
27+
enabled_merge_buttons:
28+
squash: true
29+
merge: false
30+
rebase: true
31+
autolink_jira:
32+
- MGPG
33+
notifications:
34+
35+
36+
pullrequests: [email protected]
37+
jira_options: link label comment

.git-blame-ignore-revs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
20+
# Change maven code style
21+
955ea0ed5c2a7a3189159158e1fcb10e1ed2964e

pom.xml

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<?xml version='1.0' encoding='UTF-8'?>
2-
1+
<?xml version="1.0" encoding="UTF-8"?>
32
<!--
43
Licensed to the Apache Software Foundation (ASF) under one
54
or more contributor license agreements. See the NOTICE file
@@ -18,14 +17,13 @@ KIND, either express or implied. See the License for the
1817
specific language governing permissions and limitations
1918
under the License.
2019
-->
21-
2220
<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/xsd/maven-4.0.0.xsd">
2321
<modelVersion>4.0.0</modelVersion>
2422

2523
<parent>
26-
<artifactId>maven-plugins</artifactId>
2724
<groupId>org.apache.maven.plugins</groupId>
28-
<version>36</version>
25+
<artifactId>maven-plugins</artifactId>
26+
<version>39</version>
2927
<relativePath />
3028
</parent>
3129

@@ -43,8 +41,8 @@ under the License.
4341
<scm>
4442
<connection>scm:git:https://gitbox.apache.org/repos/asf/maven-gpg-plugin.git</connection>
4543
<developerConnection>scm:git:https://gitbox.apache.org/repos/asf/maven-gpg-plugin.git</developerConnection>
46-
<url>https://github.com/apache/maven-gpg-plugin/tree/${project.scm.tag}</url>
4744
<tag>HEAD</tag>
45+
<url>https://github.com/apache/maven-gpg-plugin/tree/${project.scm.tag}</url>
4846
</scm>
4947
<issueManagement>
5048
<system>jira</system>
@@ -151,7 +149,7 @@ under the License.
151149
<artifactId>plexus-sec-dispatcher</artifactId>
152150
<version>1.4</version>
153151
</dependency>
154-
152+
155153
<dependency>
156154
<groupId>junit</groupId>
157155
<artifactId>junit</artifactId>
@@ -175,8 +173,8 @@ under the License.
175173
<build>
176174
<testResources>
177175
<testResource>
178-
<directory>${basedir}/src/test/resources</directory>
179176
<filtering>true</filtering>
177+
<directory>${basedir}/src/test/resources</directory>
180178
<includes>
181179
<include>**/pom.xml</include>
182180
<include>**/settings.xml</include>
@@ -203,6 +201,11 @@ under the License.
203201
</excludes>
204202
</configuration>
205203
</plugin>
204+
<plugin>
205+
<groupId>org.apache.maven.plugins</groupId>
206+
<artifactId>maven-invoker-plugin</artifactId>
207+
<version>3.5.1</version>
208+
</plugin>
206209
</plugins>
207210
</pluginManagement>
208211
<plugins>
@@ -250,14 +253,6 @@ under the License.
250253
<plugin>
251254
<groupId>org.apache.maven.plugins</groupId>
252255
<artifactId>maven-failsafe-plugin</artifactId>
253-
<executions>
254-
<execution>
255-
<goals>
256-
<goal>integration-test</goal>
257-
<goal>verify</goal>
258-
</goals>
259-
</execution>
260-
</executions>
261256
<configuration>
262257
<environmentVariables>
263258
<JENKINS_MAVEN_AGENT_DISABLED>true</JENKINS_MAVEN_AGENT_DISABLED>
@@ -270,6 +265,14 @@ under the License.
270265
<settingsFile>/it/settings.xml</settingsFile>
271266
</systemPropertyVariables>
272267
</configuration>
268+
<executions>
269+
<execution>
270+
<goals>
271+
<goal>integration-test</goal>
272+
<goal>verify</goal>
273+
</goals>
274+
</execution>
275+
</executions>
273276
</plugin>
274277
<plugin>
275278
<groupId>org.apache.maven.plugins</groupId>
@@ -280,7 +283,8 @@ under the License.
280283
<pomInclude>*</pomInclude>
281284
</pomIncludes>
282285
<pomExcludes>
283-
<pomExclude>alternative-secret-keyring</pomExclude> <!-- not supported with gpg 2.1+ -->
286+
<!-- not supported with gpg 2.1+ -->
287+
<pomExclude>alternative-secret-keyring</pomExclude>
284288
</pomExcludes>
285289
<goals>
286290
<goal>clean</goal>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
def artifactDir = new File(localRepositoryPath, "org/apache/maven/its/gpg/nma/test/1.0")
20+
21+
def expectedFiles = [
22+
"test-1.0.pom",
23+
"test-1.0.pom.asc",
24+
"test-1.0-jdk15.jar",
25+
"test-1.0-jdk15.jar.asc"
26+
]
27+
28+
expectedFiles.each { expectedFile ->
29+
def file = new File(artifactDir, expectedFile)
30+
31+
println "Checking for existence of $file"
32+
33+
if (!file.isFile()) {
34+
throw new Exception("Missing file $file")
35+
}
36+
}
37+
Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
* Licensed to the Apache Software Foundation (ASF) under one
43
* or more contributor license agreements. See the NOTICE file
@@ -18,23 +17,22 @@
1817
* under the License.
1918
*/
2019

21-
import java.io.*;
22-
23-
File artifactDir = new File( basedir, "target/repo/org/apache/maven/its/gpg/sadnjp/test/1.0" );
20+
def artifactDir = new File(localRepositoryPath, "org/apache/maven/its/gpg/nma/test/1.0")
2421

25-
String[] expectedFiles = {
26-
"test-1.0-javadoc.jar",
27-
"test-1.0-javadoc.jar.asc",
28-
};
22+
def expectedFiles = [
23+
"test-1.0.pom",
24+
"test-1.0.pom.asc",
25+
"test-1.0-jdk15.jar",
26+
"test-1.0-jdk15.jar.asc"
27+
]
2928

30-
for ( String expectedFile : expectedFiles )
31-
{
32-
File file = new File( artifactDir, expectedFile );
29+
for (String expectedFile : expectedFiles) {
30+
def file = new File(artifactDir, expectedFile)
3331

34-
System.out.println( "Checking for existence of " + file );
32+
println "Checking for existence of $file"
3533

36-
if ( !file.isFile() )
37-
{
38-
throw new Exception( "Missing file " + file );
34+
if (!file.isFile()) {
35+
throw new Exception("Missing file $file")
3936
}
4037
}
38+

src/it/sign-and-deploy-file-without-pom/setup.bsh renamed to src/it/sign-and-deploy-file-with-extras/setup.groovy

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
* Licensed to the Apache Software Foundation (ASF) under one
43
* or more contributor license agreements. See the NOTICE file
@@ -18,7 +17,6 @@
1817
* under the License.
1918
*/
2019

21-
import java.io.*;
22-
import org.codehaus.plexus.util.*;
20+
import org.codehaus.plexus.util.FileUtils
2321

24-
FileUtils.deleteDirectory( new File( basedir, "target" ) );
22+
FileUtils.deleteDirectory(new File(basedir, "target"))

src/it/sign-and-deploy-file-with-extras/verify.bsh

Lines changed: 0 additions & 46 deletions
This file was deleted.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
def artifactDir = new File(basedir, "target/repo/org/apache/maven/its/gpg/sadfwe/test/1.0")
21+
22+
var expectedFiles = [
23+
"test-1.0.jar",
24+
"test-1.0.jar.asc",
25+
"test-1.0-sources.jar",
26+
"test-1.0-sources.jar.asc",
27+
"test-1.0-javadoc.jar",
28+
"test-1.0-javadoc.jar.asc",
29+
"test-1.0.pom",
30+
"test-1.0.pom.asc"
31+
]
32+
33+
for (String expectedFile : expectedFiles) {
34+
var file = new File(artifactDir, expectedFile)
35+
36+
println "Checking for existence of $file"
37+
38+
if (!file.isFile()) {
39+
throw new Exception("Missing file $file")
40+
}
41+
}
42+

src/it/sign-and-deploy-files/setup.bsh renamed to src/it/sign-and-deploy-file-with-pom/setup.groovy

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
* Licensed to the Apache Software Foundation (ASF) under one
43
* or more contributor license agreements. See the NOTICE file
@@ -18,7 +17,7 @@
1817
* under the License.
1918
*/
2019

21-
import java.io.*;
22-
import org.codehaus.plexus.util.*;
2320

24-
FileUtils.deleteDirectory( new File( basedir, "target" ) );
21+
import org.codehaus.plexus.util.FileUtils
22+
23+
FileUtils.deleteDirectory(new File(basedir, "target"))
Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
* Licensed to the Apache Software Foundation (ASF) under one
43
* or more contributor license agreements. See the NOTICE file
@@ -17,26 +16,21 @@
1716
* specific language governing permissions and limitations
1817
* under the License.
1918
*/
19+
var artifactDir = new File(basedir, "target/repo/org/apache/maven/its/gpg/sadfwp/test/1.0")
2020

21-
import java.io.*;
22-
23-
File artifactDir = new File( basedir, "target/repo/org/apache/maven/its/gpg/sadfwp/test/1.0" );
24-
25-
String[] expectedFiles = {
21+
var expectedFiles = [
2622
"test-1.0.jar",
2723
"test-1.0.jar.asc",
2824
"test-1.0.pom",
29-
"test-1.0.pom.asc",
30-
};
25+
"test-1.0.pom.asc"
26+
]
3127

32-
for ( String expectedFile : expectedFiles )
33-
{
34-
File file = new File( artifactDir, expectedFile );
28+
for (String expectedFile : expectedFiles) {
29+
var file = new File(artifactDir, expectedFile)
3530

36-
System.out.println( "Checking for existence of " + file );
31+
println "Checking for existence of $file"
3732

38-
if ( !file.isFile() )
39-
{
40-
throw new Exception( "Missing file " + file );
33+
if (!file.isFile()) {
34+
throw new Exception("Missing file $file")
4135
}
4236
}

0 commit comments

Comments
 (0)