Skip to content

Commit 80498cf

Browse files
committed
refactor(model): Make tests independent of Maven or SBT package managers
Avoid dependencies on expected results by copying them as a preparation for the Maven and SBT package manager implementations being moved. Apply some trivial formatting changes in related code along the way. Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 236997c commit 80498cf

File tree

7 files changed

+1493
-20
lines changed

7 files changed

+1493
-20
lines changed
Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
1+
---
2+
project:
3+
id: "Maven:org.ossreviewtoolkit.maven:maven-app:1.0-SNAPSHOT"
4+
definition_file_path: "plugins/package-managers/maven/src/funTest/assets/projects/synthetic/maven/app/pom.xml"
5+
authors:
6+
- "Google"
7+
- "The Apache Software Foundation"
8+
declared_licenses:
9+
- "Apache License, Version 2.0"
10+
declared_licenses_processed:
11+
spdx_expression: "Apache-2.0"
12+
mapped:
13+
Apache License, Version 2.0: "Apache-2.0"
14+
vcs:
15+
type: "Git"
16+
url: "https://example.com/git/repository.git"
17+
revision: ""
18+
path: ""
19+
vcs_processed:
20+
type: "Git"
21+
url: "<REPLACE_URL_PROCESSED>"
22+
revision: "<REPLACE_REVISION>"
23+
path: "plugins/package-managers/maven/src/funTest/assets/projects/synthetic/maven/app"
24+
homepage_url: "http://maven.apache.org"
25+
scopes:
26+
- name: "compile"
27+
dependencies:
28+
- id: "Maven:org.ossreviewtoolkit.maven:maven-lib:1.0-SNAPSHOT"
29+
linkage: "PROJECT_DYNAMIC"
30+
dependencies:
31+
- id: "Maven:org.apache.beam:beam-parent:2.3.0"
32+
- id: "Maven:org.apache.commons:commons-text:1.1"
33+
dependencies:
34+
- id: "Maven:org.apache.commons:commons-lang3:3.5"
35+
- id: "Maven:org.jenkins-ci:version-number:1.4"
36+
packages:
37+
- id: "Maven:org.apache.beam:beam-parent:2.3.0"
38+
purl: "pkg:maven/org.apache.beam/[email protected]"
39+
authors:
40+
- "Apache Software Foundation"
41+
- "The Apache Software Foundation"
42+
declared_licenses:
43+
- "Apache License, Version 2.0"
44+
declared_licenses_processed:
45+
spdx_expression: "Apache-2.0"
46+
mapped:
47+
Apache License, Version 2.0: "Apache-2.0"
48+
description: "Apache Beam provides a simple, Java-based interface\n for processing\
49+
\ virtually any size data. This artifact includes the parent POM\n for other\
50+
\ Beam artifacts."
51+
homepage_url: "http://beam.apache.org/"
52+
binary_artifact:
53+
url: "https://repo.maven.apache.org/maven2/org/apache/beam/beam-parent/2.3.0/beam-parent-2.3.0.pom"
54+
hash:
55+
value: "9e1ed0d1f714b13d0625fc9feb1410a7a2250424"
56+
algorithm: "SHA-1"
57+
source_artifact:
58+
url: "https://repo.maven.apache.org/maven2/org/apache/beam/beam-parent/2.3.0/beam-parent-2.3.0.pom"
59+
hash:
60+
value: "9e1ed0d1f714b13d0625fc9feb1410a7a2250424"
61+
algorithm: "SHA-1"
62+
vcs:
63+
type: "Git"
64+
url: "https://gitbox.apache.org/repos/asf/beam.git"
65+
revision: "v2.3.0-RC3"
66+
path: ""
67+
vcs_processed:
68+
type: "Git"
69+
url: "https://gitbox.apache.org/repos/asf/beam.git"
70+
revision: "v2.3.0-RC3"
71+
path: ""
72+
is_metadata_only: true
73+
- id: "Maven:org.apache.commons:commons-lang3:3.5"
74+
purl: "pkg:maven/org.apache.commons/[email protected]"
75+
authors:
76+
- "Benedikt Ritter"
77+
- "Carman Consulting, Inc."
78+
- "CollabNet, Inc."
79+
- "Duncan Jones"
80+
- "Fredrik Westermarck"
81+
- "Gary D. Gregory"
82+
- "Henri Yandell"
83+
- "Joerg Schaible"
84+
- "Loic Guibert"
85+
- "Matt Benson"
86+
- "Niall Pemberton"
87+
- "Oliver Heger"
88+
- "Paul Benedict"
89+
- "Rob Tompkins"
90+
- "Robert Burrell Donkin"
91+
- "SITA ATS Ltd"
92+
- "Steven Caswell"
93+
- "The Apache Software Foundation"
94+
declared_licenses:
95+
- "Apache License, Version 2.0"
96+
declared_licenses_processed:
97+
spdx_expression: "Apache-2.0"
98+
mapped:
99+
Apache License, Version 2.0: "Apache-2.0"
100+
description: "Apache Commons Lang, a package of Java utility classes for the\n \
101+
\ classes that are in java.lang's hierarchy, or are considered to be so\n standard\
102+
\ as to justify existence in java.lang."
103+
homepage_url: "http://commons.apache.org/proper/commons-lang/"
104+
binary_artifact:
105+
url: "https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar"
106+
hash:
107+
value: "6c6c702c89bfff3cd9e80b04d668c5e190d588c6"
108+
algorithm: "SHA-1"
109+
source_artifact:
110+
url: "https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5-sources.jar"
111+
hash:
112+
value: "f7d878153e86a1cdddf6b37850e00a9f8bff726f"
113+
algorithm: "SHA-1"
114+
vcs:
115+
type: "Git"
116+
url: "http://git-wip-us.apache.org/repos/asf/commons-lang.git"
117+
revision: "LANG_3_5"
118+
path: ""
119+
vcs_processed:
120+
type: "Git"
121+
url: "http://git-wip-us.apache.org/repos/asf/commons-lang.git"
122+
revision: "LANG_3_5"
123+
path: ""
124+
- id: "Maven:org.apache.commons:commons-text:1.1"
125+
purl: "pkg:maven/org.apache.commons/[email protected]"
126+
authors:
127+
- "Benedikt Ritter"
128+
- "Bruno P. Kinoshita"
129+
- "Gary Gregory"
130+
- "Rob Tompkins"
131+
- "The Apache Software Foundation"
132+
declared_licenses:
133+
- "Apache License, Version 2.0"
134+
declared_licenses_processed:
135+
spdx_expression: "Apache-2.0"
136+
mapped:
137+
Apache License, Version 2.0: "Apache-2.0"
138+
description: "Apache Commons Text is a library focused on algorithms working on\
139+
\ strings."
140+
homepage_url: "http://commons.apache.org/proper/commons-text/"
141+
binary_artifact:
142+
url: "https://repo.maven.apache.org/maven2/org/apache/commons/commons-text/1.1/commons-text-1.1.jar"
143+
hash:
144+
value: "c336bf600f44b88af356c8a85eef4af822b06a4d"
145+
algorithm: "SHA-1"
146+
source_artifact:
147+
url: "https://repo.maven.apache.org/maven2/org/apache/commons/commons-text/1.1/commons-text-1.1-sources.jar"
148+
hash:
149+
value: "f0770f7f0472bf120ada47beecadce4056fbd20a"
150+
algorithm: "SHA-1"
151+
vcs:
152+
type: "Git"
153+
url: "http://git-wip-us.apache.org/repos/asf/commons-text.git"
154+
revision: ""
155+
path: ""
156+
vcs_processed:
157+
type: "Git"
158+
url: "http://git-wip-us.apache.org/repos/asf/commons-text.git"
159+
revision: ""
160+
path: ""
161+
- id: "Maven:org.jenkins-ci:version-number:1.4"
162+
purl: "pkg:maven/org.jenkins-ci/[email protected]"
163+
declared_licenses:
164+
- "MIT License"
165+
declared_licenses_processed:
166+
spdx_expression: "MIT"
167+
mapped:
168+
MIT License: "MIT"
169+
description: ""
170+
homepage_url: "http://jenkins-ci.org/version-number/"
171+
binary_artifact:
172+
url: "https://repo.jenkins-ci.org/releases/org/jenkins-ci/version-number/1.4/version-number-1.4.jar"
173+
hash:
174+
value: "5d0f2ea16514c0ec8de86c102ce61a7837e45eb8"
175+
algorithm: "SHA-1"
176+
source_artifact:
177+
url: "https://repo.jenkins-ci.org/releases/org/jenkins-ci/version-number/1.4/version-number-1.4-sources.jar"
178+
hash:
179+
value: "ab4e04d731d43157f66d80e4a5daef33ce24f0c2"
180+
algorithm: "SHA-1"
181+
vcs:
182+
type: "Git"
183+
url: "git://github.com/jenkinsci/lib-version-number.git"
184+
revision: "version-number-1.4"
185+
path: ""
186+
vcs_processed:
187+
type: "Git"
188+
url: "https://github.com/jenkinsci/lib-version-number.git"
189+
revision: "version-number-1.4"
190+
path: ""

0 commit comments

Comments
 (0)