defaultPackage

abstract val defaultPackage: Property<String>(source)

The default package that source code generated from Markdown files will be written under.

If the package name begins with a ., then it will be appended to your project's group. For example, ".components" will become "com.mysite.components".

By default, this will be set to ".pages", as we assume that the main use-case for markdown in Kobweb projects in most cases is to be used as a convenient way to make pages.

You can use markdown.defaultPackage.set(".") if you want to generate markdown files under the main group of your project, or markdown.defaultPackage.set("") if you don't want any package to be set at all.

You can override this on a case by case basis using the addSource methods, which each take an optional target package.