W-Larsen / reputation-telegram-bot

2 stars 1 forks source link

gradlew update fails #52

Open sqpp opened 3 years ago

sqpp commented 3 years ago

Hello.

So I have set up everything at this point as far as I know.


root@vmi648245:/home/realis/reputation-telegram-bot# docker-compose up
Recreating reputation-telegram-bot_postgres_1 ... done
Attaching to reputation-telegram-bot_postgres_1
postgres_1  | 
postgres_1  | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres_1  | 
postgres_1  | 2021-08-13 22:48:01.503 UTC [1] LOG:  starting PostgreSQL 13.4 (Debian 13.4-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
postgres_1  | 2021-08-13 22:48:01.504 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres_1  | 2021-08-13 22:48:01.505 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres_1  | 2021-08-13 22:48:01.516 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1  | 2021-08-13 22:48:01.525 UTC [27] LOG:  database system was shut down at 2021-08-13 22:47:46 UTC
postgres_1  | 2021-08-13 22:48:01.532 UTC [1] LOG:  database system is ready to accept connections

However, when trying to run gradlew update I get this:

realis@vmi648245:~/reputation-telegram-bot$ sudo ./gradlew update
> Task :update FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':update'.
> No liquibaseRuntime dependencies were defined.  You must at least add Liquibase itself as a liquibaseRuntime dependency.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
1 actionable task: 1 executed

Can you please advise here?

W-Larsen commented 3 years ago

Hello.

Sorry for the late reply.

Just add liquibase dependencies and make sure that you setted up all necessary environment variables for liquibase (JDBC_DATABASE_URL, JDBC_DATABASE_USERNAME, JDBC_DATABASE_PASSWORD)

On Sat, Aug 14, 2021 at 1:58 AM Csendes @.***> wrote:

Hello.

So I have set up everything at this point as far as I know.

@.***:/home/realis/reputation-telegram-bot# docker-compose up Recreating reputation-telegram-bot_postgres_1 ... done Attaching to reputation-telegram-bot_postgres_1 postgres_1 | postgres_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization postgres_1 | postgres_1 | 2021-08-13 22:48:01.503 UTC [1] LOG: starting PostgreSQL 13.4 (Debian 13.4-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit postgres_1 | 2021-08-13 22:48:01.504 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 postgres_1 | 2021-08-13 22:48:01.505 UTC [1] LOG: listening on IPv6 address "::", port 5432 postgres_1 | 2021-08-13 22:48:01.516 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" postgres_1 | 2021-08-13 22:48:01.525 UTC [27] LOG: database system was shut down at 2021-08-13 22:47:46 UTC postgres_1 | 2021-08-13 22:48:01.532 UTC [1] LOG: database system is ready to accept connections

However, when trying to run gradlew update I get this:

@.***:~/reputation-telegram-bot$ sudo ./gradlew update

Task :update FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':update'.

    No liquibaseRuntime dependencies were defined. You must at least add Liquibase itself as a liquibaseRuntime dependency.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1s 1 actionable task: 1 executed

Can you please advise here?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/W-Larsen/reputation-telegram-bot/issues/52, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWHE5O2MLUE3XWW7PUFAXDT4WPQJANCNFSM5CENC6WQ .