Skip to content

Commit

Permalink
2.0.32 release
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed May 16, 2023
1 parent 1b81efd commit 2b7cde1
Show file tree
Hide file tree
Showing 27 changed files with 911 additions and 67 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2</artifactId>
<version>2.0.31</version>
<version>2.0.32</version>
</dependency>
```

`Gradle`:

```groovy
dependencies {
implementation 'com.alibaba.fastjson2:fastjson2:2.0.31'
implementation 'com.alibaba.fastjson2:fastjson2:2.0.32'
}
```

Expand All @@ -67,15 +67,15 @@ dependencies {
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>2.0.31</version>
<version>2.0.32</version>
</dependency>
```

`Gradle`:

```groovy
dependencies {
implementation 'com.alibaba:fastjson:2.0.31'
implementation 'com.alibaba:fastjson:2.0.32'
}
```

Expand All @@ -89,7 +89,7 @@ dependencies {
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2-kotlin</artifactId>
<version>2.0.31</version>
<version>2.0.32</version>
</dependency>

<!-- 有些场景需要依赖kotlin-reflect -->
Expand All @@ -104,7 +104,7 @@ dependencies {

```kotlin
dependencies {
implementation("com.alibaba.fastjson2:fastjson2-kotlin:2.0.31")
implementation("com.alibaba.fastjson2:fastjson2-kotlin:2.0.32")
}
```

Expand All @@ -118,30 +118,30 @@ dependencies {
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2-extension-spring5</artifactId>
<version>2.0.31</version>
<version>2.0.32</version>
</dependency>
```

```xml
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2-extension-spring6</artifactId>
<version>2.0.31</version>
<version>2.0.32</version>
</dependency>
```

`Gradle`:

```groovy
dependencies {
implementation 'com.alibaba.fastjson2:fastjson2-extension-spring5:2.0.31'
implementation 'com.alibaba.fastjson2:fastjson2-extension-spring5:2.0.32'
}
```


```groovy
dependencies {
implementation 'com.alibaba.fastjson2:fastjson2-extension-spring6:2.0.31'
implementation 'com.alibaba.fastjson2:fastjson2-extension-spring6:2.0.32'
}
```

Expand Down
16 changes: 8 additions & 8 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ Related Documents:
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2</artifactId>
<version>2.0.31</version>
<version>2.0.32</version>
</dependency>
```

`Gradle`:

```groovy
dependencies {
implementation 'com.alibaba.fastjson2:fastjson2:2.0.31'
implementation 'com.alibaba.fastjson2:fastjson2:2.0.32'
}
```

Expand All @@ -73,15 +73,15 @@ If you are using `fastjson 1.2.x`, you can use the compatibility package. The co
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>2.0.31</version>
<version>2.0.32</version>
</dependency>
```

`Gradle`:

```groovy
dependencies {
implementation 'com.alibaba:fastjson:2.0.31'
implementation 'com.alibaba:fastjson:2.0.32'
}
```

Expand All @@ -95,15 +95,15 @@ If your project uses `kotlin`, you can use the `Fastjson-Kotlin` module, and use
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2-kotlin</artifactId>
<version>2.0.31</version>
<version>2.0.32</version>
</dependency>
```

`Kotlin Gradle`:

```kotlin
dependencies {
implementation("com.alibaba.fastjson2:fastjson2-kotlin:2.0.31")
implementation("com.alibaba.fastjson2:fastjson2-kotlin:2.0.32")
}
```

Expand All @@ -117,15 +117,15 @@ If your project uses a framework such as `SpringFramework`, you can use the `fas
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2-extension</artifactId>
<version>2.0.31</version>
<version>2.0.32</version>
</dependency>
```

`Gradle`:

```groovy
dependencies {
implementation 'com.alibaba.fastjson2:fastjson2-extension:2.0.31'
implementation 'com.alibaba.fastjson2:fastjson2-extension:2.0.32'
}
```

Expand Down
2 changes: 1 addition & 1 deletion adapter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>fastjson2-parent</artifactId>
<groupId>com.alibaba.fastjson2</groupId>
<version>2.0.32-SNAPSHOT</version>
<version>2.0.32</version>
</parent>

<artifactId>fastjson2-adapter</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions android-test/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ android {

dependencies {
implementation 'com.alibaba:fastjson:1.1.73.android'
implementation 'com.alibaba.fastjson2:fastjson2:2.0.32-SNAPSHOT'
implementation 'com.alibaba.fastjson2:fastjson2-kotlin:2.0.32-SNAPSHOT'
implementation 'com.alibaba.fastjson2:fastjson2:2.0.32'
implementation 'com.alibaba.fastjson2:fastjson2-kotlin:2.0.32'
implementation 'org.jetbrains.kotlin:kotlin-reflect:1.8.10'

implementation 'com.fasterxml.jackson.core:jackson-annotations:2.14.2'
Expand Down
2 changes: 1 addition & 1 deletion benchmark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2-parent</artifactId>
<version>2.0.32-SNAPSHOT</version>
<version>2.0.32</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
public class GenReport {
public void gen() throws Exception {
File dir = new File("/Users/wenshao/Work/git/fastjson2/docs/benchmark/");
File file = new File(dir, "benchmark_2.0.31_raw.md");
File outFile = new File(dir, "benchmark_2.0.31.md");
File file = new File(dir, "benchmark_2.0.32_raw.md");
File outFile = new File(dir, "benchmark_2.0.32.md");

Map<String, BenchmarkResult> benchResults = new LinkedHashMap<>();

Expand Down Expand Up @@ -159,7 +159,7 @@ private static void gen(
Double score = libResult.scores.get(jdk);
out.print("\t|\t");
out.print(score);
if (i != 0) {
if (i != 0 && score != null) {
double percent = score / firstScore;
out.print(" (" + new DecimalFormat("#,##0.##%").format(percent) + ")");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@

public class ReadResult {
public static void main(String[] args) throws Exception {
File outFile = new File("/Users/wenshao/Work/git/fastjson2/docs/benchmark/benchmark_2.0.31_raw.md");
File outFile = new File("/Users/wenshao/Work/git/fastjson2/docs/benchmark/benchmark_2.0.32_raw.md");
// File file = new File("/Users/wenshao/Downloads/result_2.0.25.out");

Map<String, String> files = new LinkedHashMap<>();
files.put("ecs.g8i.xlarge", "/Users/wenshao/Downloads/result_2.0.31_g8.out");
files.put("ecs.g7.xlarge", "/Users/wenshao/Downloads/result_2.0.31_g7.out");
files.put("ecs.g8m.xlarge", "/Users/wenshao/Downloads/result_2.0.31_g8m.out");
files.put("OrangePI5", "/Users/wenshao/Downloads/result_2.0.31_orangepi5.out");
files.put("ecs.g8i.xlarge", "/Users/wenshao/Downloads/result_2.0.32_g8.out");
files.put("ecs.g7.xlarge", "/Users/wenshao/Downloads/result_2.0.32_g7.out");
files.put("ecs.g8m.xlarge", "/Users/wenshao/Downloads/result_2.0.32_g8m.out");
// files.put("OrangePI5", "/Users/wenshao/Downloads/result_2.0.31_orangepi5.out");

PrintStream out = new PrintStream(new FileOutputStream(outFile));
files.forEach((k, v) -> {
Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2-parent</artifactId>
<version>2.0.32-SNAPSHOT</version>
<version>2.0.32</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Loading

0 comments on commit 2b7cde1

Please sign in to comment.