gpt4 book ai didi

gradle - 从 Gradle 创建 PlantUML 图

转载 作者:行者123 更新时间:2023-12-05 07:23:04 24 4
gpt4 key购买 nike

有没有办法从 PlantUML 图创建图像作为 gradle 构建的一部分?

我看过this plugin ,但是,存在对 Graphviz/Dot 的依赖,我真的需要一个独立的构建(在临时目录中提取 graphviz?),而不是需要在运行构建本身之前安装额外依赖项的构建。

最佳答案

github 用户 abendt 最近创建了一个新插件,不需要安装 Graphviz。

https://github.com/red-green-coding/plantuml-gradle-plugin

plugins {
application
kotlin("jvm") version "1.6.10"
id("io.github.redgreencoding.plantuml") version "0.2.0"
}

// This will generate diagrams from all files in a "diagrams" directoy.
plantuml {
diagrams {
project.fileTree("diagrams").files.forEach { file ->
create(file.name) {
sourceFile = project.file(file.path)
}
}
}
}

关于gradle - 从 Gradle 创建 PlantUML 图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56244084/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com