summaryrefslogtreecommitdiff
path: root/build.gradle.kts
blob: b83f6d81ccc4a3ba7454c8335c9a1dcb6dd7738e (plain)
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
plugins {
    kotlin("multiplatform") version "1.7.10"
    `maven-publish`
}

repositories {
    mavenCentral()
}
group = "moe.nea"
version = "0.0.1"

kotlin {
    sourceSets.all {
        languageSettings.optIn("kotlin.ExperimentalStdlibApi")
        languageSettings.optIn("kotlin.RequiresOptIn")
    }
    js(IR) {
        browser {
            commonWebpackConfig {
                sourceMaps = true
                cssSupport.enabled = true
            }
        }
        binaries.executable()
    }
    sourceSets {
        named("jsMain") {
            dependencies {
                api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
                api("org.jetbrains.kotlin-wrappers:kotlin-styled:5.3.5-pre.376")
            }
        }
    }
}


publishing {
    repositories {
        mavenLocal()
    }
    publications {
        create<MavenPublication>("library") {
            from(components["kotlin"])
        }
    }
}