buildscript {

    ext.buildMaven = { p -> repositories { maven { url p } } }


    repositories {
        mavenLocal()
        google()
        jcenter()
        mavenCentral()
    }

    dependencies {
    }

}

plugins {
    id 'org.jetbrains.kotlin.multiplatform' version '1.5.10'
    id "maven"
    id("maven-publish")

}

group = "de.jensklingenberg.nativedemo"

version = "0.0.1"


repositories {
    mavenCentral()
}

kotlin {
    jvm()
    linuxX64("linux")

    sourceSets {
        commonMain {
            dependencies {
                implementation kotlin('stdlib-common')

            }
        }
        commonTest {
            dependencies {
                implementation kotlin('test-common')
                implementation kotlin('test-annotations-common')
            }
        }

        jsMain {
            dependencies {
                implementation kotlin('stdlib-js')

            }
        }
        jsTest {
            dependencies {
                implementation kotlin('test-js')
            }
        }

        jvmMain {
            dependencies {
                implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
            }
        }
        jsTest {
            dependencies {
                implementation kotlin('test-js')
            }
        }

        linuxMain {

        }

    }
}




build.finalizedBy(publishToMavenLocal)