Skip to content

Commit

Permalink
v.0.0.6
Browse files Browse the repository at this point in the history
Conditionally disable validation
  • Loading branch information
vontikov committed May 13, 2021
1 parent 5219604 commit ab95234
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 5 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ apply plugin: "com.github.vontikov.sbe-generator-plugin"
#### Full configuration

```Groovy
//
// build.gradle
//
Expand Down Expand Up @@ -81,7 +82,9 @@ sbeGenerator {
javaOptions = [:]
cppOptions = [:]
}
// enable or disable validation (enabled by default)
shouldValidate = true
```

Java or CPP options should be provided in Groovy map format.
Expand All @@ -99,7 +102,7 @@ The full list of options is [here](https://github.com/real-logic/simple-binary-e
#
# gradle.properties
#
sbe_version=1.20.3
sbe_version=1.22.0
```

#### SBE Generator tasks
Expand All @@ -122,7 +125,7 @@ https://github.com/vontikov/sbe-example
License (See LICENSE file for full license)
------------------------------------------

Copyright 2018-2020 Vladimir Ontikov
Copyright 2018-2021 Vladimir Ontikov

Licensed under the MIT License

Expand Down
9 changes: 9 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
v0.0.6
------
Upgrade to SBE 1.22.0
Upgrade to JUnit 4.13.2
Exlude JCenter repository
Upgrade to Groovy 3.0.8
Upgrade to plugin-publish-plugin 0.14.0
Conditionally disable XML validation

v0.0.5
------

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
artifact_name=sbe-generator-plugin
artifact_group=com.github.vontikov
artifact_version=0.0.5
artifact_version=0.0.6
2 changes: 2 additions & 0 deletions src/main/groovy/com/github/vontikov/Const.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ final class Const {
static final DEFAULT_JAVA_SOURCE_COMPATIBILITY = '1.8'
static final DEFAULT_JAVA_TARGET_COMPATIBILITY = '1.8'

static final DEFAULT_SHOULD_VALIDATE = true

static final PROJECT_PROPERTY_SBE_VERSION = 'sbe_version'

private Const() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ class SbeGeneratorPlugin implements Plugin<Project> {
sbeClasspath = sbeClasspath(project, ext, cfg)
input = tree(project, ext.src).files.absolutePath.toSet()

validateTask(project)
def shouldValidate = ext.properties.get('shouldValidate')
if (shouldValidate) {
validateTask(project)
}

genJavaTask(project, ext)
compileJavaTask(project, ext)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class SbeGeneratorPluginExtension {
def javaOptions = [:]
def cppOptions = [:]

def shouldValidate = DEFAULT_SHOULD_VALIDATE

SbeGeneratorPluginExtension(Project project) {
}

Expand Down

0 comments on commit ab95234

Please sign in to comment.