https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
s

Sylvain Patenaude

11/05/2019, 7:31 PM
My settings.gradle file currently looks like this:
rootProject.name = 'MySDK'
include 'MySDK'
enableFeaturePreview('GRADLE_METADATA')
It's based on examples, but I'm struggling to fully grasp what the rootProject.name implies (what are its effects?). Same thing for the include statement. Any documention on this somewhere?
d

Daniel Rampelt

11/05/2019, 7:47 PM
That's just standard gradle project setup. There is a root project and then a subproject (module) in a subfolder that you are including. If you had other modules in other folders, you would include them with
include
as well. This page in the gradle docs goes over it, Defining common behavior section near the top has some good examples https://docs.gradle.org/current/userguide/multi_project_builds.html
s

Sylvain Patenaude

11/07/2019, 2:53 PM
The
include 'MySDK'
line is probably unnecessary since it's the root project itself.