我需要在每个JavaDoc页面的顶部放置一个公司徽标.我正在尝试使用-top选项,但不知道如何编码图像路径 - 路径始终相对于包子目录.我不想在每个包子目录中放置相同的图像文件.
javadoc -top''是我尝试过的,但是图像(位于javadoc树的根目录中)只显示在索引页面上.
编辑:不幸的是,这将作为ZIP分发,我们将无法通过URL访问徽标.
我正在开发一个自定义二进制 Gradle 插件,遵循此处所示的模式。
我的扩展 VersionInfoExtension 是抽象的,带有抽象方法,就像文档中的 BinaryRepositoryExtension 一样。我的任务也是抽象的,参数采用抽象方法,例如文档中的LatestArtifactVersion。当我测试时,我收到以下错误:
An exception occurred applying plugin request [id: 'com.example.version-info']
> Failed to apply plugin 'com.example.version-info'.
> Could not create an instance of type com.example.gradle.version.VersionInfoExtension.
> Could not generate a decorated class for type VersionInfoExtension.
> Cannot have abstract method VersionInfoExtension.jars().
Run Code Online (Sandbox Code Playgroud)
我缺少什么?有没有什么好的例子可以让这项工作发挥作用?