Coder Social home page Coder Social logo

jakzal / gradle-structurizr-cli Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 1.0 501 KB

Enables Gradle to run Structurizr CLI commands

License: Apache License 2.0

Kotlin 100.00%
gradle gradle-plugin gradle-plugin-kotlin structurizr diagrams diagrams-as-code kotlin

gradle-structurizr-cli's People

Contributors

dependabot[bot] avatar jakzal avatar mistelievooq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mistelievooq

gradle-structurizr-cli's Issues

Structurizr as a dependency or change the download directory?

Is there any support for defining structurizr-cli as a gradle dependency, which would allow downloading the cli zip from the local gradle cache? Or alternatively, is there a way to set the directory where the cli is downloaded or extracted to so that it's outside the build directory?

I ask because gradle clean wipes out the build/structurizr-cli directory by default and leads to a redownload, which can be slow.

Thanks!

Multiple export tasks

Hi I get the error when I try to define multiple exports.

Reason: Task ':structurizrCliExport-plantuml0' uses this output of task ':structurizrCliExport-plantuml1' without declaring an explicit or implicit dependency

The definition in build.gradle.kt is

structurizrCli {
    version = "1.30.0"
    
    export {
        format = "plantuml"
        workspace = "docs/diagrams/m1/workspace.dsl"
    }

    export {
        format = "plantuml"
        workspace = "docs/diagrams/m2/workspace.dsl"
    }
}

property output is not recognized

I'm trying to export the generated PlantUML diagrams to a specific directory but get the following exception:

Build file '/Users/masc/workspace/datapith/BBIS/build.gradle.kts' line: 49

* What went wrong:
Script compilation error:

  Line 49:         output = "${projectDir.absolutePath}/build"
                   ^ Unresolved reference: output

1 error

My configuration looks as follows:

structurizrCli {
    version = "1.35.0"

    export {
        format = "plantuml"
        workspace = "docs/model/model.dsl"
        output = "${projectDir.absolutePath}/build"
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.