Verified Commit 8fc11011 authored by AtjonTV's avatar AtjonTV

Build: Update Kotlin to 1.3.70

* Replaced "@Experimental" with "@RequiresOptIn"
* Replaced "@UseExperimental" with "@OptIn"
* Use OptIn compiler flag
parent a9ed8803
......@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- JsonKraken 2.0 dependency
### Changed
- Upgraded Kotlin from 1.3.61 to 1.3.70
### Deprecated
### Removed
- JsonKraken 1.0 Source
......
......@@ -49,7 +49,7 @@ jar {
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions.freeCompilerArgs += ["-Xuse-experimental=kotlin.Experimental"]
kotlinOptions.freeCompilerArgs += ["-Xopt-in=kotlin.RequiresOptIn"]
}
task sourcesJar(type: Jar, dependsOn: classes) {
......
......@@ -4,7 +4,7 @@ kotlin.code.style=official
klib_version=5.0.0-dev.3
# Versions
kotlin_version=1.3.61
kotlin_version=1.3.70
shadow_version=5.2.0
dokka_version=0.10.0
jsonkraken_version=2.0.0
......
......@@ -29,7 +29,7 @@
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk8</artifactId>
<version>1.3.61</version>
<version>1.3.70</version>
<scope>runtime</scope>
</dependency>
<dependency>
......
......@@ -60,7 +60,7 @@ object Konfig {
* @since 4.1.0 (Konfig 20.2)
* @author Thomas Obernosterer
*/
@UseExperimental(ExperimentalUnsignedTypes::class)
@OptIn(ExperimentalUnsignedTypes::class)
fun parse(data: List<String>): Map<String, Any> {
val result: MutableMap<String, Any> = HashMap()
var line = 0
......
package klib.annotations
import kotlin.Experimental
/**
* Experimental Annotation for Experimental Public API Interfaces
*
......@@ -9,5 +7,5 @@ import kotlin.Experimental
* @author Nils Rider
*/
@Target(AnnotationTarget.CLASS)
@Experimental(Experimental.Level.WARNING)
@RequiresOptIn("Experimental API that can change at any time", level = RequiresOptIn.Level.WARNING)
annotation class Experimental
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment