Skip to content

Commit

Permalink
Fix build warnings
Browse files Browse the repository at this point in the history
Fix the following build warnings:

~~~
> Task :compileKotlin
w: Flag is not supported by this version of the compiler: -Xuse-experimental=kotlin.Experimental
~~~

~~~
> Task :virtual-device:compileKotlin
w: Argument -Xopt-in is deprecated. Please use -opt-in instead
~~~

Signed-off-by: Diego Rondini <diego.rondini@kynetics.it>
  • Loading branch information
diegorondini committed Feb 22, 2024
1 parent 1996ea1 commit f902a39
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ project(':virtual-device'){
mainClassName = 'org.eclipse.hara.ddiclient.virtualdevice.MainKt'

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions.freeCompilerArgs += ["-Xopt-in=kotlin.RequiresOptIn"]
kotlinOptions.freeCompilerArgs += ["-opt-in=kotlin.RequiresOptIn"]
}
}

Expand Down Expand Up @@ -253,10 +253,6 @@ test.finalizedBy stopHawkbitServer
group 'org.eclipse.hara.hara-ddiclient'
version app_version

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions.freeCompilerArgs += ["-Xuse-experimental=kotlin.Experimental"]
}

test {
useTestNG()

Expand Down

0 comments on commit f902a39

Please sign in to comment.