Skip to content

Commit c87cc5d

Browse files
authored
Merge pull request #42 from ligangty/1.x
Update web-commons-bom to 29
2 parents f906490 + a462a0f commit c87cc5d

20 files changed

+88
-21
lines changed

.github/workflows/maven-build.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
#
2+
# Copyright (C) 2011-2024 Red Hat, Inc. (http://github.com/Commonjava/http-testserver)
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
name: build on maven
18+
19+
on:
20+
watch:
21+
types: [started]
22+
pull_request:
23+
types: [opened, reopened, edited, synchronize, ready_for_review]
24+
push:
25+
branches:
26+
- master
27+
- 1.x
28+
29+
workflow_dispatch:
30+
31+
jobs:
32+
build:
33+
name: Build with maven
34+
runs-on: ubuntu-latest
35+
env:
36+
MAVEN_OPTS: "-Xmx4096m -Xms2048m -XX:MaxMetaspaceSize=4096m -Xss8m"
37+
steps:
38+
- uses: actions/checkout@v4
39+
40+
- name: Set up JDK 11 for x64
41+
uses: actions/setup-java@v3
42+
with:
43+
java-version: '11'
44+
distribution: 'temurin'
45+
architecture: x64
46+
47+
- uses: s4u/maven-settings-action@v2.8.0
48+
with:
49+
sonatypeSnapshots: true
50+
51+
- name: Build the Maven verify phase
52+
run: mvn -B -V clean verify -Prun-its -Pci
53+
54+
55+
- uses: s4u/maven-settings-action@v2.8.0
56+
if: ${{ github.event_name == 'push' }}
57+
with:
58+
servers: |
59+
[{
60+
"id": "sonatype-nexus-snapshots",
61+
"username": "${{ secrets.SONATYPE_BOT_USERNAME }}",
62+
"password": "${{ secrets.SONATYPE_BOT_TOKEN }}"
63+
}]
64+
65+
- name: Deploy the artifact
66+
if: ${{ github.event_name == 'push' }}
67+
run: mvn help:effective-settings -B -V clean deploy -e
File renamed without changes.

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
3-
Copyright (C) 2015-2022 Red Hat, Inc. (http://github.com/Commonjava/http-testserver)
3+
Copyright (C) 2011-2024 Red Hat, Inc. (http://github.com/Commonjava/http-testserver)
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -29,8 +29,8 @@
2929
<version>1.5.2-SNAPSHOT</version>
3030

3131
<name>http-testserver</name>
32-
<inceptionYear>2015-2022</inceptionYear>
33-
32+
<inceptionYear>2011-2024</inceptionYear>
33+
3434
<scm>
3535
<connection>scm:git:https://github.com/Commonjava/http-testserver.git</connection>
3636
<developerConnection>scm:git:git@github.com:Commonjava/http-testserver.git</developerConnection>
@@ -51,7 +51,7 @@
5151
<dependency>
5252
<groupId>org.commonjava.boms</groupId>
5353
<artifactId>web-commons-bom</artifactId>
54-
<version>26</version>
54+
<version>29</version>
5555
<type>pom</type>
5656
<scope>import</scope>
5757
</dependency>

src/main/java/org/commonjava/test/http/TestHttpServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2015-2022 Red Hat, Inc. (http://github.com/Commonjava/http-testserver)
2+
* Copyright (C) 2011-2024 Red Hat, Inc. (http://github.com/Commonjava/http-testserver)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/commonjava/test/http/common/CommonMethod.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2015-2022 Red Hat, Inc. (http://github.com/Commonjava/http-testserver)
2+
* Copyright (C) 2011-2024 Red Hat, Inc. (http://github.com/Commonjava/http-testserver)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/commonjava/test/http/common/HttpServerFixture.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2015-2022 Red Hat, Inc. (http://github.com/Commonjava/http-testserver)
2+
* Copyright (C) 2011-2024 Red Hat, Inc. (http://github.com/Commonjava/http-testserver)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/commonjava/test/http/expect/ContentResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2015-2022 Red Hat, Inc. (http://github.com/Commonjava/http-testserver)
2+
* Copyright (C) 2011-2024 Red Hat, Inc. (http://github.com/Commonjava/http-testserver)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/commonjava/test/http/expect/ExpectationHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2015-2022 Red Hat, Inc. (http://github.com/Commonjava/http-testserver)
2+
* Copyright (C) 2011-2024 Red Hat, Inc. (http://github.com/Commonjava/http-testserver)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/commonjava/test/http/expect/ExpectationServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2015-2022 Red Hat, Inc. (http://github.com/Commonjava/http-testserver)
2+
* Copyright (C) 2011-2024 Red Hat, Inc. (http://github.com/Commonjava/http-testserver)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/java/org/commonjava/test/http/expect/ExpectationServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2015-2022 Red Hat, Inc. (http://github.com/Commonjava/http-testserver)
2+
* Copyright (C) 2011-2024 Red Hat, Inc. (http://github.com/Commonjava/http-testserver)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)