gt22

Untitled

Feb 10th, 2022
1,061
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 1.67 KB | None | 0 0
  1. plugins {
  2.     kotlin("multiplatform") version "1.5.10"
  3. }
  4.  
  5. group = "com.frgm"
  6. version = "1.0-SNAPSHOT"
  7.  
  8. repositories {
  9.     mavenCentral()
  10.     maven("https://repo.kotlin.link")
  11. }
  12.  
  13. dependencies {
  14.  
  15. }
  16.  
  17. kotlin {
  18.     jvm {
  19.         compilations.all {
  20.             kotlinOptions.jvmTarget = "1.8"
  21.         }
  22.         testRuns["test"].executionTask.configure {
  23.             useJUnit()
  24.         }
  25.     }
  26. //    js(IR) {
  27. //        browser {
  28. //            commonWebpackConfig {
  29. //                cssSupport.enabled = true
  30. //            }
  31. //        }
  32. //    }
  33. //    val hostOs = System.getProperty("os.name")
  34. //    val isMingwX64 = hostOs.startsWith("Windows")
  35. //    val nativeTarget = when {
  36. //        hostOs == "Mac OS X" -> null // no kmath for macos
  37. //        hostOs == "Linux" -> linuxX64("native")
  38. //        isMingwX64 -> mingwX64("native")
  39. //        else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
  40. //    }
  41.    
  42.     sourceSets {
  43.         val commonMain by getting
  44.         val commonTest by getting
  45.         val jvmMain by getting
  46.         val jvmTest by getting
  47. //        val jsMain by getting
  48. //        val jsTest by getting
  49. //        val nativeMain by getting
  50. //        val nativeTest by getting
  51.  
  52.         commonMain.dependencies {
  53.             api("space.kscience:kmath-core:0.3.0-dev-17")
  54.             api("space.kscience:kmath-tensors:0.3.0-dev-17")
  55.         }
  56.  
  57.         commonTest.dependencies {
  58.             implementation(kotlin("test"))
  59.         }
  60.  
  61. //        jsMain.dependencies {
  62. //            api("space.kscience:kmath-core-js:0.3.0-dev-17")
  63. //            api("space.kscience:kmath-tensors-js:0.3.0-dev-17")
  64. //        }
  65.     }
  66. }
  67.  
Advertisement
Add Comment
Please, Sign In to add comment