File tree 6 files changed +15
-8
lines changed
src/main/kotlin/io/github/adityabhaskar/dependencygraph/plugin/core
6 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ The plugin is available in the [Gradle plugins repository](https://plugins.gradl
24
24
Kotlin:
25
25
``` kotlin
26
26
plugins {
27
- id(" io.github.adityabhaskar.dependencygraph" ) version " 0.1.4 "
27
+ id(" io.github.adityabhaskar.dependencygraph" ) version " <version> "
28
28
}
29
29
```
30
30
31
31
Groovy:
32
32
``` groovy
33
33
plugins {
34
- id "io.github.adityabhaskar.dependencygraph" version "0.1.4 "
34
+ id "io.github.adityabhaskar.dependencygraph" version "<version> "
35
35
}
36
36
```
37
37
@@ -173,4 +173,4 @@ Feel free to open a issue or submit a pull request for any bugs/improvements.
173
173
174
174
## License 📄
175
175
176
- This template is licensed under the MIT License - see the [ License] ( License ) file for details.
176
+ This template is licensed under the MIT License - see the [ License] ( License ) file for details.
Original file line number Diff line number Diff line change @@ -4,13 +4,17 @@ kotlin = "1.9.23"
4
4
ktlintGradle = " 11.6.1"
5
5
pluginPublish = " 1.2.1"
6
6
versionCheck = " 0.51.0"
7
+ android-lint = " 8.3.0"
8
+ android-lint-gradle = " 1.0.0-alpha01"
7
9
8
10
[plugins ]
9
11
detekt = { id = " io.gitlab.arturbosch.detekt" , version.ref = " detekt" }
10
12
kotlin = { id = " org.jetbrains.kotlin.jvm" , version.ref = " kotlin" }
11
13
ktlint = { id = " org.jlleitschuh.gradle.ktlint" , version.ref = " ktlintGradle" }
12
14
pluginPublish = { id = " com.gradle.plugin-publish" , version.ref = " pluginPublish" }
13
15
versionCheck = { id = " com.github.ben-manes.versions" , version.ref = " versionCheck" }
16
+ lint = { id = " com.android.lint" , version.ref = " android-lint" }
14
17
15
18
[libraries ]
16
19
junit = " junit:junit:4.13.2"
20
+ android-lint-gradle = { module = " androidx.lint:lint-gradle" , version.ref = " android-lint-gradle" }
Original file line number Diff line number Diff line change 1
1
ID =io.github.adityabhaskar.dependencygraph
2
- VERSION =0.1.5
2
+ VERSION =0.1.6
3
3
GROUP =io.github.adityabhaskar
4
4
DISPLAY_NAME =Gradle module dependency graphs
5
5
DESCRIPTION =A plugin to automatically produce Github/mermaid compatible dependency graphs
Original file line number Diff line number Diff line change 1
1
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
2
3
- @Suppress(" DSL_SCOPE_VIOLATION" )
4
3
plugins {
5
4
kotlin(" jvm" )
6
5
`java- gradle- plugin`
7
6
alias(libs.plugins.pluginPublish)
7
+ alias(libs.plugins.lint)
8
8
}
9
9
10
10
dependencies {
11
11
implementation(kotlin(" stdlib" ))
12
12
implementation(gradleApi())
13
13
14
+ lintChecks(libs.android.lint.gradle)
15
+
14
16
testImplementation(libs.junit)
15
17
}
16
18
Original file line number Diff line number Diff line change @@ -65,9 +65,9 @@ internal fun parseDependencyGraph(
65
65
javaProjects.add(project)
66
66
}
67
67
68
- project.configurations.all { config ->
68
+ project.configurations.configureEach { config ->
69
69
config.dependencies
70
- .filterIsInstance( ProjectDependency :: class .java )
70
+ .filterIsInstance< ProjectDependency >( )
71
71
.map { it.dependencyProject }
72
72
.filter { it.path !in ignoredModules }
73
73
.forEach { dependency ->
@@ -100,7 +100,7 @@ internal fun parseDependencyGraph(
100
100
val allDependencies = it.configurations
101
101
.map { config ->
102
102
config.dependencies
103
- .filterIsInstance( ProjectDependency :: class .java )
103
+ .filterIsInstance< ProjectDependency >( )
104
104
.filter { dependency ->
105
105
dependency.dependencyProject.path != it.path
106
106
}
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ pluginManagement {
2
2
repositories {
3
3
gradlePluginPortal()
4
4
mavenCentral()
5
+ google()
5
6
}
6
7
}
7
8
You can’t perform that action at this time.
0 commit comments