Skip to content

Commit

Permalink
add makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman3455 committed Dec 31, 2024
1 parent 36dc88a commit 933d042
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions app/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.DEFAULT_GOAL := build-run

clean:
./gradlew clean
build:
./gradlew build
installDist:
./gradlew installDist
dev:
./gradlew run
lint:
./gradlew checkstyleMain
test:
./gradlew test
report:
./gradlew jacocoTestReport

start: dev
build-run: clean build installDist lint test report

.PHONY: build
2 changes: 1 addition & 1 deletion app/src/main/java/hexlet/code/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static Javalin getApp() throws IOException, SQLException {
var dataSource = new HikariDataSource(hikariConfig);
var sql = readResourceFile("schema.sql");

log.info(sql);
// log.info(sql);
try (var connection = dataSource.getConnection();
var statement = connection.createStatement()) {
statement.execute(sql);
Expand Down

0 comments on commit 933d042

Please sign in to comment.