3 date: 2019-09-27T18:51:08+02:00
14 The `useStreamApi` configuration controls whether stream API used in generated code. Note that the diamond operator was introduced with **Java 8**.
16 ## Configuration Options
20 The default value of the `useStreamApi` configuration option is `true` which enables the use of the stream API in generated code.
24 Changing the `useStreamApi` configuration option to `false` disables the use of the stream API in generated code.
28 - [apiVersion](../apiversion/): Controls which Java APIs can be used in generated code.
29 - [useDiamondOperator](../usediamondoperator/): Controls whether the diamond operator is used in generated code.
30 - [useFinal](../usefinal/): Controls whether parameters and variables are declared `final`.
31 - [useGenerics](../usegenerics/): Controls whether generic type parameters are used in generated code.
32 - [useRecords](../userecords/): Controls whether records are used in generated code.
33 - [useTextBlocks](../usetextblocks/): Controls whether text blocks are used in generated code.
34 - [useVar](../usevar/): Controls whether the `var` keyword is used in generated code.
40 In order to use `YoSQL` together with [Maven](https://maven.apache.org/), take a look at the tooling [documentation for Maven](/tooling/maven/).
42 {{< maven/config/java/useStreamApi >}}
46 In order to use `YoSQL` together with [Gradle](https://gradle.org/), take a look at the tooling [documentation for Gradle](/tooling/gradle/).
51 id("wtf.metio.yosql") version "2021.4.21"
56 useStreamApi.set(false)
64 id "wtf.metio.yosql" version "2021.4.21"
76 In order to use `YoSQL` together with [Bazel](https://bazel.build/), take a look at the tooling [documentation for Bazel](/tooling/bazel/).
80 In order to use YoSQL on the command line, take a look at the tooling [documentation for CLI](/tooling/cli/).
83 $ yosql --java-use-stream-api=false
86 The shorter form is available as well:
89 $ yosql --use-stream-api=false