Skip to content

Commit decf9ca

Browse files
committed
wip
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent 1acacb8 commit decf9ca

5 files changed

+77
-0
lines changed

tools/src/test/resources/1.6/invalid-license-declared-concluded-mix-1.6.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"serialNumber": "urn:uuid:df628836-6b9b-41c9-a724-b44743c54d42",
66
"version": 1,
77
"metadata": {
8+
"lifecycles": [{"phase": "design"}],
89
"component": {
910
"type": "library",
1011
"group": "com.example",

tools/src/test/resources/1.6/invalid-license-declared-concluded-mix-1.6.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
This is not a real law-case!
88
-->
99
<metadata>
10+
<lifecycles><lifecycle><phase>design</phase></lifecycle></lifecycles>
1011
<component type="library">
1112
<group>com.example</group>
1213
<name>situation-A</name>

tools/src/test/resources/1.7/valid-license-declared-concluded-mix-1.7.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"serialNumber": "urn:uuid:df628836-6b9b-41c9-a724-b44743c54d42",
66
"version": 1,
77
"metadata": {
8+
"lifecycles": [{"phase": "design"}],
89
"component": {
910
"type": "library",
1011
"group": "com.example",
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# proto-file: schema/bom-1.7.proto
2+
# proto-message: Bom
3+
4+
# All license posture in here is for show-case ony.
5+
# This is not a real law-case!
6+
7+
spec_version: "1.7"
8+
version: 1
9+
serial_number: "urn:uuid:df628836-6b9b-41c9-a724-b44743c54d42"
10+
metadata: {
11+
lifecycles { phase: LIFECYCLE_PHASE_DESIGN }
12+
component: {
13+
type: CLASSIFICATION_LIBRARY
14+
group: "com.example"
15+
name: "situation-A"
16+
version: "1"
17+
description: "Multiple licenses: declared ids/names, and a concluded expression"
18+
licenses {
19+
license {
20+
id: "MIT"
21+
acknowledgement: LICENSE_ACKNOWLEDGEMENT_ENUMERATION_DECLARED
22+
}
23+
}
24+
licenses {
25+
license {
26+
id: "PostgreSQL"
27+
acknowledgement: LICENSE_ACKNOWLEDGEMENT_ENUMERATION_DECLARED
28+
}
29+
}
30+
licenses {
31+
license {
32+
name: "Apache Software License"
33+
acknowledgement: LICENSE_ACKNOWLEDGEMENT_ENUMERATION_DECLARED
34+
}
35+
}
36+
licenses {
37+
expression: "(MIT OR PostgreSQL OR Apache-2.0)"
38+
acknowledgement: LICENSE_ACKNOWLEDGEMENT_ENUMERATION_CONCLUDED
39+
}
40+
}
41+
}
42+
components {
43+
type: CLASSIFICATION_LIBRARY
44+
group: "com.example"
45+
name: "situation-B"
46+
version: "1"
47+
description: "Multiple license expressions: one declared, one concluded"
48+
licenses {
49+
expression: "MIT OR (GPL-3.0 OR GPL-2.0)"
50+
acknowledgement: LICENSE_ACKNOWLEDGEMENT_ENUMERATION_DECLARED
51+
}
52+
licenses {
53+
expression: "(GPL-3.0-only AND LGPL-2.0-only)"
54+
acknowledgement: LICENSE_ACKNOWLEDGEMENT_ENUMERATION_CONCLUDED
55+
}
56+
}
57+
components {
58+
type: CLASSIFICATION_LIBRARY
59+
group: "com.example"
60+
name: "situation-C"
61+
version: "1"
62+
description: "Multiple license: one declared expression, one concluded id"
63+
licenses {
64+
expression: "GPL-3.0-or-later OR GPL-2.0"
65+
acknowledgement: LICENSE_ACKNOWLEDGEMENT_ENUMERATION_DECLARED
66+
}
67+
licenses {
68+
license {
69+
id: "GPL-3.0-only"
70+
acknowledgement: LICENSE_ACKNOWLEDGEMENT_ENUMERATION_CONCLUDED
71+
}
72+
}
73+
}

tools/src/test/resources/1.7/valid-license-declared-concluded-mix-1.7.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
This is not a real law-case!
88
-->
99
<metadata>
10+
<lifecycles><lifecycle><phase>design</phase></lifecycle></lifecycles>
1011
<component type="library">
1112
<group>com.example</group>
1213
<name>situation-A</name>

0 commit comments

Comments
 (0)