Skip to content

Commit 376fcf2

Browse files
[TH2-5262] decodeDelimiter setting option added. (#7)
* Updated th2 gradle plugin `0.1.6` (th2-bom: `4.9.0`) * added scan and dependabot workflows * migrated to gradle 8.11.1
1 parent 29126ec commit 376fcf2

File tree

16 files changed

+714
-347
lines changed

16 files changed

+714
-347
lines changed

.github/dependabot.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: gradle
4+
directory: /
5+
reviewers:
6+
- Nikita-Smirnov-Exactpro
7+
- OptimumCode
8+
labels:
9+
- dependencies
10+
schedule:
11+
interval: daily
12+
- package-ecosystem: github-actions
13+
directory: /
14+
reviewers:
15+
- Nikita-Smirnov-Exactpro
16+
- OptimumCode
17+
labels:
18+
- dependencies
19+
schedule:
20+
interval: daily

.github/workflows/ci-unwelcome-words.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55

66
jobs:
77
test:
8+
if: github.actor != 'dependabot[bot]'
89
runs-on: ubuntu-latest
910
steps:
1011
- uses: actions/checkout@v4

.github/workflows/scan.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Scan licenses and vulnerabilities in java project
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * 1'
7+
8+
jobs:
9+
build:
10+
uses: th2-net/.github/.github/workflows/compound-java-scan.yml@main
11+
secrets:
12+
nvd-api-key: ${{ secrets.NVD_APIKEY }}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM gradle:8.7-jdk11 AS build
1+
FROM gradle:8.11.1-jdk11 AS build
22
ARG release_version
33
COPY ./ .
44
RUN gradle --no-daemon clean build dockerPrepare -Prelease_version=${release_version}

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# th2-codec-fix-ng 0.1.0
1+
# th2-codec-fix-ng 0.1.1
22

33
This codec can be used in dirty mode for decoding and encoding messages via the FIX protocol.
44

@@ -14,7 +14,8 @@ Configuration example.
1414
```yaml
1515
beginString: FIXT.1.1
1616
dictionary: fix_dictionary.xml
17-
charset: US_ASCII
17+
charset: US-ASCII
18+
decodeDelimiter: \u0001
1819
dirtyMode: false
1920
decodeValuesToStrings: true
2021
decodeComponentsToNestedMaps: true
@@ -27,7 +28,10 @@ default value: `FIXT.1.1`. Value to put into the `BeginString` field (tag: 8) wh
2728
required value. XML file containing the FIX dictionary.
2829

2930
#### charset
30-
default value: `US_ASCII`. Charset for reading and writing FIX fields.
31+
default value: `US-ASCII`. Charset for reading and writing FIX fields.
32+
33+
#### decodeDelimiter
34+
default value: `\u0001`. Delimiter character from `US-ASCII` charset.
3135

3236
#### dirtyMode
3337
default value: `false`. If `true`, processes all messages in dirty mode (generates warnings on invalid messages and continues processing). If `false`, only messages that contain the `encode-mode: dirty` property will be processed in dirty mode.
@@ -42,12 +46,17 @@ default value: `true`. If `true`, decodes `components` to nested maps instead of
4246
Component benchmark results available [here](docs/benchmarks/jmh-benchmark.md).
4347

4448
## Release notes
49+
50+
### 0.1.1
51+
+ `decodeDelimiter` setting option added.
52+
+ Updated th2 gradle plugin `0.1.6` (th2-bom: `4.9.0`)
53+
4554
### 0.1.0
4655
+ Dirty mode added.
4756
+ `dirtyMode` setting option added.
4857
+ `decodeValuesToStrings` setting option added.
4958
+ JMH benchmarks added
50-
+ Migrate to th2 gradle plugin `0.1.2` (th2-bom:4.7.0)
59+
+ Migrate to th2 gradle plugin `0.1.2` (th2-bom: `4.7.0`)
5160
+ Updated th2-common: `5.11.0-dev`
5261
+ Updated th2-codec: `5.5.0-dev`
5362
+ Updated sailfish: `3.3.241`

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id "application"
3-
id "com.exactpro.th2.gradle.component" version "0.1.2"
3+
id "com.exactpro.th2.gradle.component" version "0.1.6"
44
id "org.jetbrains.kotlin.jvm" version "$kotlin_version"
55
id "org.jetbrains.kotlin.kapt" version "$kotlin_version"
66
id "me.champeau.jmh" version "0.7.2"
@@ -95,7 +95,7 @@ dependencies {
9595
jmh "org.openjdk.jmh:jmh-generator-annprocess:$jmhVersion"
9696
jmh "org.openjdk.jmh:jmh-generator-bytecode:$jmhVersion"
9797

98-
testImplementation "org.junit.jupiter:junit-jupiter:5.11.0"
98+
testImplementation "org.junit.jupiter:junit-jupiter:5.11.3"
9999
testImplementation "org.jetbrains.kotlin:kotlin-test-junit5"
100100
testImplementation "org.assertj:assertj-core:3.26.3"
101101
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
kotlin.code.style=official
22
kotlin_version=1.8.22
3-
release_version=0.1.0
3+
release_version=0.1.1
44

55
vcs_url=https://github.com/th2-net/th2-codec-fix-ng
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
4-
zipStorePath=wrapper/dists
5-
zipStoreBase=GRADLE_USER_HOME
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)