Skip to content

Commit 6eb27ac

Browse files
authored
chore(release): v3.1.0
chore(release): v3.1.0
2 parents e312f6f + f1b455a commit 6eb27ac

31 files changed

Lines changed: 1131 additions & 1241 deletions

File tree

.circleci/config.yml

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

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ A clear and concise description of what you expected to happen.
2929
If applicable, add screenshots to help explain your problem.
3030

3131
**Version of the _Java_ SDK**
32-
Please mention the version of the Rudder Java SDK you are using (e.g., Java SDK v1.0.0).
32+
Please mention the version of the Rudderstack Java SDK you are using (e.g., Java SDK v1.0.0).
3333

3434
**SDK initialisation snippet**
3535
Share the code snippet used for initializing the Java SDK.

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

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

17-
- name: Set up JDK 11
17+
- name: Set up JDK 20
1818
uses: actions/setup-java@v3
1919
with:
20-
java-version: '11'
20+
java-version: '20'
2121
distribution: 'temurin'
2222

2323
- name: Set up Maven

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

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

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Version 3.1.0 (December 14, 2023)
2+
- [New](https://github.com/rudderlabs/rudder-sdk-java/pull/86) Update Java to the latest version
3+
- [New](https://github.com/rudderlabs/rudder-sdk-java/pull/83) Improve links in Rudderstack documentation
4+
15
# Version 3.0.0 (January 9, 2023)
26
- [New](https://github.com/rudderlabs/rudder-sdk-java/pull/43) Add CI feature
37
- [New](https://github.com/rudderlabs/rudder-sdk-java/pull/41) Add support for channel object in individual payload
@@ -45,7 +49,7 @@
4549

4650
- [Fix](https://github.com/rudderlabs/rudder-sdk-java/pull/223) cli wasnt setting event fields
4751
- [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\)
52+
- [Fix](https://github.com/rudderlabs/rudder-sdk-java/pull/221) Require either userId or anonymousId \(aligns with other Rudderstack SDK conventions\)
4953

5054
- [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.
5155

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: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,56 +2,62 @@
22

33
# What is RudderStack?
44

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

78
## RudderStack's Java SDK
89

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.
10+
RudderStack’s Java SDK allows you to track your customer event data from your Java code. Once enabled, the event requests hit
11+
the RudderStack servers. RudderStack then routes the events to the specified destination platforms as configured by you.
1012

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

1316
## Getting Started with the RudderStack Java SDK
1417

1518
*Add to `pom.xml`:*
1619

1720
```xml
21+
1822
<dependency>
1923
<groupId>com.rudderstack.sdk.java.analytics</groupId>
2024
<artifactId>analytics</artifactId>
21-
<version>3.0.0</version>
25+
<version>3.1.0</version>
2226
</dependency>
2327

2428
```
2529

2630
*or if you're using Gradle:*
2731

2832
```bash
29-
implementation 'com.rudderstack.sdk.java.analytics:analytics:3.0.0'
33+
implementation 'com.rudderstack.sdk.java.analytics:analytics:3.1.0'
3034
```
3135

3236
## Initializing ```RudderClient```
3337

3438
```java
35-
RudderAnalytics analytics = RudderAnalytics
36-
.builder("<WRITE_KEY>")
37-
.setDataPlaneUrl("<DATA_PLANE_URL>")
38-
.build();
39+
RudderAnalytics analytics=RudderAnalytics
40+
.builder("<WRITE_KEY>")
41+
.setDataPlaneUrl("<DATA_PLANE_URL>")
42+
.build();
3943
```
4044

4145
## Sending events
4246

4347
```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()
48+
Map<String, Object> map=new HashMap<>();
49+
map.put("name","John Marshal");
50+
map.put("email","john@example.com");
51+
analytics.enqueue(IdentifyMessage.builder()
4852
.userId("6754ds7d9")
4953
.traits(map)
50-
);
54+
);
5155
```
5256

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/).
57+
For more information on the different types of events supported by the Java SDK, refer to
58+
our [docs](https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-java-sdk/).
5459

5560
## Contact Us
5661

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

analytics-cli/pom.xml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<artifactId>analytics-parent</artifactId>
88
<groupId>com.rudderstack.sdk.java.analytics</groupId>
9-
<version>3.0.0</version>
9+
<version>${revision}</version>
1010
</parent>
1111

1212
<artifactId>analytics-cli</artifactId>
@@ -88,7 +88,7 @@
8888
<plugin>
8989
<groupId>org.jacoco</groupId>
9090
<artifactId>jacoco-maven-plugin</artifactId>
91-
<version>0.8.8</version>
91+
<version>0.8.11</version>
9292
<executions>
9393
<execution>
9494
<id>generate-aggregate-report</id>
@@ -99,6 +99,14 @@
9999
</execution>
100100
</executions>
101101
</plugin>
102+
<plugin>
103+
<groupId>org.apache.maven.plugins</groupId>
104+
<artifactId>maven-compiler-plugin</artifactId>
105+
<configuration>
106+
<source>19</source>
107+
<target>19</target>
108+
</configuration>
109+
</plugin>
102110
</plugins>
103111
</build>
104112
</project>

analytics-core/pom.xml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.rudderstack.sdk.java.analytics</groupId>
99
<artifactId>analytics-parent</artifactId>
10-
<version>3.0.0</version>
10+
<version>${revision}</version>
1111
</parent>
1212

1313
<artifactId>analytics-core</artifactId>
@@ -21,16 +21,15 @@
2121
<dependency>
2222
<groupId>com.squareup.okio</groupId>
2323
<artifactId>okio</artifactId>
24-
<version>2.9.0</version>
24+
<version>3.4.0</version>
2525
</dependency>
2626
<dependency>
2727
<groupId>com.google.code.gson</groupId>
2828
<artifactId>gson</artifactId>
2929
</dependency>
3030
<dependency>
3131
<groupId>com.google.code.findbugs</groupId>
32-
<artifactId>findbugs</artifactId>
33-
<scope>provided</scope>
32+
<artifactId>jsr305</artifactId>
3433
</dependency>
3534
<dependency>
3635
<groupId>com.google.auto.value</groupId>
@@ -73,4 +72,16 @@
7372
<scope>test</scope>
7473
</dependency>
7574
</dependencies>
75+
<build>
76+
<plugins>
77+
<plugin>
78+
<groupId>org.apache.maven.plugins</groupId>
79+
<artifactId>maven-compiler-plugin</artifactId>
80+
<configuration>
81+
<source>19</source>
82+
<target>19</target>
83+
</configuration>
84+
</plugin>
85+
</plugins>
86+
</build>
7687
</project>

0 commit comments

Comments
 (0)