File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed
common-conventions/src/main/kotlin/io/technoirlab/conventions/common Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 1
1
package io.technoirlab.conventions.common
2
2
3
- import com.squareup.sort.SortDependenciesExtension
3
+ import io.technoirlab.conventions.common.configuration.configureDependencySorting
4
4
import org.gradle.api.Plugin
5
5
import org.gradle.api.Project
6
- import org.gradle.kotlin.dsl.configure
7
6
8
7
class CommonConventionPlugin : Plugin <Project > {
9
8
override fun apply (project : Project ) = with (project) {
10
- pluginManager.apply (" com.squareup.sort-dependencies" )
11
-
12
- extensions.configure(SortDependenciesExtension ::class ) {
13
- check(false )
14
- }
9
+ configureDependencySorting()
15
10
}
16
11
}
Original file line number Diff line number Diff line change
1
+ package io.technoirlab.conventions.common.configuration
2
+
3
+ import com.squareup.sort.SortDependenciesExtension
4
+ import org.gradle.api.Project
5
+ import org.gradle.kotlin.dsl.configure
6
+
7
+ internal fun Project.configureDependencySorting () {
8
+ pluginManager.apply (" com.squareup.sort-dependencies" )
9
+
10
+ extensions.configure(SortDependenciesExtension ::class ) {
11
+ check(false )
12
+ }
13
+ }
You can’t perform that action at this time.
0 commit comments