-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved release process, bumped dependency versions (including WireMock), slightly improved test coverage, updated copyright year, merged main, ready for release v4.8.1.
- Loading branch information
Showing
49 changed files
with
1,062 additions
and
1,088 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
[bumpversion] | ||
commit = True | ||
tag = True | ||
current_version = v4.8.0 | ||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))? | ||
tag = False | ||
current_version = v4.8.1 | ||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)(?P<build>\d+))? | ||
serialize = | ||
{major}.{minor}.{patch}-{release}{build} | ||
{major}.{minor}.{patch} | ||
|
||
[bumpversion:file:build.gradle] | ||
|
||
[bumpversion:file:README.md] | ||
|
||
[bumpversion:file:src/main/java/com/opentok/constants/Version.java] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,21 +10,6 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.release.target_commitish }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.8 | ||
- name: Install bump2version | ||
run: | | ||
python -m pip install --upgrade pip | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "NexmoDev" | ||
git config --global github.token ${{ secrets.GITHUB_TOKEN }} | ||
pip install bump2version | ||
- name: Bump Version | ||
run: bump2version --new-version ${{ github.event.release.tag_name }} patch && | ||
git tag ${{ github.event.release.tag_name }} -f && | ||
git push && git push --tags origin --force | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
|
@@ -44,4 +29,7 @@ jobs: | |
signingPassword: ${{secrets.SIGNING_PASSWORD}} | ||
OSS_USERNAME: ${{secrets.OSS_USERNAME}} | ||
OSS_PASSWORD: ${{secrets.OSS_PASSWORD}} | ||
run: OSS_USERNAME=$OSS_USERNAME OSS_PASSWORD=$OSS_PASSWORD signingKey=$signingKey signingPassword=$signingPassword gradle publish --info | ||
run: | | ||
OSS_USERNAME=$OSS_USERNAME OSS_PASSWORD=$OSS_PASSWORD | ||
signingKey=$signingKey signingPassword=$signingPassword | ||
gradle publishToSonatype closeAndReleaseSonatypeStagingRepository --info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,29 +5,31 @@ plugins { | |
id 'jacoco' | ||
id 'signing' | ||
id 'maven-publish' | ||
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0' | ||
id "com.github.hierynomus.license" version "0.16.1" | ||
} | ||
|
||
group = 'com.tokbox' | ||
archivesBaseName = 'opentok-server-sdk' | ||
version = '4.8.0' | ||
|
||
version = '4.8.1' | ||
sourceCompatibility = "1.8" | ||
targetCompatibility = "1.8" | ||
|
||
ext.githubPath = 'opentok/opentok-java-sdk' | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
testImplementation 'junit:junit:4.13.2' | ||
testImplementation 'com.github.tomakehurst:wiremock:1.58' | ||
testImplementation 'com.github.tomakehurst:wiremock-jre8:2.35.0' | ||
implementation 'commons-lang:commons-lang:2.6' | ||
implementation 'commons-validator:commons-validator:1.7' | ||
implementation 'org.asynchttpclient:async-http-client:2.12.3' | ||
implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.4' | ||
implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.1' | ||
implementation 'commons-codec:commons-codec:1.15' | ||
implementation 'org.bitbucket.b_c:jose4j:0.8.0' | ||
implementation 'org.bitbucket.b_c:jose4j:0.9.2' | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
|
@@ -87,11 +89,11 @@ publishing { | |
artifactId = 'opentok-server-sdk' | ||
packaging = 'jar' | ||
description = "The OpenTok Java SDK lets you generate sessions and tokens for OpenTok applications. This version of the SDK also includes support for working with OpenTok 2.0 archives." | ||
url = "https://github.com/opentok/opentok-java-sdk" | ||
url = "https://github.com/$githubPath" | ||
licenses { | ||
license { | ||
name = 'MIT License' | ||
url = "https://raw.github.com/opentok/opentok-java-sdk/main/LICENCE.txt" | ||
url = "https://raw.github.com/$githubPath/main/LICENCE.txt" | ||
} | ||
} | ||
developers { | ||
|
@@ -126,25 +128,25 @@ publishing { | |
} | ||
} | ||
scm { | ||
connection = "scm:[email protected]/opentok/opentok-java-sdk" | ||
developerConnection = "scm:[email protected]/opentok/opentok-java-sdk" | ||
url = "http://github.com/opentok/opentok-java-sdk" | ||
connection = "scm:[email protected]/$githubPath" | ||
developerConnection = "scm:[email protected]/$githubPath" | ||
url = "https://github.com/$githubPath" | ||
} | ||
|
||
issueManagement { | ||
system = "GitHub" | ||
url = "https://http://github.com/opentok/opentok-java-sdk" | ||
url = "https://github.com/$githubPath" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
nexusPublishing { | ||
repositories { | ||
maven { | ||
def releasesRepoUrl = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/") | ||
def snapshotsRepoUrl = uri("https://oss.sonatype.org/content/repositories/snapshots/") | ||
credentials.username(System.getenv("OSS_USERNAME")) | ||
credentials.password(System.getenv("OSS_PASSWORD")) | ||
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl | ||
sonatype { | ||
username = System.getenv("OSS_USERNAME") | ||
password = System.getenv("OSS_PASSWORD") | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# | ||
# OpenTok Java SDK | ||
# Copyright (C) 2023 Vonage. | ||
# http://www.tokbox.com | ||
# | ||
# Licensed under The MIT License (MIT). See LICENSE file for more information. | ||
# | ||
if [ "$1" = "" ] | ||
then | ||
echo "Usage: $0 <new version>" | ||
exit 1 | ||
fi | ||
|
||
python -m pip install --upgrade pip | ||
pip install bump2version | ||
bump2version --new-version "$1" patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.