postgresql-embedded-gradle-plugin

Gradle plugin for https://github.com/yandex-qatools/postgresql-embedded

License

License

Categories

Categories

Gradle Build Tools PostgreSQL Data Databases
GroupId

GroupId

ru.itbasis.gradle.plugins
ArtifactId

ArtifactId

postgresql-embedded-gradle-plugin
Last Version

Last Version

2.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

postgresql-embedded-gradle-plugin
Gradle plugin for https://github.com/yandex-qatools/postgresql-embedded
Project URL

Project URL

https://github.com/itbasis/postgresql-embedded-gradle-plugin
Source Code Management

Source Code Management

https://github.com/itbasis/postgresql-embedded-gradle-plugin

Download postgresql-embedded-gradle-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/ru.itbasis.gradle.plugins/postgresql-embedded-gradle-plugin/ -->
<dependency>
    <groupId>ru.itbasis.gradle.plugins</groupId>
    <artifactId>postgresql-embedded-gradle-plugin</artifactId>
    <version>2.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/ru.itbasis.gradle.plugins/postgresql-embedded-gradle-plugin/
implementation 'ru.itbasis.gradle.plugins:postgresql-embedded-gradle-plugin:2.1.1'
// https://jarcasting.com/artifacts/ru.itbasis.gradle.plugins/postgresql-embedded-gradle-plugin/
implementation ("ru.itbasis.gradle.plugins:postgresql-embedded-gradle-plugin:2.1.1")
'ru.itbasis.gradle.plugins:postgresql-embedded-gradle-plugin:jar:2.1.1'
<dependency org="ru.itbasis.gradle.plugins" name="postgresql-embedded-gradle-plugin" rev="2.1.1">
  <artifact name="postgresql-embedded-gradle-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='ru.itbasis.gradle.plugins', module='postgresql-embedded-gradle-plugin', version='2.1.1')
)
libraryDependencies += "ru.itbasis.gradle.plugins" % "postgresql-embedded-gradle-plugin" % "2.1.1"
[ru.itbasis.gradle.plugins/postgresql-embedded-gradle-plugin "2.1.1"]

Dependencies

compile (1)

Group / Artifact Type Version
ru.yandex.qatools.embed : postgresql-embedded jar RELEASE

test (2)

Group / Artifact Type Version
junit : junit jar RELEASE
org.hamcrest : hamcrest-library jar RELEASE

Project Modules

There are no modules declared in this project.

PostgreSQL Embedded Server Gradle plugin

Build status Build status

A plugin that adds the ability to start/stop Embedded PostgreSQL Server while executing Gradle tasks. After the server is started, environment variables are added to all dependent tasks of the JavaForkOptions type with the description of the running server.

apply plugin: https://plugins.gradle.org/plugin/ru.itbasis.gradle.plugins.postgresql-embedded-gradle-plugin

Environment & System environment

Java example, Spring properties example

default names
POSTGRES_HOST
POSTGRES_PORT
POSTGRES_DB_NAME
POSTGRES_USER
POSTGRES_PASSWORD
POSTGRES_JDBC

Extension properties

source

parameter default value
version PRODUCTION
host localhost
port 0 (find free port)
dbName postgres
user postgres
password postgres
addParams (empty list)
runtimeConfig view source code
environmentNames view source code

Examples

TODO

  • append multiple instance
ru.itbasis.gradle.plugins

Versions

Version
2.1.1
2.1