gt22 icon

Untitled

gt22 | PRO | 02/10/22 07:54:10 PM UTC | 0 ⭐ | 12164 👁️ | Never ⏰ | []
Kotlin |

1.67 KB

|

None

|

0 👍

/

0 👎

plugins {
    kotlin("multiplatform") version "1.5.10"
}
 
group = "com.frgm"
version = "1.0-SNAPSHOT"
 
repositories {
    mavenCentral()
    maven("https://repo.kotlin.link")
}
 
dependencies {
 
}
 
kotlin {
    jvm {
        compilations.all {
            kotlinOptions.jvmTarget = "1.8"
        }
        testRuns["test"].executionTask.configure {
            useJUnit()
        }
    }
//    js(IR) {
//        browser {
//            commonWebpackConfig {
//                cssSupport.enabled = true
//            }
//        }
//    }
//    val hostOs = System.getProperty("os.name")
//    val isMingwX64 = hostOs.startsWith("Windows")
//    val nativeTarget = when {
//        hostOs == "Mac OS X" -> null // no kmath for macos
//        hostOs == "Linux" -> linuxX64("native")
//        isMingwX64 -> mingwX64("native")
//        else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
//    }
    
    sourceSets {
        val commonMain by getting
        val commonTest by getting
        val jvmMain by getting
        val jvmTest by getting
//        val jsMain by getting
//        val jsTest by getting
//        val nativeMain by getting
//        val nativeTest by getting
 
        commonMain.dependencies {
            api("space.kscience:kmath-core:0.3.0-dev-17")
            api("space.kscience:kmath-tensors:0.3.0-dev-17")
        }
 
        commonTest.dependencies {
            implementation(kotlin("test"))
        }
 
//        jsMain.dependencies {
//            api("space.kscience:kmath-core-js:0.3.0-dev-17")
//            api("space.kscience:kmath-tensors-js:0.3.0-dev-17")
//        }
    }
}
 

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎