Skip to content

0.16.0

Latest
Compare
Choose a tag to compare
@SgtSilvio SgtSilvio released this 09 Sep 11:11
· 40 commits to main since this release

🌟 Features

  • New and improved extension of test suites and test tasks: OciTestExtension
    (accessible via OciExtension.of(TestSuite/TaskProvider<Test>))
    Example of old version:
    ociImageDependencies.forTest(tasks.test) {
        runtime("foo:bar:1.2.3")
        val scope2Runtime = runtimeScope("scope2")
        scope2Runtime("foo:bar:2.3.4")
    }
    tasks.named("testOciRegistryData", oci.imagesTaskClass) {
        platformSelector = oci.platformSelector(oci.platform("linux", "amd64"))
    }
    Example of new version:
    oci.of(tasks.test) {
        imageDependencies {
            runtime("foo:bar:1.2.3")
        }
        imageDependencies("scope2") {
            runtime("foo:bar:2.3.4")
        }
        platformSelector = platformSelector(platform("linux", "amd64"))
    }
    • Added platformSelector property
    • Improved declaration of multiple image dependency scopes: imageDependencies, imageDependencies(scope)
    • Allow configuration on test suite and individual test tasks at the same time
      This allows to restrict platforms on different test suite targets

✨ Improvements

  • Improve recognizability of parent images as dependencies inside an image definition
    Example of old version:
    //imageDefinition.register("main") {
        //allPlatforms {
            parentImages {
                add("foo:bar:1.2.3")
            }
    Example of new version:
    //imageDefinition.register("main") {
        //allPlatforms {
            dependencies {
                runtime("foo:bar:1.2.3")
            }
    

ℹ️ Miscellaneous

  • Updated dependencies