Skip to content

Commit f9497b5

Browse files
Merge remote-tracking branch 'origin/develop' into fix/project-structure
🔒 Scanned for secrets using gitleaks 8.28.0
2 parents 0dffcfe + 1be0a0f commit f9497b5

32 files changed

Lines changed: 1113 additions & 1502 deletions

File tree

.circleci/config.yml

Lines changed: 0 additions & 134 deletions
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "BUG : <Title>"
5+
labels: bug, open source
6+
assignees: itsdebs
7+
---
8+
9+
**Describe the bug**
10+
Please provide the following information:
11+
12+
1. A clear and concise description of what the bug is
13+
2. Share the event payload
14+
3. Offer a minimal viable example to reproduce the issue
15+
4. Include the error's stack trace
16+
5. Mention the date when the issue began
17+
18+
**To Reproduce**
19+
Steps to reproduce the behaviour:
20+
21+
1. Initialise Java SDK
22+
2. Make events '....'
23+
3. See the error
24+
25+
**Expected behavior**
26+
A clear and concise description of what you expected to happen.
27+
28+
**Screenshots**
29+
If applicable, add screenshots to help explain your problem.
30+
31+
**Version of the _Java_ SDK**
32+
Please mention the version of the Rudderstack Java SDK you are using (e.g., Java SDK v1.0.0).
33+
34+
**SDK initialisation snippet**
35+
Share the code snippet used for initializing the Java SDK.
36+
37+
**Check for Correct Usage of _writeKey_ and _dataPlaneUrl_**
38+
Confirm that the correct `writeKey` and `dataPlaneUrl` are utilized during SDK initialization.

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

Lines changed: 6 additions & 6 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 11
17+
- name: Set up JDK 17
1818
uses: actions/setup-java@v3
1919
with:
20-
java-version: '11'
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
@@ -34,7 +34,7 @@ jobs:
3434
${{ runner.os }}-maven-
3535
3636
- name: Cache SonarCloud packages
37-
uses: actions/cache@v1
37+
uses: actions/cache@v3
3838
with:
3939
path: ~/.sonar/cache
4040
key: ${{ runner.os }}-sonar
@@ -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

.github/workflows/notion-pr-sync.yml

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

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
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
@@ -45,7 +52,7 @@
4552

4653
- [Fix](https://github.com/rudderlabs/rudder-sdk-java/pull/223) cli wasnt setting event fields
4754
- [Fix](https://github.com/rudderlabs/rudder-sdk-java/pull/222) e2e fix - traits was defined twice in command line opts
48-
- [Fix](https://github.com/rudderlabs/rudder-sdk-java/pull/221) Require either userId or anonymousId \(aligns with other Rudder SDK conventions\)
55+
- [Fix](https://github.com/rudderlabs/rudder-sdk-java/pull/221) Require either userId or anonymousId \(aligns with other Rudderstack SDK conventions\)
4956

5057
- [Fix](https://github.com/rudderlabs/rudder-sdk-java/pull/117): This fix gracefully retries temporary HTTP errors such as 5xx server errors. Previously such HTTP errors were not being retried.
5158

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2014 Rudder, Inc.
3+
Copyright (c) 2014 Rudderstack, Inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

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.0</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.

0 commit comments

Comments
 (0)