Paul Woitaschek
11/13/2018, 10:38 AMplastiv
11/13/2018, 10:43 AMsubprojects {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
freeCompilerArgs += ['-progressive']
}
}
}
gildor
11/13/2018, 10:47 AMPaul Woitaschek
11/13/2018, 11:10 AMtasks.withType(KotlinCompile::class) {
kotlinOptions.freeCompilerArgs += "-progressive"
}
Paul Woitaschek
11/13/2018, 11:11 AMPaul Woitaschek
11/13/2018, 11:11 AMgildor
11/13/2018, 12:01 PMtasks.withType<KotlinCompile> {}
gildor
11/13/2018, 12:05 PMgildor
11/13/2018, 12:06 PMgildor
11/13/2018, 12:06 PMdsavvinov
11/13/2018, 1:14 PMyou will have depreciation warning for all those cases, so if you don’t have compiler warnings, nothing will change for you projectI’d like to note there can be (a very few) exceptions. They are carefully handpicked and manually reviewed, and we only resort to it when deprecated cases are very esoteric, and the proper deprecation warning would be way too expensive to implement
dsavvinov
11/13/2018, 1:19 PMWould be nice to have list of all related changes of progressive modeYes, that’s a nice idea. I’ve filed a YT issue for discussing it: https://youtrack.jetbrains.com/issue/KT-28171
dsavvinov
11/13/2018, 1:21 PM-proressive
-enabled changes in 1.3.0 yet, so currently it is equal to non-progressive mode. You can start using it now and track release notes; all changes, included in the -progressive
will be mentioned here.Paul Woitaschek
11/13/2018, 1:22 PMPaul Woitaschek
11/13/2018, 1:22 PM0.5 in 0..1
for exampledsavvinov
11/13/2018, 1:24 PMPaul Woitaschek
11/13/2018, 1:27 PMdsavvinov
11/13/2018, 1:29 PM@Deprecated
mechanism is public, meaning that any of your dependencies may have deprecated declarations, so turning error on for all declarations marked with @Deprecated
maybe too much. But we’ll consider it, it definitely sounds like a sane request!gildor
11/13/2018, 1:41 PM