File tree 4 files changed +11
-20
lines changed
4 files changed +11
-20
lines changed Original file line number Diff line number Diff line change @@ -108,8 +108,8 @@ private fun Project.configureYarnAndNodeRedirects() {
108
108
}
109
109
110
110
val nodeJsExtension = rootProject.extensions.findByType<NodeJsRootExtension >()
111
- nodeJsExtension?.nodeDownloadBaseUrl ?.let {
112
- nodeJsExtension.nodeDownloadBaseUrl = CacheRedirector .maybeRedirect(it)
111
+ nodeJsExtension?.downloadBaseUrl ?.let {
112
+ nodeJsExtension.downloadBaseUrl = CacheRedirector .maybeRedirect(it)
113
113
}
114
114
}
115
115
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,18 +3,15 @@ import org.jetbrains.kotlin.gradle.tasks.*
3
3
configure(subprojects) {
4
4
val project = this
5
5
if (name in sourceless) return @configure
6
- apply (plugin = " atomicfu-conventions " )
6
+ apply (plugin = " org.jetbrains.kotlinx. atomicfu" )
7
7
tasks.withType<KotlinCompilationTask <* >>().configureEach {
8
8
val isMainTaskName = name.startsWith(" compileKotlin" )
9
9
compilerOptions {
10
- var versionsAreNotOverridden = true
11
10
getOverriddenKotlinLanguageVersion(project)?.let {
12
11
languageVersion = it
13
- versionsAreNotOverridden = false
14
12
}
15
13
getOverriddenKotlinApiVersion(project)?.let {
16
14
apiVersion = it
17
- versionsAreNotOverridden = false
18
15
}
19
16
if (isMainTaskName && ! unpublished.contains(project.name)) {
20
17
allWarningsAsErrors = true
Original file line number Diff line number Diff line change 14
14
kotlin {
15
15
jvm {
16
16
compilations.all {
17
- compilerOptions .configure {
18
- jvmTarget = JvmTarget .JVM_1_8
17
+ compileTaskProvider .configure {
18
+ compilerOptions. jvmTarget = JvmTarget .JVM_1_8
19
19
}
20
20
}
21
21
}
@@ -53,7 +53,7 @@ kotlin {
53
53
api(" org.jetbrains.kotlinx:atomicfu-js:${version(" atomicfu" )} " )
54
54
}
55
55
}
56
- @OptIn(org.jetbrains.kotlin.gradle.targets.js.dsl. ExperimentalWasmDsl ::class )
56
+ @OptIn(org.jetbrains.kotlin.gradle.ExperimentalWasmDsl ::class )
57
57
wasmJs {
58
58
// Module name should be different from the one from JS
59
59
// otherwise IC tasks that start clashing different modules with the same module name
@@ -63,15 +63,17 @@ kotlin {
63
63
api(" org.jetbrains.kotlinx:atomicfu-wasm-js:${version(" atomicfu" )} " )
64
64
}
65
65
}
66
- @OptIn(org.jetbrains.kotlin.gradle.targets.js.dsl. ExperimentalWasmDsl ::class )
66
+ @OptIn(org.jetbrains.kotlin.gradle.ExperimentalWasmDsl ::class )
67
67
wasmWasi {
68
68
nodejs()
69
69
compilations[" main" ]?.dependencies {
70
70
api(" org.jetbrains.kotlinx:atomicfu-wasm-wasi:${version(" atomicfu" )} " )
71
71
}
72
72
compilations.configureEach {
73
- compilerOptions.configure {
74
- optIn.add(" kotlin.wasm.internal.InternalWasmApi" )
73
+ compileTaskProvider.configure {
74
+ compilerOptions {
75
+ optIn.add(" kotlin.wasm.internal.InternalWasmApi" )
76
+ }
75
77
}
76
78
}
77
79
}
You can’t perform that action at this time.
0 commit comments