Artifactory 人工及;Gradle:运行许可证检查
我们使用Gradle构建Java项目,并将生成的工件推送到Artifactory 我们正在使用Gradle Artifactory插件,这意味着我们可以在Artifactory界面中看到构建,还可以看到Licenses选项卡,其中包含关于构建中使用的许可证的信息Artifactory 人工及;Gradle:运行许可证检查,artifactory,Artifactory,我们使用Gradle构建Java项目,并将生成的工件推送到Artifactory 我们正在使用Gradle Artifactory插件,这意味着我们可以在Artifactory界面中看到构建,还可以看到Licenses选项卡,其中包含关于构建中使用的许可证的信息 但是,我无法解决仅使用Gradle插件就可以运行的问题。是否有允许我为许可证警报提供电子邮件地址的设置?或者我需要使用一个CI集成来获得该功能吗?Artifactory包含一个部分: Artifactory支持发送邮件,通知系统中发生的
但是,我无法解决仅使用Gradle插件就可以运行的问题。是否有允许我为许可证警报提供电子邮件地址的设置?或者我需要使用一个CI集成来获得该功能吗?Artifactory包含一个部分: Artifactory支持发送邮件,通知系统中发生的重大事件的管理员和其他用户 例如:
- 监视通知
- 备份警告和错误警报
- 许可证违规通知
这样,每当将具有未知或未批准许可证的依赖项添加到生成收件人时,会立即收到电子邮件通知,并且可能导致任何潜在的许可证冲突 发送许可证冲突通知是通过Artifactory执行的,需要配置有效的邮件服务器 检查(用于CI服务器和构建工具的Artifactory的开放集成层。构建信息以json格式发送到Artifactory。) 它确实包括:
"licenseControl" : { // Artifactory License Control information
"runChecks" : true, // Artifactory will run automatic license scanning after the build is complete (true/false)
"includePublishedArtifacts" : true, // Should Artifactory run license checks on the build artifacts, in addition to the build dependecies (true/false)
"autoDiscover" : true, // Should Artifactory auto discover licenses (true/false)
"scopesList" : "", // A space-separated list of dependency scopes/configurations to run license violation checks on. If left empty all dependencies from all scopes will be checked.
"licenseViolationsRecipientsList" : "" // Emails of recipients that should be notified of license violations in the build info (space-separated list)
},