0.10.7 #33
@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- html builders for readme
|
- html builders for readme
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
- Kotlin 1.6.0
|
||||||
|
- Use indy lambdas by default #32
|
||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
|
|
||||||
|
@ -96,6 +96,7 @@ gradlePlugin {
|
|||||||
|
|
||||||
//publishing version catalog
|
//publishing version catalog
|
||||||
|
|
||||||
|
@Suppress("UnstableApiUsage")
|
||||||
catalog.versionCatalog {
|
catalog.versionCatalog {
|
||||||
from(files("gradle/libs.versions.toml"))
|
from(files("gradle/libs.versions.toml"))
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
[versions]
|
[versions]
|
||||||
tools = "0.10.6"
|
tools = "0.10.7"
|
||||||
kotlin = "1.6.0-RC2"
|
kotlin = "1.6.0"
|
||||||
atomicfu = "0.16.2"
|
atomicfu = "0.16.3"
|
||||||
binary-compatibility-validator = "0.7.1"
|
binary-compatibility-validator = "0.8.0"
|
||||||
changelog = "1.3.0"
|
changelog = "1.3.1"
|
||||||
dokka = "1.5.0"
|
dokka = "1.5.30"
|
||||||
kotlin-jupyter = "0.10.3-31"
|
kotlin-jupyter = "0.10.3-36"
|
||||||
kotlinx-benchmark = "0.3.1"
|
kotlinx-benchmark = "0.3.1"
|
||||||
kotlinx-cli = "0.3.3"
|
kotlinx-cli = "0.3.3"
|
||||||
kotlinx-collections-immutable = "0.3.4"
|
kotlinx-collections-immutable = "0.3.4"
|
||||||
@ -14,11 +14,12 @@ kotlinx-datetime = "0.3.1"
|
|||||||
kotlinx-html = "0.7.3"
|
kotlinx-html = "0.7.3"
|
||||||
kotlinx-knit = "0.2.3"
|
kotlinx-knit = "0.2.3"
|
||||||
kotlinx-nodejs = "0.0.7"
|
kotlinx-nodejs = "0.0.7"
|
||||||
kotlinx-serialization = "1.3.0"
|
kotlinx-serialization = "1.3.1"
|
||||||
ktor = "1.6.3"
|
ktor = "1.6.3"
|
||||||
xmlutil = "0.83.0"
|
xmlutil = "0.83.0"
|
||||||
yamlkt = "0.10.2"
|
yamlkt = "0.10.2"
|
||||||
jsBom = "0.0.1-pre.263-kotlin-1.5.31"
|
jsBom = "0.0.1-pre.265-kotlin-1.5.31"
|
||||||
|
junit = "5.8.1"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
atomicfu-gradle = { module = "org.jetbrains.kotlinx:atomicfu-gradle-plugin", version.ref = "atomicfu" }
|
atomicfu-gradle = { module = "org.jetbrains.kotlinx:atomicfu-gradle-plugin", version.ref = "atomicfu" }
|
||||||
|
@ -17,6 +17,11 @@ import ru.mipt.npm.gradle.internal.fromJsDependencies
|
|||||||
|
|
||||||
@Suppress("UNUSED_VARIABLE")
|
@Suppress("UNUSED_VARIABLE")
|
||||||
public open class KScienceCommonPlugin : Plugin<Project> {
|
public open class KScienceCommonPlugin : Plugin<Project> {
|
||||||
|
public companion object{
|
||||||
|
public val defaultJvmArgs: List<String> = listOf("-Xjvm-default=all","-Xlambdas=indy")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
override fun apply(project: Project): Unit = project.run {
|
override fun apply(project: Project): Unit = project.run {
|
||||||
//Common configuration
|
//Common configuration
|
||||||
registerKScienceExtension()
|
registerKScienceExtension()
|
||||||
@ -35,14 +40,14 @@ public open class KScienceCommonPlugin : Plugin<Project> {
|
|||||||
sourceSets["test"].apply {
|
sourceSets["test"].apply {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test-junit5"))
|
implementation(kotlin("test-junit5"))
|
||||||
implementation("org.junit.jupiter:junit-jupiter:5.6.1")
|
implementation("org.junit.jupiter:junit-jupiter:${KScienceVersions.junit}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tasks.withType<KotlinJvmCompile> {
|
tasks.withType<KotlinJvmCompile> {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = KScienceVersions.JVM_TARGET.toString()
|
jvmTarget = KScienceVersions.JVM_TARGET.toString()
|
||||||
freeCompilerArgs = freeCompilerArgs + "-Xjvm-default=all"
|
freeCompilerArgs = freeCompilerArgs + defaultJvmArgs
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -99,7 +104,7 @@ public open class KScienceCommonPlugin : Plugin<Project> {
|
|||||||
compilations.all {
|
compilations.all {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = KScienceVersions.JVM_TARGET.toString()
|
jvmTarget = KScienceVersions.JVM_TARGET.toString()
|
||||||
freeCompilerArgs = freeCompilerArgs + "-Xjvm-default=all"
|
freeCompilerArgs = freeCompilerArgs + defaultJvmArgs
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -128,7 +133,7 @@ public open class KScienceCommonPlugin : Plugin<Project> {
|
|||||||
val jvmTest by getting {
|
val jvmTest by getting {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(kotlin("test-junit5"))
|
implementation(kotlin("test-junit5"))
|
||||||
implementation("org.junit.jupiter:junit-jupiter:5.7.2")
|
implementation("org.junit.jupiter:junit-jupiter:${KScienceVersions.junit}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
val jsMain by getting
|
val jsMain by getting
|
||||||
|
@ -22,6 +22,7 @@ public object KScienceVersions {
|
|||||||
public val htmlVersion: String get() = toml.getString("versions.kotlinx-html")!!
|
public val htmlVersion: String get() = toml.getString("versions.kotlinx-html")!!
|
||||||
public val dateTimeVersion: String get() = toml.getString("versions.kotlinx-datetime")!!
|
public val dateTimeVersion: String get() = toml.getString("versions.kotlinx-datetime")!!
|
||||||
public val jsBom: String get() = toml.getString("versions.jsBom")!!
|
public val jsBom: String get() = toml.getString("versions.jsBom")!!
|
||||||
|
internal val junit: String get() = toml.getString("versions.junit")!!
|
||||||
|
|
||||||
public val JVM_TARGET: JavaVersion = JavaVersion.VERSION_11
|
public val JVM_TARGET: JavaVersion = JavaVersion.VERSION_11
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user