Skip to content

Commit d41b24f

Browse files
authored
Merge pull request #73 from pusher/update-dependencies
Update Vulnerable Dependencies, Remove Deprecated Documentation Plugin, Update CI to include Java 21
2 parents fbd091a + 90dc344 commit d41b24f

6 files changed

Lines changed: 24 additions & 54 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
java-version: [8, 11, 17]
14+
java-version: [11, 17, 21]
1515

1616
steps:
1717
- uses: actions/checkout@v2

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 1.3.4
4+
5+
- [CHANGED] Updated org.asynchttpclient:async-http-client to 3.0.1 to address a vulnerability
6+
- [CHANGED] Updated CI matrix to remove Java 8 and add Java 21, reflecting current support policy
7+
- [CHANGED] Replaced deprecated constructor with in
8+
- [REMOVED] Deprecated org.ajoberstar.github-pages plugin and associated configuration
9+
310
## 1.3.1 2022-05-16
411

512
- [CHANGED] Use SecureRandom.nextBytes instead of SecureRandom.generateSeed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The pusher-http-java library is available in Maven Central:
2020
<dependency>
2121
<groupId>com.pusher</groupId>
2222
<artifactId>pusher-http-java</artifactId>
23-
<version>1.3.3</version>
23+
<version>1.3.4</version>
2424
</dependency>
2525
```
2626

build.gradle

Lines changed: 13 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,12 @@ buildscript {
44
repositories {
55
mavenCentral()
66
}
7-
dependencies {
8-
classpath 'org.ajoberstar:gradle-git:1.1.0'
9-
}
107
}
118

129
plugins {
1310
id 'java-library'
1411
id 'maven-publish'
1512
id "signing"
16-
id "org.ajoberstar.github-pages" version "1.7.2"
1713
}
1814

1915
def getProperty = { property ->
@@ -30,21 +26,17 @@ repositories {
3026
group = "com.pusher"
3127
version = "1.3.3"
3228
description = "Pusher HTTP Client"
33-
sourceCompatibility = "1.8"
34-
targetCompatibility = "1.8"
3529

36-
ext.sharedManifest = manifest {
37-
attributes(
38-
'Created-By': 'Pusher',
39-
'Implementation-Vendor': 'Pusher',
40-
'Implementation-Title': 'Pusher HTTP Java',
41-
'Implementation-Version': version
42-
)
30+
java {
31+
sourceCompatibility = JavaVersion.VERSION_11
32+
targetCompatibility = JavaVersion.VERSION_11
33+
withSourcesJar()
34+
withJavadocJar()
4335
}
4436

4537
dependencies {
4638
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
47-
implementation 'org.asynchttpclient:async-http-client:2.12.3'
39+
implementation 'org.asynchttpclient:async-http-client:3.0.1'
4840
implementation 'com.google.code.gson:gson:2.8.9'
4941
testImplementation 'org.apache.httpcomponents:httpclient:4.5.13'
5042
testImplementation 'org.hamcrest:hamcrest-all:1.3'
@@ -66,42 +58,13 @@ javadoc {
6658

6759
jar {
6860
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
69-
manifest = project.manifest {
70-
from sharedManifest
71-
}
72-
}
73-
74-
task sourcesJar(type: Jar, dependsOn: classes) {
75-
archiveClassifier.set('sources')
76-
from sourceSets.main.allSource
77-
}
78-
assemble.dependsOn sourcesJar
79-
80-
81-
task javadocJar(type: Jar, dependsOn: javadoc) {
82-
archiveClassifier.set('javadoc')
83-
from javadoc.destinationDir
84-
}
85-
assemble.dependsOn javadocJar
86-
87-
artifacts {
88-
archives jar, sourcesJar, javadocJar
89-
}
90-
91-
java {
92-
withSourcesJar()
93-
withJavadocJar()
94-
}
95-
96-
githubPages {
97-
repoUri = 'https://github.com/pusher/pusher-http-java.git'
98-
pages {
99-
from javadoc.outputs.files
100-
}
101-
commitMessage = "JavaDoc gh-pages for ${version}"
102-
credentials {
103-
username = { getProperty("github.username") }
104-
password = { getProperty("github.password") }
61+
manifest {
62+
attributes(
63+
'Created-By': 'Pusher',
64+
'Implementation-Vendor': 'Pusher',
65+
'Implementation-Title': 'Pusher HTTP Java',
66+
'Implementation-Version': version
67+
)
10568
}
10669
}
10770

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/main/java/com/pusher/rest/SignatureUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static URI uri(final String method,
3636
final Map<String, String> allParams = new HashMap<String, String>(extraParams);
3737
allParams.put("auth_key", key);
3838
allParams.put("auth_version", "1.0");
39-
allParams.put("auth_timestamp", new Long(System.currentTimeMillis() / 1000).toString());
39+
allParams.put("auth_timestamp", Long.toString(System.currentTimeMillis() / 1000));
4040
if (body != null) {
4141
allParams.put("body_md5", bodyMd5(body));
4242
}

0 commit comments

Comments
 (0)