You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ./gradlew liquibaseStatus
> Task :liquibaseStatus FAILED
liquibase-plugin: The 'changeLogFile' has been deprecated. Please use 'changelogFile'in your activity instead.
liquibase-plugin: Running the 'main' activity...
Error: Unable to initialize main class liquibase.integration.commandline.LiquibaseCommandLine
Caused by: java.lang.NoClassDefFoundError: picocli/CommandLine$IFactory
FAILURE: Build failed with an exception.
Create a Gradle project and execute ./gradlew liquibaseStatus
Related issues
While the resolution differs, a related issue exists where Maven also fails to execute Liquibase, as mentioned in #19518.
Suggest a Fix
As suggested in this section of the Liquibase Gradle plugin documentation, it appears necessary to add liquibaseRuntime 'info.picocli:picocli:4.6.1. Additionally, it seems we need to avoid passing empty string arguments to Liquibase.
openjdk version "19.0.1" 2022-10-18
OpenJDK Runtime Environment GraalVM CE 22.3.0 (build 19.0.1+10-jvmci-22.3-b08)
OpenJDK 64-Bit Server VM GraalVM CE 22.3.0 (build 19.0.1+10-jvmci-22.3-b08, mixed mode, sharing)
git version 2.39.2 (Apple Git-143)
node: v20.2.0
npm: 9.6.6
Docker version 23.0.6, build ef23cbc
JDL for the Entity configuration(s) entityName.json files generated in the .jhipster directory
JDL entity definitions
/**
* The Employee entity.
*/
entity Employee {
/**
* The firstname attribute.
*/
firstName String
lastName String
email String
phoneNumber String
hireDate Instant
salary Long
commissionPct Long
}
/**
* not an ignored comment
*/
entity Location {
streetAddress String
postalCode String
city String
stateProvince String
}
/**
* Task entity.\n@author The JHipster team.
*/
entity Task {
title String
description String
}
entity Department {
departmentName String required
}
entity Job {
jobTitle String
minSalary Long
maxSalary Long
}
entity Region {
regionName String
}
entity JobHistory {
startDate Instant
endDate Instant
language Language
}
entity Country {
countryName String
}
enum Language {
FRENCH,
ENGLISH,
SPANISH
}
relationship OneToOne {
Location{country} to Country
Department{location} to Location
JobHistory{job} to Job
JobHistory{department} to Department
JobHistory{employee} to Employee
Country{region} to Region
}
relationship OneToMany {
Employee{job} to Job
/**
* A relationship
*/
Department{employee} to Employee
}
relationship ManyToOne {
Employee{manager} to Employee
}
relationship ManyToMany {
Job{task(title)} to Task{job}
}
paginate Employee, JobHistory with infinite-scroll
paginate Job with pagination
search Employee, Location, Task, Department, Job, Region, JobHistory, Country with no
service Location, Task, Department, Region, JobHistory, Country with serviceImpl
Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System
Checking this box is mandatory (this is just to show you read everything)
The text was updated successfully, but these errors were encountered:
Overview of the issue
The following commands fail to execute:
Motivation for or Use Case
The commands from the Database updates with the liquibase plugin section in the JHipster documentation do not work as expected.
Reproduce the error
Create a Gradle project and execute
./gradlew liquibaseStatus
Related issues
While the resolution differs, a related issue exists where Maven also fails to execute Liquibase, as mentioned in #19518.
Suggest a Fix
As suggested in this section of the Liquibase Gradle plugin documentation, it appears necessary to add
liquibaseRuntime 'info.picocli:picocli:4.6.1
. Additionally, it seems we need to avoid passing empty string arguments to Liquibase.I will submit a PR to address this issue shortly.
JHipster Version(s)
v8.0.0-beta.1
JHipster configuration
.yo-rc.json file
Environment and Tools
openjdk version "19.0.1" 2022-10-18
OpenJDK Runtime Environment GraalVM CE 22.3.0 (build 19.0.1+10-jvmci-22.3-b08)
OpenJDK 64-Bit Server VM GraalVM CE 22.3.0 (build 19.0.1+10-jvmci-22.3-b08, mixed mode, sharing)
git version 2.39.2 (Apple Git-143)
node: v20.2.0
npm: 9.6.6
Docker version 23.0.6, build ef23cbc
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System
The text was updated successfully, but these errors were encountered: