All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gradle.kotlin.dsl.accessors._9d6accdeac6876c73060866945fb6d8c.CommonMainCompileOnlyConfigurationAccessors.kt Maven / Gradle / Ivy

There is a newer version: 6.1.90
Show newest version

/*
 * Copyright 2018 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@file:Suppress(
    "unused",
    "nothing_to_inline",
    "useless_cast",
    "unchecked_cast",
    "extension_shadowed_by_member",
    "redundant_projection",
    "RemoveRedundantBackticks",
    "ObjectPropertyName",
    "deprecation",
    "detekt:all"
)
@file:org.gradle.api.Generated

package gradle.kotlin.dsl.accessors._9d6accdeac6876c73060866945fb6d8c


import org.gradle.api.Action
import org.gradle.api.Incubating
import org.gradle.api.NamedDomainObjectProvider
import org.gradle.api.Project
import org.gradle.api.Task
import org.gradle.api.artifacts.Configuration
import org.gradle.api.artifacts.ConfigurablePublishArtifact
import org.gradle.api.artifacts.ConfigurationContainer
import org.gradle.api.artifacts.Dependency
import org.gradle.api.artifacts.DependencyConstraint
import org.gradle.api.artifacts.ExternalModuleDependency
import org.gradle.api.artifacts.ModuleDependency
import org.gradle.api.artifacts.PublishArtifact
import org.gradle.api.artifacts.dsl.ArtifactHandler
import org.gradle.api.artifacts.dsl.DependencyConstraintHandler
import org.gradle.api.artifacts.dsl.DependencyHandler
import org.gradle.api.initialization.SharedModelDefaults
import org.gradle.api.provider.Provider
import org.gradle.api.provider.ProviderConvertible
import org.gradle.api.tasks.TaskContainer
import org.gradle.api.tasks.TaskProvider

import org.gradle.kotlin.dsl.*
import org.gradle.kotlin.dsl.accessors.runtime.*


/**
 * Adds a dependency to the 'commonMainCompileOnly' configuration.
 *
 * @param dependencyNotation notation for the dependency to be added.
 * @return The dependency.
 *
 * @see [DependencyHandler.add]
 */
internal
fun DependencyHandler.`commonMainCompileOnly`(dependencyNotation: Any): Dependency? =
    add("commonMainCompileOnly", dependencyNotation)

/**
 * Adds a dependency to the 'commonMainCompileOnly' configuration.
 *
 * @param dependencyNotation notation for the dependency to be added.
 * @param dependencyConfiguration expression to use to configure the dependency.
 * @return The dependency.
 *
 * @see [DependencyHandler.add]
 */
internal
fun DependencyHandler.`commonMainCompileOnly`(
    dependencyNotation: String,
    dependencyConfiguration: Action
): ExternalModuleDependency = addDependencyTo(
    this, "commonMainCompileOnly", dependencyNotation, dependencyConfiguration
) as ExternalModuleDependency

/**
 * Adds a dependency to the 'commonMainCompileOnly' configuration.
 *
 * @param dependencyNotation notation for the dependency to be added.
 * @param dependencyConfiguration expression to use to configure the dependency.
 * @return The dependency.
 *
 * @see [DependencyHandler.add]
 */
internal
fun DependencyHandler.`commonMainCompileOnly`(
    dependencyNotation: Provider<*>,
    dependencyConfiguration: Action
): Unit = addConfiguredDependencyTo(
    this, "commonMainCompileOnly", dependencyNotation, dependencyConfiguration
)

/**
 * Adds a dependency to the 'commonMainCompileOnly' configuration.
 *
 * @param dependencyNotation notation for the dependency to be added.
 * @param dependencyConfiguration expression to use to configure the dependency.
 * @return The dependency.
 *
 * @see [DependencyHandler.add]
 */
internal
fun DependencyHandler.`commonMainCompileOnly`(
    dependencyNotation: ProviderConvertible<*>,
    dependencyConfiguration: Action
): Unit = addConfiguredDependencyTo(
    this, "commonMainCompileOnly", dependencyNotation, dependencyConfiguration
)

/**
 * Adds a dependency to the 'commonMainCompileOnly' configuration.
 *
 * @param group the group of the module to be added as a dependency.
 * @param name the name of the module to be added as a dependency.
 * @param version the optional version of the module to be added as a dependency.
 * @param configuration the optional configuration of the module to be added as a dependency.
 * @param classifier the optional classifier of the module artifact to be added as a dependency.
 * @param ext the optional extension of the module artifact to be added as a dependency.
 * @param dependencyConfiguration expression to use to configure the dependency.
 * @return The dependency.
 *
 * @see [DependencyHandler.create]
 * @see [DependencyHandler.add]
 */
internal
fun DependencyHandler.`commonMainCompileOnly`(
    group: String,
    name: String,
    version: String? = null,
    configuration: String? = null,
    classifier: String? = null,
    ext: String? = null,
    dependencyConfiguration: Action? = null
): ExternalModuleDependency = addExternalModuleDependencyTo(
    this, "commonMainCompileOnly", group, name, version, configuration, classifier, ext, dependencyConfiguration
)

/**
 * Adds a dependency to the 'commonMainCompileOnly' configuration.
 *
 * @param dependency dependency to be added.
 * @param dependencyConfiguration expression to use to configure the dependency.
 * @return The dependency.
 *
 * @see [DependencyHandler.add]
 */
internal
fun  DependencyHandler.`commonMainCompileOnly`(
    dependency: T,
    dependencyConfiguration: T.() -> Unit
): T = add("commonMainCompileOnly", dependency, dependencyConfiguration)

/**
 * Adds a dependency constraint to the 'commonMainCompileOnly' configuration.
 *
 * @param constraintNotation the dependency constraint notation
 *
 * @return the added dependency constraint
 *
 * @see [DependencyConstraintHandler.add]
 */
internal
fun DependencyConstraintHandler.`commonMainCompileOnly`(constraintNotation: Any): DependencyConstraint =
    add("commonMainCompileOnly", constraintNotation)

/**
 * Adds a dependency constraint to the 'commonMainCompileOnly' configuration.
 *
 * @param constraintNotation the dependency constraint notation
 * @param block the block to use to configure the dependency constraint
 *
 * @return the added dependency constraint
 *
 * @see [DependencyConstraintHandler.add]
 */
internal
fun DependencyConstraintHandler.`commonMainCompileOnly`(constraintNotation: Any, block: DependencyConstraint.() -> Unit): DependencyConstraint =
    add("commonMainCompileOnly", constraintNotation, block)

/**
 * Adds an artifact to the 'commonMainCompileOnly' configuration.
 *
 * @param artifactNotation the group of the module to be added as a dependency.
 * @return The artifact.
 *
 * @see [ArtifactHandler.add]
 */
internal
fun ArtifactHandler.`commonMainCompileOnly`(artifactNotation: Any): PublishArtifact =
    add("commonMainCompileOnly", artifactNotation)

/**
 * Adds an artifact to the 'commonMainCompileOnly' configuration.
 *
 * @param artifactNotation the group of the module to be added as a dependency.
 * @param configureAction The action to execute to configure the artifact.
 * @return The artifact.
 *
 * @see [ArtifactHandler.add]
 */
internal
fun ArtifactHandler.`commonMainCompileOnly`(
    artifactNotation: Any,
    configureAction:  ConfigurablePublishArtifact.() -> Unit
): PublishArtifact =
    add("commonMainCompileOnly", artifactNotation, configureAction)







© 2015 - 2024 Weber Informatics LLC | Privacy Policy