Git Product home page Git Product logo

Comments (3)

stevesaliman avatar stevesaliman commented on July 26, 2024

Is the issue with the generateSQL task?

If so, then this isn't a gradle plugin issue because your task doesn't use the plugin - it calls Liquibase directly.

You said that there was no file, but that when you left out the output file, it gave you SQL on the console. That makes me wonder if the SQL script is being generated, just in a different location. I don't know why it works differently calling liquibase from the CLI vs a JavaExec. The only things I can think of is argument order or classpath differences.

from liquibase-gradle-plugin.

ChristianHuff-DEV avatar ChristianHuff-DEV commented on July 26, 2024

Yes, the issue is the generateSQL task.

I searched the whole hard drive but couldn't find the generated file anywhere.

Since it works when I'm using the CLI I assumed it should also work when calling it directly. Furthermore when I change the parameter name to something other than --outputFile (i.e. --output-file), an error occurs. So it appears to be parsed successfully but then discarded.

SEVERE: Unexpected error running Liquibase: Unknown option: 'output-file'
liquibase.exception.CommandLineParsingException: Unknown option: 'output-file'
	at liquibase.integration.commandline.Main.parseOptionArgument(Main.java:1268)
	at liquibase.integration.commandline.Main.parseOptions(Main.java:1180)
	at liquibase.integration.commandline.Main$1.run(Main.java:284)
	at liquibase.integration.commandline.Main$1.run(Main.java:230)
	at liquibase.Scope.child(Scope.java:193)
	at liquibase.Scope.child(Scope.java:169)
	at liquibase.integration.commandline.Main.run(Main.java:230)
	at liquibase.integration.commandline.Main.main(Main.java:166)

from liquibase-gradle-plugin.

ChristianHuff-DEV avatar ChristianHuff-DEV commented on July 26, 2024

I switched to using the Docker image.

from liquibase-gradle-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.