Skip to content

Commit

Permalink
Version 0.2.0 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jraska authored Dec 25, 2019
1 parent 0e764c4 commit df76e07
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ buildscript {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'gradle.plugin.modules-graph-assert:plugin:0.1.1'
classpath 'gradle.plugin.modules-graph-assert:plugin:0.2.0'
}
}
Expand All @@ -28,3 +28,13 @@ moduleGraphAssert {
restrictInLayerDependencies = [":feature", ":lib"]
}
```

### Helper Graphviz Graph Export
- Visualising graph could be useful to see the dependency problem, therefore helper `generateModulesGrapvizText` is included.
- By default it generates graph of all modules in a project.
- Longest path of the project is in red.
- Adding parameter `modules.graph.print.statistics` prints also information about the graph.
- You can set `modules.graph.of.module` parameter if you want only subgraph of total graph.
```
./gradlew generateModulesGrapvizText -Pmodules.graph.print.statistics=true -Pmodules.graph.of.module=:feature-one
```
2 changes: 1 addition & 1 deletion example/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id('com.jraska.module.graph.assertion') version "0.1.1"
id('com.jraska.module.graph.assertion') version "0.2.0"
}

apply plugin: 'java-library'
Expand Down
2 changes: 1 addition & 1 deletion plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ gradlePlugin {
plugins {
modulesGraphAssert {
id = 'com.jraska.module.graph.assertion'
version = '0.1.1'
version = '0.2.0'
displayName = 'Modules Graph Assert'
description = 'Gradle plugin to keep your modules graph healthy and lean.'
implementationClass = 'com.jraska.module.graph.assertion.ModuleGraphAssertionsPlugin'
Expand Down

0 comments on commit df76e07

Please sign in to comment.