Controlling Third Party LicensesThe License Control Add-on completes the Artifactory Build Integration Add-on allowing you full control over the licenses of the dependencies used by your builds (and eventually in your software). This Add-on is part of the Artifactory Pro Power Pack. As part of the Build Server deployment to Artifactory, it analyzes the used dependencies and tries to match them against a set of license management rules. Notifications can be sent to a selected list of recipients about dependencies with unknown or unapproved license information. To support this feature Artifactory includes a new license management facility where rules about license matching and approval status are defined. These rules are consulted as part of the license analysis. Central License ManagementLicenses are managed under the Admin tab and then
Editing License InformationFor each license, you can configure general license information, the regular expression by which to match the license (by comparing it to license information in module files) and whether the license is an approved one or not. Artifactory comes preconfigured with all the common OSI licenses and JFrog has already tuned these licenses against common project builds.
Finally, you can export the license list and import it later on to new Artifactory instances. Using Build LicensesBuild Server ConfigurationWhen you run a build from your CI server (Hudson, TeamCity or Bamboo), configure the Artifactory Plugin to run license checks as part of the build. Below is a sample section from the Hudson configuration of the Artifactory Plugin:
You can configure whether or not you wish license checks to take place as part of deploying Build Info to Artifactory (the Build Info Bill of Materials must be deployed to Artifactory for license checks to run). You can also set a list of recipients to be notified about license violations as soon as they occur. This way whenever a dependency with an unknown or unapproved license is added to the build recipients receive an immediate email notification and can tend to any potential license violation. Examining Build LicensesOnce the build has finished on the build server and Build Info has deployed to Artifactory, license checks are run. The build license information is available under the Artifacts tab and then The licenses tabs contains information about all the dependencies used in the build (with selectable scopes) and the license they are associated with. You can export this information as a CSV file.
Inline License EditingAdmins can also change the license information directly from the decency in the table, using the
Running Manual License DiscoveryManually run the license discovery rules after a build has already run. There are several reasons why you may want to do this:
To trigger license discovery select the Any license conflicts are displayed to the right of the table, with the option to override the existing license information with the discovered license (you must have annotate permissions for the artifacts you want to override licenses for). Setting License Information ManuallyTo set license information for artifacts manually:
NOTE! that an artifact can be associated with multiple licenses.
Scanning artifact Maven/Ivy model for licenseAnother option for editing the license information is by scanning the Maven/Ivy model for licenses. Once you have the artifact selected in the tree browser go to the
License Information as PropertiesInternally, license information is stored as regular properties, using the built-in Therefore, all operations with properties are available to license information (searches, recursive assignment, property-based deployment and resolution etc.)
Licenses REST APILicense-oriented searches and management operations are available through the REST API. Refer to the REST API Documentation for usage information. Watch the ScreencastTo see the License Control Add-on in action you can watch the short demo screencast below. |








