Skip to content

Commit c5c5db9

Browse files
committed
Format source code and fix HTTP URL in PropDepsMavenPlugin Javadoc.
1 parent bd31137 commit c5c5db9

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

buildSrc/src/main/groovy/io/spring/gradle/propdeps/PropDepsMavenPlugin.groovy

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,38 +5,40 @@
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-
1716
package io.spring.gradle.propdeps
1817

19-
import org.gradle.api.*
18+
import org.gradle.api.Plugin
19+
import org.gradle.api.Project
2020
import org.gradle.api.artifacts.maven.Conf2ScopeMappingContainer
2121
import org.gradle.api.artifacts.maven.MavenPom
2222
import org.gradle.api.artifacts.maven.PomFilterContainer
2323
import 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
*/
3333
class 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

Comments
 (0)