I am using org.hibernate.gradle.tools version 1.2.5 (latest) like so:
plugins {
id "org.hibernate.gradle.tools" version "1.2.5"
}
and
apply plugin: "org.hibernate.gradle.tools"
I have the user and password defined in the database section like so:
import org.hibernate.gradle.tools.Schema
database{
user = "foo"
password = "bar"
basePackage = "baz"
url = "jdbc:mysql://localhost"
dialect = "org.hibernate.dialect.MySQL5Dialect"
catalog = ["dbname" : new Schema("dbname",".*")]
}
But when I run ./gradlew clean hbm2java I keep getting a pop up dialog asking for the user and password. I went through the plugin code and it should come from project.database.user and project.database.password respectively:
https://github.com/institut-de-genomique/hibernatetools-gradle-plugin
I have played around with other settings and they are in fact coming from the database section.
Any ideas?
Here are my dependencies just in case:
dependencies {
compile('org.springframework.boot:spring-boot-starter-web')
testCompile('org.springframework.boot:spring-boot-starter-test')
compile 'org.springframework.boot:spring-boot-starter-data-jpa'
compile 'org.hibernate:hibernate-core'
runtime 'mysql:mysql-connector-java'
runtime 'org.springframework.boot:spring-boot-devtools'
}