1 
2 /*
3  * Copyright 2018 the original author or authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 @file:Suppress(
19     "unused",
20     "nothing_to_inline",
21     "useless_cast",
22     "unchecked_cast",
23     "extension_shadowed_by_member",
24     "redundant_projection",
25     "RemoveRedundantBackticks",
26     "ObjectPropertyName",
27     "deprecation"
28 )
29 @file:org.gradle.api.Generated
30 
31 /* ktlint-disable */
32 
33 package org.gradle.kotlin.dsl
34 
35 
36 import org.gradle.api.Action
37 import org.gradle.api.Incubating
38 import org.gradle.api.NamedDomainObjectProvider
39 import org.gradle.api.Project
40 import org.gradle.api.Task
41 import org.gradle.api.artifacts.Configuration
42 import org.gradle.api.artifacts.ConfigurablePublishArtifact
43 import org.gradle.api.artifacts.ConfigurationContainer
44 import org.gradle.api.artifacts.Dependency
45 import org.gradle.api.artifacts.DependencyConstraint
46 import org.gradle.api.artifacts.ExternalModuleDependency
47 import org.gradle.api.artifacts.ModuleDependency
48 import org.gradle.api.artifacts.PublishArtifact
49 import org.gradle.api.artifacts.dsl.ArtifactHandler
50 import org.gradle.api.artifacts.dsl.DependencyConstraintHandler
51 import org.gradle.api.artifacts.dsl.DependencyHandler
52 import org.gradle.api.provider.Provider
53 import org.gradle.api.tasks.TaskContainer
54 import org.gradle.api.tasks.TaskProvider
55 
56 import org.gradle.kotlin.dsl.*
57 import org.gradle.kotlin.dsl.accessors.runtime.*
58 
59 
60 /**
61  * Adds a dependency to the 'default' configuration.
62  *
63  * @param dependencyNotation notation for the dependency to be added.
64  * @return The dependency.
65  *
66  * @see [DependencyHandler.add]
67  */
68 @Deprecated(message = "The default configuration has been deprecated for dependency declaration. Please use the 'implementation' or 'api' configuration instead.")
DependencyHandlernull69 fun DependencyHandler.`default`(dependencyNotation: Any): Dependency? =
70     add("default", dependencyNotation)
71 
72 /**
73  * Adds a dependency to the 'default' configuration.
74  *
75  * @param dependencyNotation notation for the dependency to be added.
76  * @param dependencyConfiguration expression to use to configure the dependency.
77  * @return The dependency.
78  *
79  * @see [DependencyHandler.add]
80  */
81 @Deprecated(message = "The default configuration has been deprecated for dependency declaration. Please use the 'implementation' or 'api' configuration instead.")
82 fun DependencyHandler.`default`(
83     dependencyNotation: String,
84     dependencyConfiguration: Action<ExternalModuleDependency>
85 ): ExternalModuleDependency = addDependencyTo(
86     this, "default", dependencyNotation, dependencyConfiguration
87 ) as ExternalModuleDependency
88 
89 /**
90  * Adds a dependency to the 'default' configuration.
91  *
92  * @param dependencyNotation notation for the dependency to be added.
93  * @param dependencyConfiguration expression to use to configure the dependency.
94  * @return The dependency.
95  *
96  * @see [DependencyHandler.add]
97  */
98 @Deprecated(message = "The default configuration has been deprecated for dependency declaration. Please use the 'implementation' or 'api' configuration instead.")
99 fun DependencyHandler.`default`(
100     dependencyNotation: Provider<*>,
101     dependencyConfiguration: Action<ExternalModuleDependency>
102 ): Unit = addConfiguredDependencyTo(
103     this, "default", dependencyNotation, dependencyConfiguration
104 )
105 
106 /**
107  * Adds a dependency to the 'default' configuration.
108  *
109  * @param group the group of the module to be added as a dependency.
110  * @param name the name of the module to be added as a dependency.
111  * @param version the optional version of the module to be added as a dependency.
112  * @param configuration the optional configuration of the module to be added as a dependency.
113  * @param classifier the optional classifier of the module artifact to be added as a dependency.
114  * @param ext the optional extension of the module artifact to be added as a dependency.
115  * @param dependencyConfiguration expression to use to configure the dependency.
116  * @return The dependency.
117  *
118  * @see [DependencyHandler.create]
119  * @see [DependencyHandler.add]
120  */
121 @Deprecated(message = "The default configuration has been deprecated for dependency declaration. Please use the 'implementation' or 'api' configuration instead.")
122 fun DependencyHandler.`default`(
123     group: String,
124     name: String,
125     version: String? = null,
126     configuration: String? = null,
127     classifier: String? = null,
128     ext: String? = null,
129     dependencyConfiguration: Action<ExternalModuleDependency>? = null
130 ): ExternalModuleDependency = addExternalModuleDependencyTo(
131     this, "default", group, name, version, configuration, classifier, ext, dependencyConfiguration
132 )
133 
134 /**
135  * Adds a dependency to the 'default' configuration.
136  *
137  * @param dependency dependency to be added.
138  * @param dependencyConfiguration expression to use to configure the dependency.
139  * @return The dependency.
140  *
141  * @see [DependencyHandler.add]
142  */
143 @Deprecated(message = "The default configuration has been deprecated for dependency declaration. Please use the 'implementation' or 'api' configuration instead.")
144 fun <T : ModuleDependency> DependencyHandler.`default`(
145     dependency: T,
146     dependencyConfiguration: T.() -> Unit
147 ): T = add("default", dependency, dependencyConfiguration)
148 
149 /**
150  * Adds a dependency constraint to the 'default' configuration.
151  *
152  * @param constraintNotation the dependency constraint notation
153  *
154  * @return the added dependency constraint
155  *
156  * @see [DependencyConstraintHandler.add]
157  */
158 @Deprecated(message = "The default configuration has been deprecated for dependency declaration. Please use the 'implementation' or 'api' configuration instead.")
159 fun DependencyConstraintHandler.`default`(constraintNotation: Any): DependencyConstraint? =
160     add("default", constraintNotation)
161 
162 /**
163  * Adds a dependency constraint to the 'default' configuration.
164  *
165  * @param constraintNotation the dependency constraint notation
166  * @param block the block to use to configure the dependency constraint
167  *
168  * @return the added dependency constraint
169  *
170  * @see [DependencyConstraintHandler.add]
171  */
172 @Deprecated(message = "The default configuration has been deprecated for dependency declaration. Please use the 'implementation' or 'api' configuration instead.")
173 fun DependencyConstraintHandler.`default`(constraintNotation: Any, block: DependencyConstraint.() -> Unit): DependencyConstraint? =
174     add("default", constraintNotation, block)
175 
176 /**
177  * Adds an artifact to the 'default' configuration.
178  *
179  * @param artifactNotation the group of the module to be added as a dependency.
180  * @return The artifact.
181  *
182  * @see [ArtifactHandler.add]
183  */
184 fun ArtifactHandler.`default`(artifactNotation: Any): PublishArtifact =
185     add("default", artifactNotation)
186 
187 /**
188  * Adds an artifact to the 'default' configuration.
189  *
190  * @param artifactNotation the group of the module to be added as a dependency.
191  * @param configureAction The action to execute to configure the artifact.
192  * @return The artifact.
193  *
194  * @see [ArtifactHandler.add]
195  */
196 fun ArtifactHandler.`default`(
197     artifactNotation: Any,
198     configureAction:  ConfigurablePublishArtifact.() -> Unit
199 ): PublishArtifact =
200     add("default", artifactNotation, configureAction)
201 
202 
203 
204