Skip to content

Commit 5f589d6

Browse files
Merge remote-tracking branch 'origin/develop' into dependabot/github_actions/actions/cache-4
🔒 Scanned for secrets using gitleaks 8.28.0
2 parents 5f457cb + 1be0a0f commit 5f589d6

17 files changed

Lines changed: 75 additions & 431 deletions

File tree

.buildscript/bootstrap.sh

Lines changed: 0 additions & 25 deletions
This file was deleted.

.buildscript/cli.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

.buildscript/deploy_snapshot.sh

Lines changed: 0 additions & 28 deletions
This file was deleted.

.buildscript/e2e.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

.buildscript/settings.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.github/workflows/build-and-quality-checks.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
with:
1515
fetch-depth: 0
1616

17-
- name: Set up JDK 21
17+
- name: Set up JDK 17
1818
uses: actions/setup-java@v3
1919
with:
20-
java-version: '21'
21-
distribution: 'temurin'
20+
java-version: 17
21+
distribution: 'zulu' # Alternative distribution options are available.
2222

2323
- name: Set up Maven
2424
uses: stCarolas/setup-maven@v4.5
@@ -91,6 +91,6 @@ jobs:
9191
9292
- name: Sonar analysis
9393
env:
94-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
9595
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
96-
run: mvn sonar:sonar
96+
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=rudderlabs_rudder-sdk-java

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Version 3.1.2 (August 1, 2024)
2+
- [New](https://github.com/rudderlabs/rudder-sdk-java/pull/113) Release all Java modules with version 3.1.2
3+
4+
# Version 3.1.0 (December 14, 2023)
5+
- [New](https://github.com/rudderlabs/rudder-sdk-java/pull/86) Update Java to the latest version
6+
- [New](https://github.com/rudderlabs/rudder-sdk-java/pull/83) Improve links in Rudderstack documentation
7+
18
# Version 3.0.0 (January 9, 2023)
29
- [New](https://github.com/rudderlabs/rudder-sdk-java/pull/43) Add CI feature
310
- [New](https://github.com/rudderlabs/rudder-sdk-java/pull/41) Add support for channel object in individual payload

README.md

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,64 @@
11
[![Build & Code Quality Checks](https://github.com/rudderlabs/rudder-sdk-java/actions/workflows/build-and-quality-checks.yml/badge.svg?branch=ci%2FaddCIFeatures)](https://github.com/rudderlabs/rudder-sdk-java/actions/workflows/build-and-quality-checks.yml)
2+
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/rudderlabs/rudder-sdk-java)
23

34
# What is RudderStack?
45

5-
[RudderStack](https://rudderstack.com/) is a **customer data pipeline** tool for collecting, routing and processing data from your websites, apps, cloud tools, and data warehouse.
6+
[RudderStack](https://rudderstack.com/) is a **customer data pipeline** tool for collecting, routing and processing data from
7+
your websites, apps, cloud tools, and data warehouse.
68

79
## RudderStack's Java SDK
810

9-
RudderStack’s Java SDK allows you to track your customer event data from your Java code. Once enabled, the event requests hit the RudderStack servers. RudderStack then routes the events to the specified destination platforms as configured by you.
11+
RudderStack’s Java SDK allows you to track your customer event data from your Java code. Once enabled, the event requests hit
12+
the RudderStack servers. RudderStack then routes the events to the specified destination platforms as configured by you.
1013

11-
For detailed documentation on the Java SDK, click [here](https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-java-sdk/).
14+
For detailed documentation on the Java SDK,
15+
click [here](https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-java-sdk/).
1216

1317
## Getting Started with the RudderStack Java SDK
1418

1519
*Add to `pom.xml`:*
1620

1721
```xml
22+
1823
<dependency>
1924
<groupId>com.rudderstack.sdk.java.analytics</groupId>
2025
<artifactId>analytics</artifactId>
21-
<version>3.0.1</version>
26+
<version>x.y.z</version>
2227
</dependency>
2328

2429
```
2530

2631
*or if you're using Gradle:*
2732

2833
```bash
29-
implementation 'com.rudderstack.sdk.java.analytics:analytics:3.0.0'
34+
implementation 'com.rudderstack.sdk.java.analytics:analytics:x.y.z'
3035
```
3136

3237
## Initializing ```RudderClient```
3338

3439
```java
35-
RudderAnalytics analytics = RudderAnalytics
36-
.builder("<WRITE_KEY>")
37-
.setDataPlaneUrl("<DATA_PLANE_URL>")
38-
.build();
40+
RudderAnalytics analytics=RudderAnalytics
41+
.builder("<WRITE_KEY>")
42+
.setDataPlaneUrl("<DATA_PLANE_URL>")
43+
.build();
3944
```
4045

4146
## Sending events
4247

4348
```java
44-
Map<String, Object> map = new HashMap<>();
45-
map.put("name", "John Marshal");
46-
map.put("email", "john@example.com");
47-
analytics.enqueue(IdentifyMessage.builder()
49+
Map<String, Object> map=new HashMap<>();
50+
map.put("name","John Marshal");
51+
map.put("email","john@example.com");
52+
analytics.enqueue(IdentifyMessage.builder()
4853
.userId("6754ds7d9")
4954
.traits(map)
50-
);
55+
);
5156
```
5257

53-
For more information on the different types of events supported by the Java SDK, refer to our [docs](https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-java-sdk/).
58+
For more information on the different types of events supported by the Java SDK, refer to
59+
our [docs](https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-java-sdk/).
5460

5561
## Contact Us
5662

57-
If you come across any issues while configuring or using this SDK, feel free to start a conversation on our [Slack](https://resources.rudderstack.com/join-rudderstack-slack) channel. We will be happy to help you.
63+
If you come across any issues while configuring or using this SDK, feel free to start a conversation on
64+
our [Slack](https://resources.rudderstack.com/join-rudderstack-slack) channel. We will be happy to help you.

analytics-cli/pom.xml

Lines changed: 0 additions & 104 deletions
This file was deleted.

0 commit comments

Comments
 (0)