From 874a926bb3cbacfc466f240c9b0aee24ad9ac59c Mon Sep 17 00:00:00 2001 From: Kevin Viet Date: Wed, 18 Oct 2023 05:04:47 +0200 Subject: [PATCH] fix: downgrade SLF4J to 1.7 Closes: #990 Co-authored-by: Gauthier Roebroeck --- Makefile | 2 +- Makefile.common | 2 +- pom.xml | 2 +- src/main/java/org/sqlite/JDBC.java | 2 +- .../java/org/sqlite/SQLiteJDBCLoader.java | 30 ++++++++----------- src/main/java/org/sqlite/core/NativeDB.java | 18 +++++------ .../sqlite/jdbc3/JDBC3DatabaseMetaData.java | 6 ++-- .../java/org/sqlite/jdbc3/JDBC3Statement.java | 2 +- src/main/java/org/sqlite/util/OSInfo.java | 8 ++--- 9 files changed, 31 insertions(+), 41 deletions(-) diff --git a/Makefile b/Makefile index 5bf5df041c..0315b6585b 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ $(SQLITE_UNPACKED): $(SQLITE_ARCHIVE) $(JAVA_CLASSPATH): @mkdir -p $(@D) - curl -L -f -o$@ https://search.maven.org/remotecontent?filepath=org/slf4j/slf4j-api/2.0.9/slf4j-api-2.0.9.jar + curl -L -f -o$@ https://search.maven.org/remotecontent?filepath=org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar $(TARGET)/common-lib/org/sqlite/%.class: src/main/java/org/sqlite/%.java @mkdir -p $(@D) diff --git a/Makefile.common b/Makefile.common index e78ce60c19..c435e7cebb 100644 --- a/Makefile.common +++ b/Makefile.common @@ -18,7 +18,7 @@ JAVA_CLASSPATH:=$(TARGET)/classpath/slf4j-api.jar ifeq ("$(wildcard $(OSINFO_PROG))","") $(info Building OSInfo tool) $(shell mkdir -p $(TARGET)/classpath) -$(shell curl -L -f -o$(JAVA_CLASSPATH) https://search.maven.org/remotecontent?filepath=org/slf4j/slf4j-api/2.0.9/slf4j-api-2.0.9.jar) +$(shell curl -L -f -o$(JAVA_CLASSPATH) https://search.maven.org/remotecontent?filepath=org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar) $(shell $(JAVAC) -cp $(JAVA_CLASSPATH) -sourcepath $(SRC) -d lib src/main/java/org/sqlite/util/OSInfo.java) endif diff --git a/pom.xml b/pom.xml index b2f42ab0eb..f654d08981 100644 --- a/pom.xml +++ b/pom.xml @@ -408,7 +408,7 @@ org.slf4j slf4j-api - 2.0.9 + 1.7.36