Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
java-version: [8, 11, 17]
java-version: [11, 17, 21]

steps:
- uses: actions/checkout@v2
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 1.3.4

- [CHANGED] Updated org.asynchttpclient:async-http-client to 3.0.1 to address a vulnerability
- [CHANGED] Updated CI matrix to remove Java 8 and add Java 21, reflecting current support policy
- [CHANGED] Replaced deprecated constructor with in
- [REMOVED] Deprecated org.ajoberstar.github-pages plugin and associated configuration

## 1.3.1 2022-05-16

- [CHANGED] Use SecureRandom.nextBytes instead of SecureRandom.generateSeed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The pusher-http-java library is available in Maven Central:
<dependency>
<groupId>com.pusher</groupId>
<artifactId>pusher-http-java</artifactId>
<version>1.3.3</version>
<version>1.3.4</version>
</dependency>
```

Expand Down
63 changes: 13 additions & 50 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@ buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.ajoberstar:gradle-git:1.1.0'
}
}

plugins {
id 'java-library'
id 'maven-publish'
id "signing"
id "org.ajoberstar.github-pages" version "1.7.2"
}

def getProperty = { property ->
Expand All @@ -30,21 +26,17 @@ repositories {
group = "com.pusher"
version = "1.3.3"
description = "Pusher HTTP Client"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"

ext.sharedManifest = manifest {
attributes(
'Created-By': 'Pusher',
'Implementation-Vendor': 'Pusher',
'Implementation-Title': 'Pusher HTTP Java',
'Implementation-Version': version
)
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withSourcesJar()
withJavadocJar()
}

dependencies {
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
implementation 'org.asynchttpclient:async-http-client:2.12.3'
implementation 'org.asynchttpclient:async-http-client:3.0.1'
implementation 'com.google.code.gson:gson:2.8.9'
testImplementation 'org.apache.httpcomponents:httpclient:4.5.13'
testImplementation 'org.hamcrest:hamcrest-all:1.3'
Expand All @@ -66,42 +58,13 @@ javadoc {

jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest = project.manifest {
from sharedManifest
}
}

task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
assemble.dependsOn sourcesJar


task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier.set('javadoc')
from javadoc.destinationDir
}
assemble.dependsOn javadocJar

artifacts {
archives jar, sourcesJar, javadocJar
}

java {
withSourcesJar()
withJavadocJar()
}

githubPages {
repoUri = 'https://github.com/pusher/pusher-http-java.git'
pages {
from javadoc.outputs.files
}
commitMessage = "JavaDoc gh-pages for ${version}"
credentials {
username = { getProperty("github.username") }
password = { getProperty("github.password") }
manifest {
attributes(
'Created-By': 'Pusher',
'Implementation-Vendor': 'Pusher',
'Implementation-Title': 'Pusher HTTP Java',
'Implementation-Version': version
)
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion src/main/java/com/pusher/rest/SignatureUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static URI uri(final String method,
final Map<String, String> allParams = new HashMap<String, String>(extraParams);
allParams.put("auth_key", key);
allParams.put("auth_version", "1.0");
allParams.put("auth_timestamp", new Long(System.currentTimeMillis() / 1000).toString());
allParams.put("auth_timestamp", Long.toString(System.currentTimeMillis() / 1000));
if (body != null) {
allParams.put("body_md5", bodyMd5(body));
}
Expand Down
Loading