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
plugins {
id 'org.liquibase.gradle' version '2.2.0'
id 'org.springframework.boot' version "${springBootVersion}"
id 'io.spring.dependency-management' version "${springDependencyManagementVersion}"
id 'war'
id 'jacoco'
id 'idea'
id 'org.sonarqube' version "${sonarVersion}"
id 'com.adarshr.test-logger' version '2.1.1'
id 'application'
}
liquibase {
activities {
main {
changelogFile 'src/main/resources/db/changelog/db.changelog-master.yaml'
url 'jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1'
username 'sa'
password ''
}
}
}
...} IntelliJ is giving me warnings that the 'main' in 'build' cannot be applied to '(groovy.lang.Closure)' . I ca still run and build the project but I still get that warning from IntelliJ. When I try to add a task to the build.gradle file like this:tasks.register('updateDatabase', LiquibaseTask) {
group = 'liquibase'
description = 'Update the database with the latest changes.'
activities.main.action = 'update'
}`
I can run 'gradle clan build' but if I try to run ' gradle rollbackDatabase' I get this error:
`> Could not create task ':task-dispatcher-service:rollbackDatabase'.
Could not get unknown property 'activities' for task ':task-dispatcher-service:rollbackDatabase' of type org.liquibase.gradle.LiquibaseTask.
`
Any way to fix this?
The text was updated successfully, but these errors were encountered:
Take a look at this fragment of build.gradle:
`
import org.liquibase.gradle.LiquibaseTask
buildscript {
ext {
. . . .
}
}
plugins {
id 'org.liquibase.gradle' version '2.2.0'
id 'org.springframework.boot' version "${springBootVersion}"
id 'io.spring.dependency-management' version "${springDependencyManagementVersion}"
id 'war'
id 'jacoco'
id 'idea'
id 'org.sonarqube' version "${sonarVersion}"
id 'com.adarshr.test-logger' version '2.1.1'
id 'application'
}
version = "$proj_version"
sourceSets {
test {
java {
srcDirs = ['src/test/java']
}
}
}
dependencies {
}
liquibase {
activities {
main {
changelogFile 'src/main/resources/db/changelog/db.changelog-master.yaml'
url 'jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1'
username 'sa'
password ''
}
}
}
...}
IntelliJ is giving me warnings that the 'main' in 'build' cannot be applied to '(groovy.lang.Closure)' . I ca still run and build the project but I still get that warning from IntelliJ. When I try to add a task to the build.gradle file like this:
tasks.register('updateDatabase', LiquibaseTask) {group = 'liquibase'
description = 'Update the database with the latest changes.'
activities.main.action = 'update'
}`
I can run 'gradle clan build' but if I try to run ' gradle rollbackDatabase' I get this error:
`> Could not create task ':task-dispatcher-service:rollbackDatabase'.
The text was updated successfully, but these errors were encountered: