Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated all dependencies to newest versions to help fix vulnerabilities #23

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
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
36 changes: 36 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish package to the Maven Central Repository

on:
release:
types: [created]

jobs:
publish:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v4
- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Set version
run: mvn versions:set -DnewVersion=${{ github.event.release.tag_name }}

- name: Publish package
run: mvn -P release --batch-mode deploy -DskipTests
env:
MAVEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }}
61 changes: 15 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,22 @@
embedded-redis
==============

Redis embedded server for Java integration testing
Redis embedded server for Java integration testing.

Fork Notes
==============
This repository clones from [kstyrc](https://github.com/kstyrc/embedded-redis) original repository.
The aim is to release some long waiting fixes.


**Source Website:** *[github.com/ozimov/embedded-redis](http://github.com/ozimov/embedded-redis/)*<br />

**Latest Release:** *0.7.3* <br />
**Latest Artifact:** *it.ozimov:embedded-redis* <br />
**Continuous Integration:** <br />
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/it.ozimov/embedded-redis/badge.svg)](https://maven-badges.herokuapp.com/maven-central/it.ozimov/embedded-redis)
<br />
[![Build Status](https://travis-ci.org/ozimov/embedded-redis.svg?branch=master)](https://travis-ci.org/ozimov/embedded-redis)
[![codecov.io](https://codecov.io/github/ozimov/embedded-redis/coverage.svg?branch=master)](https://codecov.io/github/ozimov/embedded-redis?branch=master)
[![Codacy Badge](https://api.codacy.com/project/badge/grade/7a4364b93df6473fb18a597e900edceb)](https://www.codacy.com/app/roberto-trunfio/embedded-redis)
Forked from [ozimov](https://github.com/ozimov/embedded-redis) which again was forked from [kstyrc](https://github.com/kstyrc/embedded-redis). <br />
Forked because both ozimov and kstyrc repositories doesn't appear to be maintained anymore.

![codecov.io](https://codecov.io/github/ozimov/embedded-redis/branch.svg?branch=master)
The primary goal of this fork is to keep the library up to date with all the latest versions/dependencies.

Maven dependency
==============

Maven Central:
```xml
<dependency>
<groupId>it.ozimov</groupId>
<groupId>io.github.jesperberggren</groupId>
<artifactId>embedded-redis</artifactId>
<version>0.7.3</version>
<version>0.1.0</version>
</dependency>
```

Expand Down Expand Up @@ -151,6 +137,15 @@ public class SomeIntegrationTestThatRequiresRedis {
The above will create and start a cluster with sentinels on ports ```26739, 26912```, first replication group on ```6667, 6668```,
second replication group on ```6387, 6379``` and third replication group on ephemeral ports.

Redis binaries
==============
Redis binaries are included in the library by default, but they are very old.
You should probably provide your own binaries to match a more recent version of Redis.

If no RedisExecProvider is given the code will attempt to discover which OS and Architecture is being used and choose an appropriate binary.

Not all operating systems and architectures are supported.

Redis version
==============

Expand All @@ -175,29 +170,3 @@ Contributors
* Artem Orobets ([@enisher](http://github.com/enisher))
* Sean Simonsen ([@SeanSimonsen](http://github.com/SeanSimonsen))
* Rob Winch ([@rwinch](http://github.com/rwinch))


Changelog
==============

### 0.6
* Support JDK 6 +

### 0.5
* OS detection fix
* redis binary per OS/arch pair
* Updated to 2.8.19 binary for Windows

### 0.4
* Updated for Java 8
* Added Sentinel support
* Ability to create arbitrary clusters on arbitrary (ephemeral) ports
* Updated to latest guava
* Throw an exception if redis has not been started
* Redis errorStream logged to System.out

### 0.3
* Fluent API for RedisServer creation

### 0.2
* Initial decent release
Loading