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 'kotlinCompilerPluginClasspath' configuration.
62 *
63 * @param dependencyNotation notation for the dependency to be added.
64 * @return The dependency.
65 *
66 * @see [DependencyHandler.add]
67 */
DependencyHandlernull68 fun DependencyHandler.`kotlinCompilerPluginClasspath`(dependencyNotation: Any): Dependency? =
69 add("kotlinCompilerPluginClasspath", dependencyNotation)
70
71 /**
72 * Adds a dependency to the 'kotlinCompilerPluginClasspath' configuration.
73 *
74 * @param dependencyNotation notation for the dependency to be added.
75 * @param dependencyConfiguration expression to use to configure the dependency.
76 * @return The dependency.
77 *
78 * @see [DependencyHandler.add]
79 */
80 fun DependencyHandler.`kotlinCompilerPluginClasspath`(
81 dependencyNotation: String,
82 dependencyConfiguration: Action<ExternalModuleDependency>
83 ): ExternalModuleDependency = addDependencyTo(
84 this, "kotlinCompilerPluginClasspath", dependencyNotation, dependencyConfiguration
85 ) as ExternalModuleDependency
86
87 /**
88 * Adds a dependency to the 'kotlinCompilerPluginClasspath' configuration.
89 *
90 * @param dependencyNotation notation for the dependency to be added.
91 * @param dependencyConfiguration expression to use to configure the dependency.
92 * @return The dependency.
93 *
94 * @see [DependencyHandler.add]
95 */
96 fun DependencyHandler.`kotlinCompilerPluginClasspath`(
97 dependencyNotation: Provider<*>,
98 dependencyConfiguration: Action<ExternalModuleDependency>
99 ): Unit = addConfiguredDependencyTo(
100 this, "kotlinCompilerPluginClasspath", dependencyNotation, dependencyConfiguration
101 )
102
103 /**
104 * Adds a dependency to the 'kotlinCompilerPluginClasspath' configuration.
105 *
106 * @param group the group of the module to be added as a dependency.
107 * @param name the name of the module to be added as a dependency.
108 * @param version the optional version of the module to be added as a dependency.
109 * @param configuration the optional configuration of the module to be added as a dependency.
110 * @param classifier the optional classifier of the module artifact to be added as a dependency.
111 * @param ext the optional extension of the module artifact to be added as a dependency.
112 * @param dependencyConfiguration expression to use to configure the dependency.
113 * @return The dependency.
114 *
115 * @see [DependencyHandler.create]
116 * @see [DependencyHandler.add]
117 */
118 fun DependencyHandler.`kotlinCompilerPluginClasspath`(
119 group: String,
120 name: String,
121 version: String? = null,
122 configuration: String? = null,
123 classifier: String? = null,
124 ext: String? = null,
125 dependencyConfiguration: Action<ExternalModuleDependency>? = null
126 ): ExternalModuleDependency = addExternalModuleDependencyTo(
127 this, "kotlinCompilerPluginClasspath", group, name, version, configuration, classifier, ext, dependencyConfiguration
128 )
129
130 /**
131 * Adds a dependency to the 'kotlinCompilerPluginClasspath' configuration.
132 *
133 * @param dependency dependency to be added.
134 * @param dependencyConfiguration expression to use to configure the dependency.
135 * @return The dependency.
136 *
137 * @see [DependencyHandler.add]
138 */
139 fun <T : ModuleDependency> DependencyHandler.`kotlinCompilerPluginClasspath`(
140 dependency: T,
141 dependencyConfiguration: T.() -> Unit
142 ): T = add("kotlinCompilerPluginClasspath", dependency, dependencyConfiguration)
143
144 /**
145 * Adds a dependency constraint to the 'kotlinCompilerPluginClasspath' configuration.
146 *
147 * @param constraintNotation the dependency constraint notation
148 *
149 * @return the added dependency constraint
150 *
151 * @see [DependencyConstraintHandler.add]
152 */
153 fun DependencyConstraintHandler.`kotlinCompilerPluginClasspath`(constraintNotation: Any): DependencyConstraint? =
154 add("kotlinCompilerPluginClasspath", constraintNotation)
155
156 /**
157 * Adds a dependency constraint to the 'kotlinCompilerPluginClasspath' configuration.
158 *
159 * @param constraintNotation the dependency constraint notation
160 * @param block the block to use to configure the dependency constraint
161 *
162 * @return the added dependency constraint
163 *
164 * @see [DependencyConstraintHandler.add]
165 */
166 fun DependencyConstraintHandler.`kotlinCompilerPluginClasspath`(constraintNotation: Any, block: DependencyConstraint.() -> Unit): DependencyConstraint? =
167 add("kotlinCompilerPluginClasspath", constraintNotation, block)
168
169 /**
170 * Adds an artifact to the 'kotlinCompilerPluginClasspath' configuration.
171 *
172 * @param artifactNotation the group of the module to be added as a dependency.
173 * @return The artifact.
174 *
175 * @see [ArtifactHandler.add]
176 */
177 fun ArtifactHandler.`kotlinCompilerPluginClasspath`(artifactNotation: Any): PublishArtifact =
178 add("kotlinCompilerPluginClasspath", artifactNotation)
179
180 /**
181 * Adds an artifact to the 'kotlinCompilerPluginClasspath' configuration.
182 *
183 * @param artifactNotation the group of the module to be added as a dependency.
184 * @param configureAction The action to execute to configure the artifact.
185 * @return The artifact.
186 *
187 * @see [ArtifactHandler.add]
188 */
189 fun ArtifactHandler.`kotlinCompilerPluginClasspath`(
190 artifactNotation: Any,
191 configureAction: ConfigurablePublishArtifact.() -> Unit
192 ): PublishArtifact =
193 add("kotlinCompilerPluginClasspath", artifactNotation, configureAction)
194
195
196
197