File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -182,6 +182,12 @@ dependencies:
182182 sha256: 2222222222222222222222222222222222222222222222222222222222222222
183183 cf_stacks:
184184 - cflinuxfs4
185+ - name: openjdk
186+ version: 17.0.19+11
187+ uri: https://example.com/openjdk-17.0.19+11.tar.gz
188+ sha256: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
189+ cf_stacks:
190+ - cflinuxfs4
185191- name: openjdk
186192 version: 21.0.5
187193 uri: https://example.com/openjdk-21.tar.gz
@@ -321,6 +327,14 @@ dependencies:
321327 Expect (dep .Name ).To (Equal ("openjdk" ))
322328 Expect (dep .Version ).To (Equal ("17.0.13" ))
323329 })
330+
331+ It ("resolves exact version with build metadata (X.Y.Z+W format)" , func () {
332+ os .Setenv ("BP_JAVA_VERSION" , "17.0.19+11" )
333+ dep , err := jres .GetJREVersion (ctx , "openjdk" )
334+ Expect (err ).NotTo (HaveOccurred ())
335+ Expect (dep .Name ).To (Equal ("openjdk" ))
336+ Expect (dep .Version ).To (Equal ("17.0.19+11" ))
337+ })
324338 })
325339
326340 Context ("without BP_JAVA_VERSION" , func () {
You can’t perform that action at this time.
0 commit comments