| 1 |
plugins { |
| 2 |
id 'java' |
| 3 |
id 'com.igormaznitsa.gradle.jbbp' version "${jbbp_plugin_version}" |
| 4 |
} |
| 5 |
|
| 6 |
group = 'com.igormaznitsa.jbbp.gradle.test' |
| 7 |
version = '0.0.0-SNAPSHOT' |
| 8 |
|
| 9 |
repositories { |
| 10 |
mavenLocal() |
| 11 |
mavenCentral() |
| 12 |
} |
| 13 |
|
| 14 |
dependencies { |
| 15 |
implementation "com.igormaznitsa:jbbp:${jbbp_plugin_version}" |
| 16 |
testImplementation platform('org.junit:junit-bom:5.9.1') |
| 17 |
testImplementation 'org.junit.jupiter:junit-jupiter' |
| 18 |
} |
| 19 |
|
| 20 |
test { |
| 21 |
useJUnitPlatform() |
| 22 |
} |
| 23 |
|
| 24 |
import com.igormaznitsa.jbbp.plugin.common.converters.ParserFlags |
| 25 |
|
| 26 |
jbbp { |
| 27 |
headComment = 'Free license' |
| 28 |
addBinAnnotations = true |
| 29 |
addGettersSetters = true |
| 30 |
customTypes = ['some'] |
| 31 |
interfaces = ['java.lang.Runnable'] |
| 32 |
customText = 'public void run () {}' |
| 33 |
parserFlags = [ParserFlags.SKIP_REMAINING_FIELDS_IF_EOF] |
| 34 |
} |
| 35 |
|
| 36 |
compileJava.dependsOn(jbbpGenerate) |