Skip to content

Commit

Permalink
[TH2-5262] decodeDelimiter setting option added.
Browse files Browse the repository at this point in the history
* Updated th2 gradle plugin `0.1.6` (th2-bom: `4.9.0`)
* added scan and dependabot workflows
* migrated to gradle 8.11.1
  • Loading branch information
Nikita-Smirnov-Exactpro committed Dec 13, 2024
1 parent 29126ec commit 18b6507
Show file tree
Hide file tree
Showing 16 changed files with 611 additions and 285 deletions.
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2
updates:
- package-ecosystem: gradle
directory: /
reviewers:
- Nikita-Smirnov-Exactpro
- OptimumCode
labels:
- dependencies
schedule:
interval: daily
- package-ecosystem: github-actions
directory: /
reviewers:
- Nikita-Smirnov-Exactpro
- OptimumCode
labels:
- dependencies
schedule:
interval: daily
1 change: 1 addition & 0 deletions .github/workflows/ci-unwelcome-words.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

jobs:
test:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Scan licenses and vulnerabilities in java project

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1'

jobs:
build:
uses: th2-net/.github/.github/workflows/compound-java-scan.yml@main
secrets:
nvd-api-key: ${{ secrets.NVD_APIKEY }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gradle:8.7-jdk11 AS build
FROM gradle:8.11.1-jdk11 AS build
ARG release_version
COPY ./ .
RUN gradle --no-daemon clean build dockerPrepare -Prelease_version=${release_version}
Expand Down
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# th2-codec-fix-ng 0.1.0
# th2-codec-fix-ng 0.1.1

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

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

#### charset
default value: `US_ASCII`. Charset for reading and writing FIX fields.
default value: `US-ASCII`. Charset for reading and writing FIX fields.

#### decodeDelimiter
default value: `\u0001`. Delimiter character from `US-ASCII` charset.

#### dirtyMode
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.
Expand All @@ -42,12 +46,17 @@ default value: `true`. If `true`, decodes `components` to nested maps instead of
Component benchmark results available [here](docs/benchmarks/jmh-benchmark.md).

## Release notes

### 0.1.1
+ `decodeDelimiter` setting option added.
+ Updated th2 gradle plugin `0.1.6` (th2-bom: `4.9.0`)

### 0.1.0
+ Dirty mode added.
+ `dirtyMode` setting option added.
+ `decodeValuesToStrings` setting option added.
+ JMH benchmarks added
+ Migrate to th2 gradle plugin `0.1.2` (th2-bom:4.7.0)
+ Migrate to th2 gradle plugin `0.1.2` (th2-bom: `4.7.0`)
+ Updated th2-common: `5.11.0-dev`
+ Updated th2-codec: `5.5.0-dev`
+ Updated sailfish: `3.3.241`
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id "application"
id "com.exactpro.th2.gradle.component" version "0.1.2"
id "com.exactpro.th2.gradle.component" version "0.1.6"
id "org.jetbrains.kotlin.jvm" version "$kotlin_version"
id "org.jetbrains.kotlin.kapt" version "$kotlin_version"
id "me.champeau.jmh" version "0.7.2"
Expand Down Expand Up @@ -95,7 +95,7 @@ dependencies {
jmh "org.openjdk.jmh:jmh-generator-annprocess:$jmhVersion"
jmh "org.openjdk.jmh:jmh-generator-bytecode:$jmhVersion"

testImplementation "org.junit.jupiter:junit-jupiter:5.11.0"
testImplementation "org.junit.jupiter:junit-jupiter:5.11.3"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit5"
testImplementation "org.assertj:assertj-core:3.26.3"
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kotlin.code.style=official
kotlin_version=1.8.22
release_version=0.1.0
release_version=0.1.1

vcs_url=https://github.com/th2-net/th2-codec-fix-ng
8 changes: 5 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 18b6507

Please sign in to comment.