Skip to content

Commit 1f44b12

Browse files
committed
upgrade packages
1 parent 2f15807 commit 1f44b12

File tree

5 files changed

+45
-13
lines changed

5 files changed

+45
-13
lines changed

.github/workflows/release.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release new version to Maven
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Get the code
12+
uses: actions/checkout@v4
13+
- name: Setup Java 11
14+
uses: actions/setup-java@v4
15+
with:
16+
java-version: 11
17+
distribution: 'zulu'
18+
server-id: ossrh-nexus
19+
server-username: MAVEN_USERNAME
20+
server-password: MAVEN_PASSWORD
21+
gpg-private-key: ${{ secrets.GPG_KEY }}
22+
gpg-passphrase: GPG_PASSPHRASE
23+
- name: Publish to the Maven Central Repository
24+
env:
25+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
26+
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
27+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
28+
run: mvn deploy --batch-mode -D skipTests --activate-profiles release --no-transfer-progress

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
java: [ '11', '15','17' ]
1111
runs-on: ${{ matrix.os }}
1212
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-java@v3
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-java@v4
1515
with:
1616
distribution: 'zulu'
1717
java-version: ${{ matrix.java }}

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ Will send a log to Logz.io that looks like this:
169169
```
170170

171171
### Release notes
172+
- 2.1.0
173+
- Updated LogzioSender version to `2.1.0`
174+
- Upgrade packages version
175+
- Upgrade packages version
172176
- 2.0.1
173177
- Updated LogzioSender version to `2.0.1`
174178
- Add `User-Agent` header with logz.io information

pom.xml

+10-10
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.logz.log4j2</groupId>
88
<artifactId>logzio-log4j2-appender</artifactId>
9-
<version>2.0.1</version>
9+
<version>2.1.0</version>
1010

1111
<packaging>jar</packaging>
1212
<name>Logz.io Log4j2 Appender</name>
@@ -22,8 +22,8 @@
2222

2323
<developers>
2424
<developer>
25-
<name>Tamir Michaeli</name>
26-
<email>tamir.michaeli@logz.io</email>
25+
<name>Naama Bendalak</name>
26+
<email>naama.bendalak@logz.io</email>
2727
<organization>Logz.io</organization>
2828
<organizationUrl>http://logz.io</organizationUrl>
2929
</developer>
@@ -36,15 +36,15 @@
3636
</scm>
3737

3838
<properties>
39-
<logzio-sender-version>2.0.1</logzio-sender-version>
39+
<logzio-sender-version>2.1.0</logzio-sender-version>
4040
</properties>
4141

4242
<build>
4343
<plugins>
4444
<plugin>
4545
<groupId>org.apache.maven.plugins</groupId>
4646
<artifactId>maven-compiler-plugin</artifactId>
47-
<version>3.5.1</version>
47+
<version>3.13.0</version>
4848
<configuration>
4949
<source>11</source>
5050
<target>11</target>
@@ -53,7 +53,7 @@
5353
<plugin>
5454
<groupId>org.apache.maven.plugins</groupId>
5555
<artifactId>maven-source-plugin</artifactId>
56-
<version>3.0.1</version>
56+
<version>3.3.1</version>
5757
<executions>
5858
<execution>
5959
<id>attach-sources</id>
@@ -66,7 +66,7 @@
6666
<plugin>
6767
<groupId>org.apache.maven.plugins</groupId>
6868
<artifactId>maven-javadoc-plugin</artifactId>
69-
<version>3.2.0</version>
69+
<version>3.10.0</version>
7070
<executions>
7171
<execution>
7272
<id>attach-javadocs</id>
@@ -150,12 +150,12 @@
150150
<dependency>
151151
<groupId>org.apache.logging.log4j</groupId>
152152
<artifactId>log4j-api</artifactId>
153-
<version>2.15.0</version>
153+
<version>2.24.0</version>
154154
</dependency>
155155
<dependency>
156156
<groupId>org.apache.logging.log4j</groupId>
157157
<artifactId>log4j-core</artifactId>
158-
<version>2.17.1</version>
158+
<version>2.24.1</version>
159159
</dependency>
160160
<dependency>
161161
<groupId>io.logz.sender</groupId>
@@ -166,7 +166,7 @@
166166
<dependency>
167167
<groupId>com.google.guava</groupId>
168168
<artifactId>guava</artifactId>
169-
<version>30.0-jre</version>
169+
<version>33.3.1-jre</version>
170170
</dependency>
171171
<dependency>
172172
<groupId>junit</groupId>

src/test/java/io/logz/log4j2/BaseLog4jAppenderTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected void assertAdditionalFields(MockLogzioBulkListener.LogRequest logReque
4141
protected void sleepSeconds(int seconds) {
4242
logger.info("Sleeping {} [sec]...", seconds);
4343
try {
44-
Thread.sleep(seconds * 1000);
44+
Thread.sleep(seconds * 1000L);
4545
} catch (InterruptedException e) {
4646
throw new RuntimeException(e);
4747
}

0 commit comments

Comments
 (0)