setupPublishingEnv

fun Project.setupPublishingEnv(simpleConfig: PublishingSimpleConfig = PublishingSimpleConfig(this), envConfig: PublishingEnvConfig = PublishingEnvConfig()): MavenPublication

Sets up a bit more advanced publishing configuration using environment variables and a custom repository

  1. Applies the maven-publish plugin

  2. Creates a repository with the specified maven URL and credential environment variables

  3. Updates the version using the specified environment variables or the default version

  4. Calls setupPublishingSimple with the specified parameters

Return

The MavenPublication that was created

Parameters

simpleConfig

The configuration for setting up publishing using a simple configuration

envConfig

The configuration for setting up publishing using environment variables