realm / realm-kotlin

Kotlin Multiplatform and Android SDK for the Realm Mobile Database: Build Better Apps Faster.
Apache License 2.0
889 stars 52 forks source link

Add new publishCIPackages target in Gradle to make it easier to control which targets to build on a given platform #1607

Closed cmelchior closed 6 months ago

cmelchior commented 6 months ago

With this change, it is now possible to define which targets to build using. It does this by introducing a new target publishCIPackages, which can be configured using a number of new Gradle properties:

realm.kotlin.mainHost=true
realm.kotlin.targets=<CommaSeperatedListOfPublications>
realm.kotlin.buildRealmCore=true
realm.kotlin.copyNativeJvmLibs=false

With this it is possible to get fine-grained control over exactly what gets built on a CI runner.

This PR is mostly moving things out of #881, so we can keep the review more focused.