55 * you may not use this file except in compliance with the License.
66 * You may obtain a copy of the License at
77 *
8- * http ://www.apache.org/licenses/LICENSE-2.0
8+ * https ://www.apache.org/licenses/LICENSE-2.0
99 *
1010 * Unless required by applicable law or agreed to in writing, software
1111 * distributed under the License is distributed on an "AS IS" BASIS,
1212 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16-
1716package io.spring.gradle.propdeps
1817
19- import org.gradle.api.*
18+ import org.gradle.api.Plugin
19+ import org.gradle.api.Project
2020import org.gradle.api.artifacts.maven.Conf2ScopeMappingContainer
2121import org.gradle.api.artifacts.maven.MavenPom
2222import org.gradle.api.artifacts.maven.PomFilterContainer
2323import org.gradle.api.plugins.MavenPlugin
24- import org.gradle.api.tasks.*
25-
24+ import org.gradle.api.tasks.Upload
2625
2726/**
28- * Plugin to allow optional and provided dependency configurations to work with the
29- * standard gradle 'maven' plugin
27+ * Plugin to allow optional and provided dependency configurations to work with
28+ * the standard gradle 'maven' plugin
3029 *
3130 * @author Phillip Webb
31+ * @author John Blum
3232 */
3333class PropDepsMavenPlugin implements Plugin<Project > {
3434
35- public void apply (Project project ) {
35+ void apply (Project project ) {
36+
3637 project. plugins. apply(PropDepsPlugin )
3738 project. plugins. apply(MavenPlugin )
3839
3940 Conf2ScopeMappingContainer scopeMappings = project. conf2ScopeMappings
41+
4042 scopeMappings. addMapping(MavenPlugin . COMPILE_PRIORITY + 1 ,
4143 project. configurations. getByName(" provided" ), Conf2ScopeMappingContainer . PROVIDED )
4244
@@ -62,5 +64,4 @@ class PropDepsMavenPlugin implements Plugin<Project> {
6264 }
6365 }
6466 }
65-
6667}
0 commit comments