Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
1a33c44
[SDKS-6312] Update snakeyaml version to fix vulnerability
nmayorsplit Jan 5, 2023
e625c5f
[SDKS-6381] Update TelemetryConsumerSubmitter to save uniqueKeys in R…
nmayorsplit Mar 13, 2023
3dc4756
Merge pull request #376 from splitio/SDKS-6381
nmayorsplit Mar 13, 2023
81cce8a
[SDKS-6620] Fix destroy when is in consumer mode
nmayorsplit Mar 14, 2023
67efd87
[SDKS-6620] Update destroy in SplitFatoryImpl
nmayorsplit Mar 14, 2023
0e10d3b
[SDKS-6620] Refactor TelemetryConsumerSubmitter
nmayorsplit Mar 14, 2023
83c44cb
Merge pull request #377 from splitio/SDKS-6620
nmayorsplit Mar 14, 2023
5c393dc
[SDKS-6575] Add sha for LocalhostSplitFetcher
nmayorsplit Mar 15, 2023
cb96e01
[SDKS-6575] Update SplitFetcherImp and add test cases for sha
nmayorsplit Mar 16, 2023
71fba8e
[SDKS-6575] Update LocalhostSplitChangeFetcher to set since with the CN
nmayorsplit Mar 17, 2023
108317e
[SDKS-6576] Add sha for segments
nmayorsplit Mar 17, 2023
3412ad7
[SDKS-6575] PR suggestions
nmayorsplit Mar 17, 2023
f3ca6f2
[SDKS-6576] Add sha for segments
nmayorsplit Mar 17, 2023
84f3726
[SDKS-6576] Add some comments
nmayorsplit Mar 17, 2023
0934b6b
[SDKS-6312] Update snakeyaml version
nmayorsplit Mar 20, 2023
490b02a
[SDKS-6575] Add some comments in the code
nmayorsplit Mar 20, 2023
d03b545
Merge pull request #378 from splitio/SDKS-6575
nmayorsplit Mar 20, 2023
8779b84
Merge branch 'development' into SDKS-6576
nmayorsplit Mar 20, 2023
13a2950
Merge pull request #379 from splitio/SDKS-6576
nmayorsplit Mar 20, 2023
75138f2
[SDKS-6312] Update version
nmayorsplit Mar 21, 2023
944b81a
Merge branch 'development' into SDKS-6312
nmayorsplit Mar 21, 2023
a4e5a22
Merge pull request #380 from splitio/SDKS-6312
nmayorsplit Mar 21, 2023
e8693fb
Update README.md
sanzmauro Mar 21, 2023
8c3675b
Merge pull request #381 from splitio/fix-badge-status
sanzmauro Mar 21, 2023
c923a08
[SDKS-6349] Add YamlLocalhostSplitChangeFetcher and refactor factory
nmayorsplit Mar 23, 2023
762f9d0
[SDKS-6349] Move .split file to new logic
nmayorsplit Mar 28, 2023
6a8c51a
Merge branch 'development' into SDKS-6349
nmayorsplit Mar 31, 2023
fdda6f9
Update version to 4.7.1-rc1
nmayorsplit Mar 31, 2023
6b99db9
Update version to merge in development
nmayorsplit Apr 3, 2023
d23f55f
Merge pull request #384 from splitio/SDKS-6349
nmayorsplit Apr 3, 2023
3e504dd
Clean up classes that are no longer used. Fix LegacyLocalhostSplitCha…
nmayorsplit Apr 3, 2023
29a82b7
[SDKS-6687] Pr suggestions
nmayorsplit Apr 3, 2023
b0eecb6
Merge pull request #385 from splitio/SDKS-6687
nmayorsplit Apr 3, 2023
f5febdf
Fix Sonarqube
Israphel Apr 4, 2023
e9d051a
Fix maven settings
Israphel Apr 4, 2023
07a02f8
Freeze sonarqube plugin version
Israphel Apr 4, 2023
4e66bcd
Run Sonarqube with jdk 11
Israphel Apr 4, 2023
5fa2122
Less options
Israphel Apr 4, 2023
9b69570
Try mvn clean install
Israphel Apr 4, 2023
a1fb551
Unset CI
Israphel Apr 4, 2023
e909b2b
Fix broken test
Israphel Apr 4, 2023
0d20c4b
Deploy for every branch
Israphel Apr 4, 2023
9f56e8e
Optimize workflow
Israphel Apr 4, 2023
946e387
Optimize workflow
Israphel Apr 4, 2023
c8dddc0
Optimize workflow
Israphel Apr 4, 2023
7ef577d
Optimize workflow
Israphel Apr 4, 2023
cb9ec7b
Remove old workflow
Israphel Apr 4, 2023
ecf0516
Merge pull request #386 from splitio/fix/sonarqube
Israphel Apr 5, 2023
c83b4f1
[SDKS-6577] Updated client version and changelog
nmayorsplit Apr 5, 2023
606f034
[SDKS-6577] Update Random in sanitization
nmayorsplit Apr 5, 2023
d34b820
[SDKS-6577] Update sanitazer and RedisInstance
nmayorsplit Apr 5, 2023
ed26cc6
[SDKS-6577] Update RedisPipeline
nmayorsplit Apr 5, 2023
53ad3d2
[SDKS-6577] Update SplitClientConfig, ProcessImpressionOptimized and …
nmayorsplit Apr 5, 2023
d8b1cc4
[SDKS-6577] Update SplitClientConfig, SplitFactoryImpl, LocalhostSani…
nmayorsplit Apr 5, 2023
bb0db90
[SDKS-6577] Update SplitClientConfig
nmayorsplit Apr 5, 2023
e5786da
[SDKS-6577] Update LegacyLocalhostSplitChangeFetcher
nmayorsplit Apr 5, 2023
33ea04f
[SDKS-6577] Update LegacyLocalhostSplitChangeFetcher
nmayorsplit Apr 5, 2023
d223e81
[SDKS-6577] Update LocalhostSanitizer and EvalueatorImp
nmayorsplit Apr 5, 2023
eae1ef1
[SDKS-6577] Update UserCustomImpressionAdapterProducer, TelemetryCons…
nmayorsplit Apr 5, 2023
3940651
[SDKS-6577] Update RedisCluster, RedisInstace, RedisSingle
nmayorsplit Apr 5, 2023
6c8e368
Update RedisCluster
nmayorsplit Apr 5, 2023
517691f
[SDKS-6577] Update changes
nmayorsplit Apr 10, 2023
6982f69
Merge pull request #387 from splitio/SDKS-6577
nmayorsplit Apr 10, 2023
8682eaa
Update release date
nmayorsplit Apr 10, 2023
d694daf
Merge pull request #389 from splitio/update-release-date
nmayorsplit Apr 10, 2023
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
12 changes: 7 additions & 5 deletions .ci.settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,17 @@
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<sonar.projectName>java-client</sonar.projectName>
<sonar.host.url>https://sonarqube.split-internal.com</sonar.host.url>
<sonar.login>${env.SONAR_TOKEN}</sonar.login>
<sonar.ws.timeout>300</sonar.ws.timeout>
<sonar.sources>.</sonar.sources>
<sonar.inclusions>pom.xml,src/main/**</sonar.inclusions>
<sonar.tests>.</sonar.tests>
<sonar.test.inclusions>src/test/**</sonar.test.inclusions>
<sonar.text.excluded.file.suffixes>.csv</sonar.text.excluded.file.suffixes>
<sonar.cpd.exclusions>**/matchers/**/*.*</sonar.cpd.exclusions>
<sonar.links.ci>https://travis-ci.com/splitio/java-client</sonar.links.ci>
<sonar.links.scm>https://github.com/splitio/java-client</sonar.links.scm>
<sonar.projectName>java-client</sonar.projectName>
<sonar.sources>./src</sonar.sources>
<sonar.test.exclusions>**/test/**/*.*,**/testing/**/*.*</sonar.test.exclusions>
<sonar.exclusions>**/ai/**/*.*,**/jdbc/**/*.*,**/mpt/**/*.*,**/jcr/**/*.*,**/JDBC*</sonar.exclusions>
</properties>
</profile>
</profiles>
Expand Down
58 changes: 0 additions & 58 deletions .github/workflows/ci-cd.yml

This file was deleted.

73 changes: 73 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: ci

on:
push:
branches:
- '**'
pull_request:
branches:
- master
- development

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
test:
name: Test
runs-on: ubuntu-latest
services:
redis:
image: redis
ports:
- 6379:6379
strategy:
fail-fast: false
matrix:
jdk:
- '8'
- '11'
env:
ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }}
ARTIFACTORY_TOKEN: ${{ secrets.ARTIFACTORY_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
MAVEN_OPTS: "-XX:InitialHeapSize=2G -XX:MaxHeapSize=2G -XX:+PrintCommandLineFlags -XX:ThreadStackSize=65536 -XX:-TieredCompilation -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
muteProps: "true"

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup JDK ${{ matrix.jdk }}
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: ${{ matrix.jdk }}

- name: Setup Maven
run: cp .ci.settings.xml ${HOME}/.m2/settings.xml

- name: Test
if: matrix.jdk == '8' && github.event_name == 'pull_request' && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/development'
run: mvn --batch-mode clean install

- name: Deploy
if: matrix.jdk == '8' && github.event_name == 'push' && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/development'
run: mvn --batch-mode deploy -P test

- name: SonarQube Scan (Push)
if: matrix.jdk == '11' && github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/development')
run: |
mvn --batch-mode clean verify sonar:sonar \
-Dsonar.branch.name=${{ github.ref_name }}

- name: SonarQube Scan (Pull Request)
if: matrix.jdk == '11' && github.event_name == 'pull_request'
run: |
mvn --batch-mode clean verify sonar:sonar \
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }} \
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }} \
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}
52 changes: 0 additions & 52 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/workflows/mvn.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/update-license-year.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set Current year
run: "echo CURRENT=$(date +%Y) >> $GITHUB_ENV"

- name: Set Previous Year
run: "echo PREVIOUS=$(($CURRENT-1)) >> $GITHUB_ENV"

Expand Down
12 changes: 9 additions & 3 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
4.7.1 (Apr 10, 2023)
- Added SHA for split and segment fetcher in localhost json.
- Updated `org.yaml.snakeyaml` dependence to 2.0 for fixing a vulnerability.
- Fixed Redis integration, changing []dtos.Key to dtos.Key
- Fixed destroy for consumer mode.

4.7.0 (Jan 30, 2023)
- Added support to use JSON files in localhost mode.
- Improved logs to have more information.
Expand Down Expand Up @@ -123,7 +129,7 @@
3.2.3 (Aug 1, 2019)
- allow to push impressions more often than one every 30 seconds and events flush rate is now customizable

3.2.2
3.2.2
- log warn and not error when Split doesn't exist in the environment

3.2.1 (May 29, 2019)
Expand Down Expand Up @@ -167,7 +173,7 @@
3.0.2 (Dec 12, 2018)
- Fixed traffic allocation issue on 1%

3.0.1
3.0.1
- Fix Metric Counters when using Split Proxy.

3.0.0
Expand Down Expand Up @@ -266,7 +272,7 @@
- shade jackson-databind to split.shade.xxxxx
- remove hamcrest and mockito from fat jar
- include only io.split, io.codigo and (shaded) guava in the fat jar
- Clean up JAVA 1.8 dependencies making sure they all are major version 51.
- Clean up JAVA 1.8 dependencies making sure they all are major version 51.

1.0.4
- blockUntilReady support
Expand Down
21 changes: 10 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Split Java SDK

[![Build Status](https://api.travis-ci.com/splitio/java-client.svg?branch=master)](https://api.travis-ci.com/splitio/java-client)
![Build Status](https://github.com/splitio/java-client/actions/workflows/ci-cd.yml/badge.svg?branch=master)

## Overview
This SDK is designed to work with Split, the platform for controlled rollouts, serving features to your users via the Split feature flag to manage your complete customer experience.
Expand Down Expand Up @@ -28,7 +27,7 @@ public class App {
try {
client.blockUntilReady();
} catch (TimeoutException | InterruptedException e) {
// log & handle
// log & handle
}

String treatment = client.getTreatment("CUSTOMER_ID", "SPLIT_NAME");
Expand All @@ -44,7 +43,7 @@ public class App {
```

## Submitting issues

The Split team monitors all issues submitted to this [issue tracker](https://github.com/splitio/java-client/issues). We encourage you to use this issue tracker to submit any bug reports, feedback, and feature enhancements. We'll do our best to respond in a timely manner.

## Contributing
Expand All @@ -54,13 +53,13 @@ Please see [Contributors Guide](CONTRIBUTORS-GUIDE.md) to find all you need to s
Licensed under the Apache License, Version 2.0. See: [Apache License](http://www.apache.org/licenses/).

## About Split

Split is the leading Feature Delivery Platform for engineering teams that want to confidently deploy features as fast as they can develop them. Split’s fine-grained management, real-time monitoring, and data-driven experimentation ensure that new features will improve the customer experience without breaking or degrading performance. Companies like Twilio, Salesforce, GoDaddy and WePay trust Split to power their feature delivery.

To learn more about Split, contact hello@split.io, or get started with feature flags for free at https://www.split.io/signup.

Split has built and maintains SDKs for:

* Java [Github](https://github.com/splitio/java-client) [Docs](https://help.split.io/hc/en-us/articles/360020405151-Java-SDK)
* Javascript [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK)
* Node [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK)
Expand All @@ -71,9 +70,9 @@ Split has built and maintains SDKs for:
* GO [Github](https://github.com/splitio/go-client) [Docs](https://help.split.io/hc/en-us/articles/360020093652-Go-SDK)
* Android [Github](https://github.com/splitio/android-client) [Docs](https://help.split.io/hc/en-us/articles/360020343291-Android-SDK)
* iOS [Github](https://github.com/splitio/ios-client) [Docs](https://help.split.io/hc/en-us/articles/360020401491-iOS-SDK)

For a comprehensive list of open source projects visit our [Github page](https://github.com/splitio?utf8=%E2%9C%93&query=%20only%3Apublic%20).

**Learn more about Split:**

Visit [split.io/product](https://www.split.io/product) for an overview of Split, or visit our documentation at [help.split.io](http://help.split.io) for more detailed information.
4 changes: 2 additions & 2 deletions client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.split.client</groupId>
<artifactId>java-client-parent</artifactId>
<version>4.7.0</version>
<version>4.7.1</version>
</parent>
<artifactId>java-client</artifactId>
<packaging>jar</packaging>
Expand Down Expand Up @@ -175,7 +175,7 @@
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.32</version>
<version>2.0</version>
</dependency>

<!-- Test deps -->
Expand Down
Loading