Search Gradle plugins

org.hibernate.testing.database-profile

Support for testing against multiple databases via profiles - defining, selecting and applying database profiles. Essentially augments `src/test/resources/hibernate.properties` file and possibly adding dependencies

https://github.com/hibernate/database-profile-plugin/README.adoc

Sources: https://github.com/hibernate/hibernate-matrix-testing

Version 2.0.0.Beta5 (latest)

Created 09 September 2020.

Support for testing against multiple databases via profiles

Add this plugin to your build using the plugins DSL:

plugins {
  id("org.hibernate.testing.database-profile") version "2.0.0.Beta5"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("org.hibernate.testing.database-profile:org.hibernate.testing.database-profile.gradle.plugin:2.0.0.Beta5")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("org.hibernate.testing.database-profile")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("org.hibernate.testing.database-profile:org.hibernate.testing.database-profile.gradle.plugin:2.0.0.Beta5")
      }
    }
    
    apply(plugin = "org.hibernate.testing.database-profile")
  • Applying plugins to all subprojects .