File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
import org.jetbrains.kotlin.config.KotlinCompilerVersion
2
2
import org.jetbrains.kotlin.gradle.dsl.*
3
3
import org.gradle.kotlin.dsl.*
4
+ import org.gradle.kotlin.dsl.withType
5
+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
6
+ import kotlin.collections.joinToString
4
7
5
8
buildscript {
6
9
if (shouldUseLocalMaven(rootProject)) {
@@ -171,3 +174,10 @@ if (isSnapshotTrainEnabled(rootProject)) {
171
174
// Report Kotlin compiler version when building project
172
175
println (" Using Kotlin compiler version: ${KotlinCompilerVersion .VERSION } " )
173
176
}
177
+
178
+ tasks.withType<KotlinCompilationTask <* >>().configureEach {
179
+ doFirst {
180
+ logger.info(" Added Kotlin compiler flags: ${compilerOptions.freeCompilerArgs.get().joinToString(" , " )} " )
181
+ logger.info(" allWarningsAsErrors=${compilerOptions.allWarningsAsErrors.get()} " )
182
+ }
183
+ }
Original file line number Diff line number Diff line change @@ -207,7 +207,5 @@ fun KotlinCommonCompilerOptions.addExtraCompilerFlags(project: Project) {
207
207
}
208
208
extraOptions?.forEach { option ->
209
209
freeCompilerArgs.add(option)
210
- LOGGER .info(""" Adding extra compiler flags '$extraOptions ' for a compilation in the project $${project.name} """ )
211
210
}
212
- }
213
-
211
+ }
You can’t perform that action at this time.
0 commit comments