Sergey Melyukov
07/13/2020, 1:56 PMcom.foo.bar
within com.foo.bar
project to not to create a separate repo with examples?sikri
07/13/2020, 2:11 PMimplementation com.foo:bar:0.1.0
in build.gradle
but with optional possibility to use local non-artifact instance) I suggest to have a look on gradle’s composite buildSergey Melyukov
07/13/2020, 4:27 PMcom.foo.bar
with this structure:
src/commonMain
src/jsMain
src/macosMain
A little bit later, I’ve create another multiplatform project for examples of com.foo.bar
with this structure:
examples/src/commonMain/kotlin/example1
examples/src/commonMain/kotlin/example2
examples/src/jsMain/kotlin/example1
examples/src/jsMain/kotlin/example2
examples/src/macosMain/kotlin/example1
examples/src/macosMain/kotlin/example2
How can I import src/*
from examples/src/*
?implementation com.foo:bar:0.1.0
In examples/build.gradle
is not working (src/commonMain/com/foo/bar/*
src/commonMain/com/foo/examples/example/1
src/commonMain/com/foo/examples/example/2
src/jsMain/com/foo/bar/*
src/jsMain/com/foo/examples/example/1
src/jsMain/com/foo/examples/example/2
src/macosMain/com/foo/bar/*
src/macosMain/com/foo/examples/example/1
src/macosMain/com/foo/examples/example/2
?commonMain {
dependencies {
implementation kotlin('stdlib-common')
implementation project(':core')
}
}