Skip to content

Alternative to testMavenRepo for examples #73

Open
@EdricChan03

Description

Currently, the examples expect a testMavenRepo property to be defined, which is automatically generated by the updateDokkatooExamplesGradleProperties task in a gradle.properties file. However, this file doesn't appear to be generated when adding the examples as includedBuilds and running the Tests workflow - see this build step's logs:

Error resolving plugin [id: 'org.jetbrains.kotlin.jvm', version: '1.8.10']
> Cannot query the value of this provider because it has no value available.

Additionally, some examples might want to add custom properties of their own, or the plugins/code used (for e.g. Kotlin Multiplatform) expects a property (in this case, kotlin.mpp.androidSourceSetLayoutVersion=2/kotlin.mpp.androidSourceSetLayoutVersion1.nowarn=true to be set) to use a specific feature.

I'm not sure as to a better approach of doing this - maybe it could be defined as a custom property in a custom .properties file, which can then be loaded in via java.util.Properties, or maybe as an environment variable?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions