Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting customizable width of insight's plugin report #382

Closed
dmurat opened this issue Oct 5, 2020 · 2 comments
Closed

Supporting customizable width of insight's plugin report #382

dmurat opened this issue Oct 5, 2020 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@dmurat
Copy link

dmurat commented Oct 5, 2020

Some of my module names are quite long. When using the insight plugin, the produced report is not so readable any more :-)
Is it possible to add an option to configure the width of the report?

Here is an example of the my output:

--------------------------------------------------------------------------------------------------------
                                                 CONF        EXEC    TOT EXE FLD SKP UTD WRK CHD NSR ACT
--------------------------------------------------------------------------------------------------------
: .................................. SUCCESS [  0.082 s] [  0.216 s]   1   1   0   1   1   0   0   0   1
:cargotracker-booking-axon-api ..... SUCCESS [  0.001 s] [  0.026 s]   5   5   0   5   3   0   0   2   4
:cargotracker-booking-boundary-web . SUCCESS [  0.001 s] [  0.008 s]   5   5   0   5   3   0   0   2   4
:cargotracker-booking-commandside-app  SUCCESS [  0.003 s] [  0.025 s]   5   5   0   5   4   0   0   1   4
:cargotracker-booking-commandside-test-support  SUCCESS [  0.000 s] [  0.008 s]   4   4   0   4   2   0   0   2   3
:cargotracker-booking-domain-model . SUCCESS [  0.000 s] [  0.008 s]   5   5   0   5   3   0   0   2   4
:cargotracker-booking-queryside-app  SUCCESS [  0.002 s] [  0.013 s]   5   5   0   5   4   0   0   1   4
:cargotracker-booking-queryside-rdbms-projection-app  SUCCESS [  0.002 s] [  0.014 s]   5   5   0   5   4   0   0   1   4
:cargotracker-booking-queryside-rdbms-projection-model  SUCCESS [  0.001 s] [  0.009 s]   5   5   0   5   3   0   0   2   4
:cargotracker-booking-queryside-test-support  SUCCESS [  0.001 s] [  0.009 s]   4   4   0   4   2   0   0   2   3
:cargotracker-booking-rdbms-management-app  SUCCESS [  0.001 s] [  0.011 s]   5   5   0   5   4   0   0   1   4
:cargotracker-booking-test-component  SUCCESS [  0.001 s] [  0.000 s]   4   4   0   4   1   0   0   3   3
:cargotracker-lib-axon-api ......... SUCCESS [  0.000 s] [  0.008 s]   5   5   0   5   3   0   0   2   4
:cargotracker-lib-axon-cqrs ........ SUCCESS [  0.000 s] [  0.008 s]   5   5   0   5   3   0   0   2   4
:cargotracker-lib-axon-logging ..... SUCCESS [  0.000 s] [  0.008 s]   5   5   0   5   3   0   0   2   4
:cargotracker-lib-boundary-api ..... SUCCESS [  0.000 s] [  0.006 s]   5   5   0   5   3   0   0   2   4
:cargotracker-lib-web .............. SUCCESS [  0.000 s] [  0.009 s]   5   5   0   5   4   0   0   1   4
:klokwrk-lang-groovy ............... SUCCESS [  0.001 s] [  0.014 s]   5   5   0   5   4   0   0   1   4
:klokwrk-lang-groovy-contracts-match  SUCCESS [  0.001 s] [  0.029 s]   5   5   0   5   4   0   0   1   4
:klokwrk-lang-groovy-contracts-simple  SUCCESS [  0.001 s] [  0.009 s]   5   5   0   5   4   0   0   1   4
:klokwrk-lib-archunit .............. SUCCESS [  0.001 s] [  0.006 s]   4   4   0   4   2   0   0   2   3
:klokwrk-lib-datasourceproxy ....... SUCCESS [  0.001 s] [  0.006 s]   5   5   0   5   3   0   0   2   4
:klokwrk-lib-datasourceproxy-springboot  SUCCESS [  0.001 s] [  0.009 s]   5   5   0   5   3   0   0   2   4
:klokwrk-lib-hibernate ............. SUCCESS [  0.000 s] [  0.008 s]   5   5   0   5   3   0   0   2   4
:klokwrk-lib-jackson ............... SUCCESS [  0.001 s] [  0.008 s]   5   5   0   5   3   0   0   2   4
:klokwrk-lib-jackson-springboot .... SUCCESS [  0.001 s] [  0.010 s]   5   5   0   5   3   0   0   2   4
:klokwrk-lib-spring-context ........ SUCCESS [  0.001 s] [  0.008 s]   5   5   0   5   3   0   0   2   4
--------------------------------------------------------------------------------------------------------

Tnx

@aalmiray aalmiray added the question Further information is requested label Oct 5, 2020
@aalmiray aalmiray self-assigned this Oct 5, 2020
@aalmiray
Copy link
Collaborator

aalmiray commented Oct 5, 2020

The org.kordamp.gradle.plugin.insight.reports.SummaryBuildReport class supports additional configuration such as the maximum width of the project path. Please refer to https://kordamp.org/kordamp-gradle-plugins/#_org_kordamp_gradle_insight_reports

You'll have to register a explicit report like so

insight {
    report(org.kordamp.gradle.plugin.insight.reports.SummaryBuildReport) {
        format             = 'long'
        maxProjectPathSize = 50 // or whatever value required by your build
    }
}

@aalmiray aalmiray closed this as completed Oct 5, 2020
@dmurat
Copy link
Author

dmurat commented Oct 5, 2020

Oh, that's great :-) Tnx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants