Skip to content

Commit

Permalink
Add task to generate license report into licenses folder. (#2239)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuraag Agrawal authored Feb 12, 2021
1 parent 66fe53b commit 1d4c150
Show file tree
Hide file tree
Showing 10 changed files with 1,073 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
*.bat text eol=crlf
*.cmd text eol=crlf

licenses/** linguist-generated
26 changes: 26 additions & 0 deletions javaagent-tooling/javaagent-tooling.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import com.github.jk1.license.render.InventoryMarkdownReportRenderer

plugins {
id "com.github.jk1.dependency-license-report" version "1.16"
}

group = 'io.opentelemetry.javaagent'

apply from: "$rootDir/gradle/java.gradle"
Expand Down Expand Up @@ -76,3 +82,23 @@ test.finalizedBy(tasks.register('testHelperInjection', Test) {
includeTestsMatching 'HelperInjectionTest'
}
})

licenseReport {
outputDir = rootProject.file("licenses")
renderers = [new InventoryMarkdownReportRenderer()]

configurations = ["compileClasspath"]

excludeGroups = [
"io.opentelemetry.instrumentation",
"io.opentelemetry.javaagent"
]
}

def cleanLicenses = tasks.register("cleanLicenses", Delete) {
delete(rootProject.file("licenses"))
}

tasks.named("generateLicenseReport").configure {
dependsOn(cleanLicenses)
}
180 changes: 180 additions & 0 deletions licenses/byte-buddy-1.10.18.jar/META-INF/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions licenses/byte-buddy-1.10.18.jar/META-INF/NOTICE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1d4c150

Please sign in to comment.