-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
52 lines (43 loc) · 1.27 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
@file:Suppress("DSL_SCOPE_VIOLATION")
plugins {
id(libs.plugins.kotlin.multiplatform.get().pluginId)
alias(libs.plugins.arrowGradleConfig.kotlin)
alias(libs.plugins.arrowGradleConfig.formatter)
}
kotlin {
explicitApi = null
sourceSets {
commonMain {
dependencies {
implementation(libs.kotlin.stdlibCommon)
api(projects.arrowAnalysisLaws)
api(projects.arrowAnalysisTypes)
}
}
named("jvmMain") {
dependencies {
implementation(libs.kotlin.stdlibJDK8)
}
}
named("jsMain") {
dependencies {
implementation(libs.kotlin.stdlibJS)
}
}
}
}
dependencies {
kotlinCompilerClasspath(projects.arrowAnalysisKotlinPlugin)
}
tasks.compileKotlinJvm {
kotlinOptions {
freeCompilerArgs = listOf(
"-Xplugin=$rootDir/plugins/analysis/kotlin-plugin/build/libs/arrow-analysis-kotlin-plugin-$version.jar",
"-P", "plugin:arrow.meta.plugin.compiler.analysis:generatedSrcOutputDir=$buildDir/generated/meta",
"-P", "plugin:arrow.meta.plugin.compiler.analysis:baseDir=${project.rootProject.rootDir.path}"
)
}
}
// disable publication
tasks.withType<PublishToMavenLocal>().configureEach { enabled = false }
tasks.withType<PublishToMavenRepository>().configureEach { enabled = false }