• g

    GarouDan

    3 years ago
    Hi guys, can we filter the packages to be considered inside of a source set? For example, are we able to do something like this?
    sourceSets {
    		val jvmMain by getting {
    			kotlin.srcDir("src/main/kotlin")
    			resources.srcDir("src/main/resources")
    			filterPackages("com.company.project.jvm") // filtering packages here
    		}
    My motivation is to try to join all sources in the same folder, for example
    src/main/kotlin
    . If we are to do this we could create some packages like:
    com.company.project.common
    ,
    com.company.project.js
    ,
    com.company.project.jvm
    Where all of them could be inside the
    src/main/kotlin
    .
    g
    Dominaezzz
    4 replies
    Copy to Clipboard
  • orangy

    orangy

    3 years ago
    At this stage there are no right or wrong ideas, I believe. They are all experimental, and what matter is which ideas work well, and which doesn’t. As an example, a big design question for a multiplatform FileSystem is how compatible with JVM (nio) it should be. Can you pass
    Path
    object as if it is
    nio
    instance (essentially, an actual typealias), or you have to do
    toJavaPath
    ? Being compatible is nice, but it comes at a cost of non-idiomatic APIs, and then limiting what other platforms (JS, Native) can do.
    orangy
    j
    3 replies
    Copy to Clipboard
  • vpriscan

    vpriscan

    3 years ago
    Hello everyone. I am trying to set up kotlin multiplatform for jvm and android targets (server/client). when I first tried to build it with Intellij IDEA, it was built successfully, but after doing something to .idea folder, I am now constantly getting
    Error:Kotlin: Unsupported plugin option: org.jetbrains.kotlin.android:enabled=true
    when trying to build the project. I tried removing .idea and all .iml files but no luck. Please help!
    vpriscan
    ian.shaun.thomas
    3 replies
    Copy to Clipboard
  • t

    tvede

    3 years ago
    Hello everyone; so a quick question; is there any way that IDEA can provide Unit code coverage for a multiplatform library ? it seems like any way i try run with coverage (from idea) results in it never actually taking the common library code into account..
    t
    a
    +1
    14 replies
    Copy to Clipboard
  • vpriscan

    vpriscan

    3 years ago
    how to apply application plugin only to jvm target
    vpriscan
    ian.shaun.thomas
    2 replies
    Copy to Clipboard
  • j

    jw

    3 years ago
    It isn't
    j
    kpgalligan
    18 replies
    Copy to Clipboard
  • a

    addamsson

    3 years ago
    What I'm really looking forward to is a thorough guide for the
    kotlin-multiplatform
    plugin which includes Dokka and Maven Central deployment
    a
    ian.shaun.thomas
    23 replies
    Copy to Clipboard
  • a

    addamsson

    3 years ago
    what I really miss from Maven ever since I started using Gradle is the effective pom
    a
    ian.shaun.thomas
    13 replies
    Copy to Clipboard
  • josephivie

    josephivie

    3 years ago
    That said, it's still better than anything else I know of at its job. I just wish they would have had Kotlin when they started.
    josephivie
    a
    +2
    26 replies
    Copy to Clipboard
  • russhwolf

    russhwolf

    3 years ago
    Can I always assume sources named
    commonMain
    and
    commonTest
    will be present in
    project.kotlin.sourceSets
    ? If not, is there a way to dynamically detect the common sources? I was looking at the
    metadata
    target but it only has a
    main
    compilation and no
    test
    .
    russhwolf
    josephivie
    +2
    8 replies
    Copy to Clipboard