javaee-showcase/build.gradle

68 lines
1.5 KiB
Groovy
Raw Permalink Normal View History

2021-01-04 11:21:52 +00:00
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.bmuschko:gradle-cargo-plugin:2.6.1"
}
}
2021-01-05 12:01:57 +00:00
plugins {
id 'java'
id "org.flywaydb.flyway" version "7.4.0"
}
sourceCompatibility = '1.8'
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.postgresql', name: 'postgresql', version: '42.2.18'
}
2021-01-04 11:21:52 +00:00
subprojects {
group 'pl.tpolgrabia.trainings.javaee'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
2021-01-05 12:01:57 +00:00
apply plugin: 'java'
2021-01-04 11:21:52 +00:00
apply plugin: 'com.bmuschko.cargo'
2021-01-05 12:01:57 +00:00
sourceCompatibility = '1.8'
2021-01-04 11:21:52 +00:00
dependencies {
def cargoVersion = '1.6.5'
cargo "org.codehaus.cargo:cargo-core-uberjar:$cargoVersion",
"org.codehaus.cargo:cargo-ant:$cargoVersion"
}
cargo {
containerId = 'wildfly10x'
remote {
2021-01-05 12:01:57 +00:00
hostname = project.ext["javaeeshowcase.cargo.wildfly.hostname"]
username = project.ext["javaeeshowcase.cargo.wildfly.username"]
password = project.ext["javaeeshowcase.cargo.wildfly.password"]
2021-01-04 11:21:52 +00:00
containerProperties {
property 'cargo.jboss.management-http.port',
2021-01-05 12:01:57 +00:00
project.ext["javaeeshowcase.cargo.wildfly.port"]
2021-01-04 11:21:52 +00:00
}
}
}
}
2021-01-05 12:01:57 +00:00
flyway {
url = project.ext['javaeeshowcase.flyway.url']
user = project.ext['javaeeshowcase.flyway.username']
password = project.ext['javaeeshowcase.flyway.password']
2021-01-26 17:15:28 +00:00
schemas = project.ext['javaeeshowcase.flyway.schemas'].split(',')
2021-01-05 12:01:57 +00:00
}