File tree Expand file tree Collapse file tree 6 files changed +15
-8
lines changed
src/main/kotlin/io/github/adityabhaskar/dependencygraph/plugin/core Expand file tree Collapse file tree 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
2424Kotlin:
2525``` kotlin
2626plugins {
27- id(" io.github.adityabhaskar.dependencygraph" ) version " 0.1.4 "
27+ id(" io.github.adityabhaskar.dependencygraph" ) version " <version> "
2828}
2929```
3030
3131Groovy:
3232``` groovy
3333plugins {
34- id "io.github.adityabhaskar.dependencygraph" version "0.1.4 "
34+ id "io.github.adityabhaskar.dependencygraph" version "<version> "
3535}
3636```
3737
@@ -173,4 +173,4 @@ Feel free to open a issue or submit a pull request for any bugs/improvements.
173173
174174## License 📄
175175
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"
44ktlintGradle = " 11.6.1"
55pluginPublish = " 1.2.1"
66versionCheck = " 0.51.0"
7+ android-lint = " 8.3.0"
8+ android-lint-gradle = " 1.0.0-alpha01"
79
810[plugins ]
911detekt = { id = " io.gitlab.arturbosch.detekt" , version.ref = " detekt" }
1012kotlin = { id = " org.jetbrains.kotlin.jvm" , version.ref = " kotlin" }
1113ktlint = { id = " org.jlleitschuh.gradle.ktlint" , version.ref = " ktlintGradle" }
1214pluginPublish = { id = " com.gradle.plugin-publish" , version.ref = " pluginPublish" }
1315versionCheck = { id = " com.github.ben-manes.versions" , version.ref = " versionCheck" }
16+ lint = { id = " com.android.lint" , version.ref = " android-lint" }
1417
1518[libraries ]
1619junit = " 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 11ID =io.github.adityabhaskar.dependencygraph
2- VERSION =0.1.5
2+ VERSION =0.1.6
33GROUP =io.github.adityabhaskar
44DISPLAY_NAME =Gradle module dependency graphs
55DESCRIPTION =A plugin to automatically produce Github/mermaid compatible dependency graphs
Original file line number Diff line number Diff line change 11import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
22
3- @Suppress(" DSL_SCOPE_VIOLATION" )
43plugins {
54 kotlin(" jvm" )
65 `java- gradle- plugin`
76 alias(libs.plugins.pluginPublish)
7+ alias(libs.plugins.lint)
88}
99
1010dependencies {
1111 implementation(kotlin(" stdlib" ))
1212 implementation(gradleApi())
1313
14+ lintChecks(libs.android.lint.gradle)
15+
1416 testImplementation(libs.junit)
1517}
1618
Original file line number Diff line number Diff line change @@ -65,9 +65,9 @@ internal fun parseDependencyGraph(
6565 javaProjects.add(project)
6666 }
6767
68- project.configurations.all { config ->
68+ project.configurations.configureEach { config ->
6969 config.dependencies
70- .filterIsInstance( ProjectDependency :: class .java )
70+ .filterIsInstance< ProjectDependency >( )
7171 .map { it.dependencyProject }
7272 .filter { it.path !in ignoredModules }
7373 .forEach { dependency ->
@@ -100,7 +100,7 @@ internal fun parseDependencyGraph(
100100 val allDependencies = it.configurations
101101 .map { config ->
102102 config.dependencies
103- .filterIsInstance( ProjectDependency :: class .java )
103+ .filterIsInstance< ProjectDependency >( )
104104 .filter { dependency ->
105105 dependency.dependencyProject.path != it.path
106106 }
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ pluginManagement {
22 repositories {
33 gradlePluginPortal()
44 mavenCentral()
5+ google()
56 }
67}
78
You can’t perform that action at this time.
0 commit comments