You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See [config/self-managed/README.md](https://github.com/apache/kafka/blob/trunk/config/self-managed/README.md).
88
+
84
89
### Cleaning the build ###
85
90
./gradlew clean
86
91
@@ -125,6 +130,12 @@ build directory (`${project_dir}/bin`) clashes with Kafka's scripts directory an
125
130
to avoid known issues with this configuration.
126
131
127
132
### Publishing the jar for all version of Scala and for all projects to maven ###
133
+
The recommended command is:
134
+
135
+
./gradlewAll publish
136
+
137
+
For backwards compatibility, the following also works:
138
+
128
139
./gradlewAll uploadArchives
129
140
130
141
Please note for this to work you should create/update `${GRADLE_USER_HOME}/gradle.properties` (typically, `~/.gradle/gradle.properties`) and assign the following variables
@@ -167,6 +178,12 @@ Please note for this to work you should create/update user maven settings (typic
167
178
168
179
169
180
### Installing the jars to the local Maven repository ###
181
+
The recommended command is:
182
+
183
+
./gradlewAll publishToMavenLocal
184
+
185
+
For backwards compatibility, the following also works:
186
+
170
187
./gradlewAll install
171
188
172
189
### Building the test jar ###
@@ -221,6 +238,13 @@ The following options should be set with a `-P` switch, for example `./gradlew -
221
238
*`enableTestCoverage`: enables test coverage plugins and tasks, including bytecode enhancement of classes required to track said
222
239
coverage. Note that this introduces some overhead when running tests and hence why it's disabled by default (the overhead
223
240
varies, but 15-20% is a reasonable estimate).
241
+
*`scalaOptimizerMode`: configures the optimizing behavior of the scala compiler, the value should be one of `none`, `method`, `inline-kafka` or
242
+
`inline-scala` (the default is `inline-kafka`). `none` is the scala compiler default, which only eliminates unreachable code. `method` also
243
+
includes method-local optimizations. `inline-kafka` adds inlining of methods within the kafka packages. Finally, `inline-scala` also
244
+
includes inlining of methods within the scala library (which avoids lambda allocations for methods like `Option.exists`). `inline-scala` is
245
+
only safe if the Scala library version is the same at compile time and runtime. Since we cannot guarantee this for all cases (for example, users
246
+
may depend on the kafka jar for integration tests where they may include a scala library with a different version), we don't enable it by
247
+
default. See https://www.lightbend.com/blog/scala-inliner-optimizer for more details.
0 commit comments