From bae02b6ae73dda47dc86590b73c21a85bb7273a5 Mon Sep 17 00:00:00 2001 From: mo khan Date: Tue, 14 Apr 2020 12:50:13 -0600 Subject: Migrate specs from gitlab-org/security-products/license-management --- spec/fixtures/expected/java/gradle/v1.0.json | 365 ++++++++++++++ spec/fixtures/expected/java/gradle/v1.1.json | 526 +++++++++++++++++++++ spec/fixtures/expected/java/gradle/v2.0.json | 330 +++++++++++++ .../expected/java/maven-multimodules/v1.0.json | 94 ++++ .../expected/java/maven-multimodules/v1.1.json | 157 ++++++ .../expected/java/maven-multimodules/v2.0.json | 58 +++ spec/fixtures/expected/java/maven/v1.0.json | 365 ++++++++++++++ spec/fixtures/expected/java/maven/v1.1.json | 526 +++++++++++++++++++++ spec/fixtures/expected/java/maven/v2.0.json | 330 +++++++++++++ 9 files changed, 2751 insertions(+) create mode 100644 spec/fixtures/expected/java/gradle/v1.0.json create mode 100644 spec/fixtures/expected/java/gradle/v1.1.json create mode 100644 spec/fixtures/expected/java/gradle/v2.0.json create mode 100644 spec/fixtures/expected/java/maven-multimodules/v1.0.json create mode 100644 spec/fixtures/expected/java/maven-multimodules/v1.1.json create mode 100644 spec/fixtures/expected/java/maven-multimodules/v2.0.json create mode 100644 spec/fixtures/expected/java/maven/v1.0.json create mode 100644 spec/fixtures/expected/java/maven/v1.1.json create mode 100644 spec/fixtures/expected/java/maven/v2.0.json (limited to 'spec/fixtures/expected/java') diff --git a/spec/fixtures/expected/java/gradle/v1.0.json b/spec/fixtures/expected/java/gradle/v1.0.json new file mode 100644 index 0000000..f0bb0f5 --- /dev/null +++ b/spec/fixtures/expected/java/gradle/v1.0.json @@ -0,0 +1,365 @@ +{ + "licenses": [ + { + "count": 19, + "name": "Apache 2.0" + }, + { + "count": 2, + "name": "CDDL + GPLv2 with classpath exception" + }, + { + "count": 2, + "name": "MIT" + }, + { + "count": 1, + "name": "BSD" + }, + { + "count": 1, + "name": "LGPL, version 2.1, ASL, version 2" + }, + { + "count": 1, + "name": "Mozilla Public License 2.0" + } + ], + "dependencies": [ + { + "license": { + "name": "BSD", + "url": "http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29" + }, + "dependency": { + "name": "antlr", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "commons-beanutils", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "commons-io", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "commons-lang", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "commons-lang3", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "fastutil", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "findbugs-annotations", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "geode-common", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "geode-core", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "geode-json", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "jackson-annotations", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "jackson-core", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "jackson-databind", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "CDDL + GPLv2 with classpath exception" + }, + "dependency": { + "name": "javax.resource-api", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "CDDL + GPLv2 with classpath exception" + }, + "dependency": { + "name": "javax.transaction-api", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "jgroups", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "LGPL, version 2.1, ASL, version 2" + }, + "dependency": { + "name": "jna", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "MIT", + "url": "http://opensource.org/licenses/mit-license" + }, + "dependency": { + "name": "jopt-simple", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "log4j-api", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "log4j-core", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "maven-artifact", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "netty", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "plexus-utils", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Mozilla Public License 2.0", + "url": "https://www.mozilla.org/media/MPL/2.0/index.815ca599c9df.txt" + }, + "dependency": { + "name": "rhino", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "shiro-core", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "MIT", + "url": "http://opensource.org/licenses/mit-license" + }, + "dependency": { + "name": "slf4j-api", + "description": "", + "pathes": [ + "." + ] + } + } + ] +} diff --git a/spec/fixtures/expected/java/gradle/v1.1.json b/spec/fixtures/expected/java/gradle/v1.1.json new file mode 100644 index 0000000..e337e49 --- /dev/null +++ b/spec/fixtures/expected/java/gradle/v1.1.json @@ -0,0 +1,526 @@ +{ + "version": "1.1", + "licenses": [ + { + "count": 19, + "name": "Apache 2.0" + }, + { + "count": 2, + "name": "CDDL + GPLv2 with classpath exception" + }, + { + "count": 2, + "name": "MIT" + }, + { + "count": 1, + "name": "BSD" + }, + { + "count": 1, + "name": "LGPL, version 2.1, ASL, version 2" + }, + { + "count": 1, + "name": "Mozilla Public License 2.0" + } + ], + "dependencies": [ + { + "licenses": [ + { + "name": "BSD", + "url": "http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29" + } + ], + "license": { + "name": "BSD", + "url": "http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29" + }, + "dependency": { + "name": "antlr", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "commons-beanutils", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "commons-io", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "commons-lang", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "commons-lang3", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "fastutil", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "findbugs-annotations", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "geode-common", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "geode-core", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "geode-json", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "jackson-annotations", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "jackson-core", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "jackson-databind", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "CDDL + GPLv2 with classpath exception", + "url": "" + } + ], + "license": { + "name": "CDDL + GPLv2 with classpath exception" + }, + "dependency": { + "name": "javax.resource-api", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "CDDL + GPLv2 with classpath exception", + "url": "" + } + ], + "license": { + "name": "CDDL + GPLv2 with classpath exception" + }, + "dependency": { + "name": "javax.transaction-api", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "jgroups", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "ASL, version 2", + "url": "" + }, + { + "name": "LGPL, version 2.1", + "url": "" + } + ], + "license": { + "name": "LGPL, version 2.1, ASL, version 2" + }, + "dependency": { + "name": "jna", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "MIT", + "url": "http://opensource.org/licenses/mit-license" + } + ], + "license": { + "name": "MIT", + "url": "http://opensource.org/licenses/mit-license" + }, + "dependency": { + "name": "jopt-simple", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "log4j-api", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "log4j-core", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "maven-artifact", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "netty", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "plexus-utils", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Mozilla Public License 2.0", + "url": "https://www.mozilla.org/media/MPL/2.0/index.815ca599c9df.txt" + } + ], + "license": { + "name": "Mozilla Public License 2.0", + "url": "https://www.mozilla.org/media/MPL/2.0/index.815ca599c9df.txt" + }, + "dependency": { + "name": "rhino", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "shiro-core", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "MIT", + "url": "http://opensource.org/licenses/mit-license" + } + ], + "license": { + "name": "MIT", + "url": "http://opensource.org/licenses/mit-license" + }, + "dependency": { + "name": "slf4j-api", + "description": "", + "pathes": [ + "." + ] + } + } + ] +} diff --git a/spec/fixtures/expected/java/gradle/v2.0.json b/spec/fixtures/expected/java/gradle/v2.0.json new file mode 100644 index 0000000..4b4a06c --- /dev/null +++ b/spec/fixtures/expected/java/gradle/v2.0.json @@ -0,0 +1,330 @@ +{ + "version": "2.0", + "licenses": [ + { + "id": "Apache-2.0", + "name": "Apache License 2.0", + "url": "https://opensource.org/licenses/Apache-2.0", + "count": 20 + }, + { + "id": "cddl + gplv2 with classpath exception", + "name": "CDDL + GPLv2 with classpath exception", + "url": "", + "count": 2 + }, + { + "id": "MIT", + "name": "MIT License", + "url": "https://opensource.org/licenses/MIT", + "count": 2 + }, + { + "id": "BSD-4-Clause", + "name": "BSD 4-Clause \"Original\" or \"Old\" License", + "url": "http://directory.fsf.org/wiki/License:BSD_4Clause", + "count": 1 + }, + { + "id": "LGPL-2.1", + "name": "GNU Lesser General Public License v2.1 only", + "url": "https://opensource.org/licenses/LGPL-2.1", + "count": 1 + }, + { + "id": "MPL-2.0", + "name": "Mozilla Public License 2.0", + "url": "https://opensource.org/licenses/MPL-2.0", + "count": 1 + } + ], + "dependencies": [ + { + "name": "antlr", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "BSD-4-Clause" + ] + }, + { + "name": "commons-beanutils", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "commons-io", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "commons-lang", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "commons-lang3", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "fastutil", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "findbugs-annotations", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "geode-common", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "geode-core", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "geode-json", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "jackson-annotations", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "jackson-core", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "jackson-databind", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "javax.resource-api", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "cddl + gplv2 with classpath exception" + ] + }, + { + "name": "javax.transaction-api", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "cddl + gplv2 with classpath exception" + ] + }, + { + "name": "jgroups", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "jna", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0", + "LGPL-2.1" + ] + }, + { + "name": "jopt-simple", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "MIT" + ] + }, + { + "name": "log4j-api", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "log4j-core", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "maven-artifact", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "netty", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "plexus-utils", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "rhino", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "MPL-2.0" + ] + }, + { + "name": "shiro-core", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "slf4j-api", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "MIT" + ] + } + ] +} diff --git a/spec/fixtures/expected/java/maven-multimodules/v1.0.json b/spec/fixtures/expected/java/maven-multimodules/v1.0.json new file mode 100644 index 0000000..ac9f480 --- /dev/null +++ b/spec/fixtures/expected/java/maven-multimodules/v1.0.json @@ -0,0 +1,94 @@ +{ + "licenses": [ + { "count": 15, "name": "Apache 2.0" }, + { "count": 4, "name": "BSD" }, + { "count": 1, "name": "MPL 1.1, GNU Lesser General Public License version 2.1, Apache 2.0" }, + { "count": 1, "name": "unknown" } + ], + "dependencies": [ + { + "license": { "name": "BSD", "url": "http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29" }, + "dependency": { "name": "asm", "description": "", "pathes": [ "." ] } + }, + { + "license": { "name": "BSD", "url": "http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29" }, + "dependency": { "name": "asm-commons", "description": "", "pathes": [ "." ] } + }, + { + "license": { "name": "BSD", "url": "http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29" }, + "dependency": { "name": "asm-tree", "description": "", "pathes": [ "." ] } + }, + { + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "commons-fileupload", "description": "", "pathes": [ "." ] } + }, + { + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "commons-io", "description": "", "pathes": [ "." ] } + }, + { + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "commons-lang3", "description": "", "pathes": [ "." ] } + }, + { + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "freemarker", "description": "", "pathes": [ "." ] } + }, + { + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "jackson-annotations", "description": "", "pathes": [ "." ] } + }, + { + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "jackson-core", "description": "", "pathes": [ "." ] } + }, + { + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "jackson-databind", "description": "", "pathes": [ "." ] } + }, + { + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "jackson-dataformat-xml", "description": "", "pathes": [ "." ] } + }, + { + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "jackson-module-jaxb-annotations", "description": "", "pathes": [ "." ] } + }, + { + "license": { "name": "MPL 1.1, GNU Lesser General Public License version 2.1, Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "javassist", "description": "", "pathes": [ "." ] } + }, + { + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "log4j-api", "description": "", "pathes": [ "." ] } + }, + { + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "log4j-api", "description": "", "pathes": [ "." ] } + }, + { + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "log4j-core", "description": "", "pathes": [ "." ] } + }, + { + "license": { "name": "unknown" }, + "dependency": { "name": "model", "description": "", "pathes": [ "." ] } + }, + { + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "netty-all", "description": "", "pathes": [ "." ] } + }, + { + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "ognl", "description": "", "pathes": [ "." ] } + }, + { + "license": { "name": "BSD", "url": "http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29" }, + "dependency": { "name": "stax2-api", "description": "", "pathes": [ "." ] } + }, + { + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "struts2-core", "description": "", "pathes": [ "." ] } + } + ] +} diff --git a/spec/fixtures/expected/java/maven-multimodules/v1.1.json b/spec/fixtures/expected/java/maven-multimodules/v1.1.json new file mode 100644 index 0000000..a8e2841 --- /dev/null +++ b/spec/fixtures/expected/java/maven-multimodules/v1.1.json @@ -0,0 +1,157 @@ +{ + "version": "1.1", + "licenses": [ + { "count": 15, "name": "Apache 2.0" }, + { "count": 4, "name": "BSD" }, + { "count": 1, "name": "MPL 1.1, GNU Lesser General Public License version 2.1, Apache 2.0" }, + { "count": 1, "name": "unknown" } + ], + "dependencies": [ + { + "licenses": [ + { "name": "BSD", "url": "http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29" } + ], + "license": { "name": "BSD", "url": "http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29" }, + "dependency": { "name": "asm", "description": "", "pathes": [ "." ] } + }, + { + "licenses": [ { "name": "BSD", "url": "http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29" } ], + "license": { "name": "BSD", "url": "http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29" }, + "dependency": { "name": "asm-commons", "description": "", "pathes": [ "." ] } + }, + { + "licenses": [ { "name": "BSD", "url": "http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29" } ], + "license": { "name": "BSD", "url": "http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29" }, + "dependency": { "name": "asm-tree", "description": "", "pathes": [ "." ] } + }, + { + "licenses": [ { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" } ], + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "commons-fileupload", "description": "", "pathes": [ "." ] } + }, + { + "licenses": [ + { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" } + ], + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "commons-io", "description": "", "pathes": [ "." ] } + }, + { + "licenses": [ + { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" } + ], + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "commons-lang3", "description": "", "pathes": [ "." ] } + }, + { + "licenses": [ + { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" } + ], + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "freemarker", "description": "", "pathes": [ "." ] } + }, + { + "licenses": [ + { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" } + ], + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "jackson-annotations", "description": "", "pathes": [ "." ] } + }, + { + "licenses": [ + { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" } + ], + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "jackson-core", "description": "", "pathes": [ "." ] } + }, + { + "licenses": [ + { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" } + ], + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "jackson-databind", "description": "", "pathes": [ "." ] } + }, + { + "licenses": [ + { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" } + ], + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "jackson-dataformat-xml", "description": "", "pathes": [ "." ] } + }, + { + "licenses": [ + { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" } + ], + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "jackson-module-jaxb-annotations", "description": "", "pathes": [ "." ] } + }, + { + "licenses": [ + { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + { "name": "GNU Lesser General Public License version 2.1", "url": "https://opensource.org/licenses/LGPL-2.1" }, + { "name": "MPL 1.1", "url": "" } + ], + "license": { "name": "MPL 1.1, GNU Lesser General Public License version 2.1, Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "javassist", "description": "", "pathes": [ "." ] } + }, + { + "licenses": [ + { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" } + ], + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "log4j-api", "description": "", "pathes": [ "." ] } + }, + { + "licenses": [ + { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" } + ], + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "log4j-api", "description": "", "pathes": [ "." ] } + }, + { + "licenses": [ + { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" } + ], + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "log4j-core", "description": "", "pathes": [ "." ] } + }, + { + "licenses": [ + { "name": "unknown", "url": "" } + ], + "license": { "name": "unknown" }, + "dependency": { "name": "model", "description": "", "pathes": [ "." ] } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "netty-all", "description": "", "pathes": [ "." ] } + }, + { + "licenses": [ + { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" } + ], + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "ognl", "description": "", "pathes": [ "." ] } + }, + { + "licenses": [ + { "name": "BSD", "url": "http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29" } + ], + "license": { "name": "BSD", "url": "http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29" }, + "dependency": { "name": "stax2-api", "description": "", "pathes": [ "." ] } + }, + { + "licenses": [ + { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" } + ], + "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" }, + "dependency": { "name": "struts2-core", "description": "", "pathes": [ "." ] } + } + ] +} diff --git a/spec/fixtures/expected/java/maven-multimodules/v2.0.json b/spec/fixtures/expected/java/maven-multimodules/v2.0.json new file mode 100644 index 0000000..aa08ef9 --- /dev/null +++ b/spec/fixtures/expected/java/maven-multimodules/v2.0.json @@ -0,0 +1,58 @@ +{ + "version": "2.0", + "licenses": [ + { + "id": "Apache-2.0", + "name": "Apache License 2.0", + "url": "https://opensource.org/licenses/Apache-2.0", + "count": 16 + }, + { + "id": "BSD-4-Clause", + "name": "BSD 4-Clause \"Original\" or \"Old\" License", + "url": "http://directory.fsf.org/wiki/License:BSD_4Clause", + "count": 4 + }, + { + "id": "LGPL-2.1", + "name": "GNU Lesser General Public License v2.1 only", + "url": "https://opensource.org/licenses/LGPL-2.1", + "count": 1 + }, + { + "id": "MPL-1.1", + "name": "Mozilla Public License 1.1", + "url": "https://opensource.org/licenses/MPL-1.1", + "count": 1 + }, + { + "id": "unknown", + "name": "unknown", + "url": "", + "count": 1 + } + ], + "dependencies": [ + { "name": "asm", "url": "", "description": "", "paths": [ "." ], "licenses": [ "BSD-4-Clause" ] }, + { "name": "asm-commons", "url": "", "description": "", "paths": [ "." ], "licenses": [ "BSD-4-Clause" ] }, + { "name": "asm-tree", "url": "", "description": "", "paths": [ "." ], "licenses": [ "BSD-4-Clause" ] }, + { "name": "commons-fileupload", "url": "", "description": "", "paths": [ "." ], "licenses": [ "Apache-2.0" ] }, + { "name": "commons-io", "url": "", "description": "", "paths": [ "." ], "licenses": [ "Apache-2.0" ] }, + { "name": "commons-lang3", "url": "", "description": "", "paths": [ "." ], "licenses": [ "Apache-2.0" ] }, + { "name": "freemarker", "url": "", "description": "", "paths": [ "." ], "licenses": [ "Apache-2.0" ] }, + { "name": "jackson-annotations", "url": "", "description": "", "paths": [ "." ], "licenses": [ "Apache-2.0" ] }, + { "name": "jackson-core", "url": "", "description": "", "paths": [ "." ], "licenses": [ "Apache-2.0" ] }, + { "name": "jackson-databind", "url": "", "description": "", "paths": [ "." ], "licenses": [ "Apache-2.0" ] }, + { "name": "jackson-dataformat-xml", "url": "", "description": "", "paths": [ "." ], "licenses": [ "Apache-2.0" ] }, + { "name": "jackson-module-jaxb-annotations", "url": "", "description": "", "paths": [ "." ], "licenses": [ "Apache-2.0" ] }, + { "name": "javassist", "url": "", "description": "", "paths": [ "." ], "licenses": [ "Apache-2.0", "LGPL-2.1", "MPL-1.1" ] }, + { "name": "log4j-api", "url": "", "description": "", "paths": [ "." ], "licenses": [ "Apache-2.0" ] }, + { "name": "log4j-api", "url": "", "description": "", "paths": [ "." ], "licenses": [ "Apache-2.0" ] }, + { "name": "log4j-core", "url": "", "description": "", "paths": [ "." ], "licenses": [ "Apache-2.0" ] }, + { "name": "model", "url": "", "description": "", "paths": [ "." ], "licenses": [ "unknown" ] }, + { "name": "netty-all", "url": "", "description": "", "paths": [ "." ], "licenses": [ "Apache-2.0" ] }, + { "name": "ognl", "url": "", "description": "", "paths": [ "." ], "licenses": [ "Apache-2.0" ] }, + { "name": "stax2-api", "url": "", "description": "", "paths": [ "." ], "licenses": [ "BSD-4-Clause" ] }, + { "name": "struts2-core", "url": "", "description": "", "paths": [ "." ], "licenses": [ "Apache-2.0" ] } + ] +} diff --git a/spec/fixtures/expected/java/maven/v1.0.json b/spec/fixtures/expected/java/maven/v1.0.json new file mode 100644 index 0000000..f0bb0f5 --- /dev/null +++ b/spec/fixtures/expected/java/maven/v1.0.json @@ -0,0 +1,365 @@ +{ + "licenses": [ + { + "count": 19, + "name": "Apache 2.0" + }, + { + "count": 2, + "name": "CDDL + GPLv2 with classpath exception" + }, + { + "count": 2, + "name": "MIT" + }, + { + "count": 1, + "name": "BSD" + }, + { + "count": 1, + "name": "LGPL, version 2.1, ASL, version 2" + }, + { + "count": 1, + "name": "Mozilla Public License 2.0" + } + ], + "dependencies": [ + { + "license": { + "name": "BSD", + "url": "http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29" + }, + "dependency": { + "name": "antlr", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "commons-beanutils", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "commons-io", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "commons-lang", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "commons-lang3", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "fastutil", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "findbugs-annotations", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "geode-common", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "geode-core", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "geode-json", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "jackson-annotations", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "jackson-core", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "jackson-databind", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "CDDL + GPLv2 with classpath exception" + }, + "dependency": { + "name": "javax.resource-api", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "CDDL + GPLv2 with classpath exception" + }, + "dependency": { + "name": "javax.transaction-api", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "jgroups", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "LGPL, version 2.1, ASL, version 2" + }, + "dependency": { + "name": "jna", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "MIT", + "url": "http://opensource.org/licenses/mit-license" + }, + "dependency": { + "name": "jopt-simple", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "log4j-api", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "log4j-core", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "maven-artifact", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "netty", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "plexus-utils", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Mozilla Public License 2.0", + "url": "https://www.mozilla.org/media/MPL/2.0/index.815ca599c9df.txt" + }, + "dependency": { + "name": "rhino", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "shiro-core", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "license": { + "name": "MIT", + "url": "http://opensource.org/licenses/mit-license" + }, + "dependency": { + "name": "slf4j-api", + "description": "", + "pathes": [ + "." + ] + } + } + ] +} diff --git a/spec/fixtures/expected/java/maven/v1.1.json b/spec/fixtures/expected/java/maven/v1.1.json new file mode 100644 index 0000000..e337e49 --- /dev/null +++ b/spec/fixtures/expected/java/maven/v1.1.json @@ -0,0 +1,526 @@ +{ + "version": "1.1", + "licenses": [ + { + "count": 19, + "name": "Apache 2.0" + }, + { + "count": 2, + "name": "CDDL + GPLv2 with classpath exception" + }, + { + "count": 2, + "name": "MIT" + }, + { + "count": 1, + "name": "BSD" + }, + { + "count": 1, + "name": "LGPL, version 2.1, ASL, version 2" + }, + { + "count": 1, + "name": "Mozilla Public License 2.0" + } + ], + "dependencies": [ + { + "licenses": [ + { + "name": "BSD", + "url": "http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29" + } + ], + "license": { + "name": "BSD", + "url": "http://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29" + }, + "dependency": { + "name": "antlr", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "commons-beanutils", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "commons-io", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "commons-lang", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "commons-lang3", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "fastutil", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "findbugs-annotations", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "geode-common", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "geode-core", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "geode-json", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "jackson-annotations", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "jackson-core", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "jackson-databind", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "CDDL + GPLv2 with classpath exception", + "url": "" + } + ], + "license": { + "name": "CDDL + GPLv2 with classpath exception" + }, + "dependency": { + "name": "javax.resource-api", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "CDDL + GPLv2 with classpath exception", + "url": "" + } + ], + "license": { + "name": "CDDL + GPLv2 with classpath exception" + }, + "dependency": { + "name": "javax.transaction-api", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "jgroups", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "ASL, version 2", + "url": "" + }, + { + "name": "LGPL, version 2.1", + "url": "" + } + ], + "license": { + "name": "LGPL, version 2.1, ASL, version 2" + }, + "dependency": { + "name": "jna", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "MIT", + "url": "http://opensource.org/licenses/mit-license" + } + ], + "license": { + "name": "MIT", + "url": "http://opensource.org/licenses/mit-license" + }, + "dependency": { + "name": "jopt-simple", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "log4j-api", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "log4j-core", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "maven-artifact", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "netty", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "plexus-utils", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Mozilla Public License 2.0", + "url": "https://www.mozilla.org/media/MPL/2.0/index.815ca599c9df.txt" + } + ], + "license": { + "name": "Mozilla Public License 2.0", + "url": "https://www.mozilla.org/media/MPL/2.0/index.815ca599c9df.txt" + }, + "dependency": { + "name": "rhino", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + } + ], + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.txt" + }, + "dependency": { + "name": "shiro-core", + "description": "", + "pathes": [ + "." + ] + } + }, + { + "licenses": [ + { + "name": "MIT", + "url": "http://opensource.org/licenses/mit-license" + } + ], + "license": { + "name": "MIT", + "url": "http://opensource.org/licenses/mit-license" + }, + "dependency": { + "name": "slf4j-api", + "description": "", + "pathes": [ + "." + ] + } + } + ] +} diff --git a/spec/fixtures/expected/java/maven/v2.0.json b/spec/fixtures/expected/java/maven/v2.0.json new file mode 100644 index 0000000..4b4a06c --- /dev/null +++ b/spec/fixtures/expected/java/maven/v2.0.json @@ -0,0 +1,330 @@ +{ + "version": "2.0", + "licenses": [ + { + "id": "Apache-2.0", + "name": "Apache License 2.0", + "url": "https://opensource.org/licenses/Apache-2.0", + "count": 20 + }, + { + "id": "cddl + gplv2 with classpath exception", + "name": "CDDL + GPLv2 with classpath exception", + "url": "", + "count": 2 + }, + { + "id": "MIT", + "name": "MIT License", + "url": "https://opensource.org/licenses/MIT", + "count": 2 + }, + { + "id": "BSD-4-Clause", + "name": "BSD 4-Clause \"Original\" or \"Old\" License", + "url": "http://directory.fsf.org/wiki/License:BSD_4Clause", + "count": 1 + }, + { + "id": "LGPL-2.1", + "name": "GNU Lesser General Public License v2.1 only", + "url": "https://opensource.org/licenses/LGPL-2.1", + "count": 1 + }, + { + "id": "MPL-2.0", + "name": "Mozilla Public License 2.0", + "url": "https://opensource.org/licenses/MPL-2.0", + "count": 1 + } + ], + "dependencies": [ + { + "name": "antlr", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "BSD-4-Clause" + ] + }, + { + "name": "commons-beanutils", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "commons-io", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "commons-lang", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "commons-lang3", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "fastutil", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "findbugs-annotations", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "geode-common", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "geode-core", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "geode-json", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "jackson-annotations", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "jackson-core", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "jackson-databind", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "javax.resource-api", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "cddl + gplv2 with classpath exception" + ] + }, + { + "name": "javax.transaction-api", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "cddl + gplv2 with classpath exception" + ] + }, + { + "name": "jgroups", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "jna", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0", + "LGPL-2.1" + ] + }, + { + "name": "jopt-simple", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "MIT" + ] + }, + { + "name": "log4j-api", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "log4j-core", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "maven-artifact", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "netty", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "plexus-utils", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "rhino", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "MPL-2.0" + ] + }, + { + "name": "shiro-core", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "name": "slf4j-api", + "url": "", + "description": "", + "paths": [ + "." + ], + "licenses": [ + "MIT" + ] + } + ] +} -- cgit v1.2.3