Skip to content

Commit 57f1420

Browse files
committed
use jar file jitpack instead of build
1 parent 2d72964 commit 57f1420

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

demo/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ else
66
$(info "found API_KEY variable")
77
endif
88

9-
all: init clean dep build run
9+
all: init clean build run
1010

1111
init:
1212
gradle wrapper
@@ -15,6 +15,7 @@ init:
1515
clean:
1616
./gradlew clean
1717

18+
# optional step if building from local source instead of downloading jar file form jitpack.io
1819
dep:
1920
$(MAKE) -C ../ build
2021
rm -rf libs

demo/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ repositories {
2222

2323
dependencies {
2424
// local jar file
25-
implementation fileTree(dir: "./libs", includes: ['*.jar'])
26-
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
25+
// implementation fileTree(dir: "./libs", includes: ['*.jar'])
2726
// download jar file from github over jitpack
28-
//implementation 'com.github.serpapi:serpapi:1.0.0'
27+
implementation 'com.github.serpapi:serpapi-java:1.0.0'
28+
// JSON dependencies
29+
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
2930
}
3031

3132
// Define the main class for the application

0 commit comments

Comments
 (0)