Module with an example of a multiplatform library. Similarly to the :common-multiple_sources module, this library shows how to use multiple source folders for all targets. Please see the documentation of the :common-multiple_sources for more information.
It uses the common modules as dependencies.
export enabledModules="library-multiple_sources"
The other modules, on which this module depends, will be automatically enabled.
./gradlew :library-multiple_sources:build
or in a simplified way (can run more tasks):
./gradlew build
./gradlew :library-multiple_sources:check
or in a simplified way (can run more tasks):
./gradlew check
Testing if the library can be published to the local maven repository:
./gradlew :library-multiple_sources:publishToMavenLocal
or in a simplified way (can run more tasks):
./gradlew publishToMavenLocal
Listing the published library files:
For (Linux, MacOS, Unix):
ls -1a ~/.m2/repository/com/company/team/project
For Windows:
dir %userprofile%\.m2\repository\com\company\team\project
The expected output should be similar to this one:
library-multiple_sources
library-multiple_sources-iosx64
library-multiple_sources-js
library-multiple_sources-jvm
library-multiple_sources-macosx64
library-multiple_sources-metadata
library-multiple_sources-wasm32