| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5ba6913 commit 33a3d78
35 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,14 +15,17 @@ jobs: | |||
| 15 | 15 | runs-on: ubuntu-latest | |
| 16 | 16 | ||
| 17 | 17 | steps: | |
| 18 | - - uses: actions/checkout@v2 | ||
| 19 | - - name: Set up JDK 1.8 | ||
| 20 | - uses: actions/setup-java@v1 | ||
| 18 | + - uses: actions/checkout@v4 | ||
| 19 | + - name: Set up JDK 21 | ||
| 20 | + uses: actions/setup-java@v4 | ||
| 21 | 21 | with: | |
| 22 | - java-version: 1.8 | ||
| 22 | + java-version: '21' | ||
| 23 | + distribution: 'temurin' | ||
| 23 | 24 | - name: Grant execute permission for gradlew | |
| 24 | 25 | run: chmod +x gradlew | |
| 26 | + - name: Build with Gradle | ||
| 27 | + uses: gradle/actions/setup-gradle@v3 | ||
| 25 | 28 | - name: test | |
| 26 | 29 | run: ./gradlew test | |
| 27 | 30 | env: | |
| 28 | - API_KEY: ${{secrets.API_KEY}} | ||
| 31 | + SERPAPI_KEY: ${{secrets.SERPAPI_KEY}} | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | MIT License | |
| 2 | 2 | ||
| 3 | - Copyright (c) 2018-2024 SerpApi | ||
| 3 | + Copyright (c) 2018-2025 SerpApi | ||
| 4 | 4 | ||
| 5 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy | |
| 6 | 6 | of this software and associated documentation files (the "Software"), to deal | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -123,7 +123,7 @@ it prints the first 3 location matching Austin (Texas, Texas, Rochester) | |||
| 123 | 123 | Let's run a search to get a search_id. | |
| 124 | 124 | ```java | |
| 125 | 125 | Map<String, String> auth = new HashMap<>(); | |
| 126 | - auth.put("api_key", System.getenv("API_KEY")); | ||
| 126 | + auth.put("api_key", System.getenv("SERPAPI_KEY")); | ||
| 127 | 127 | SerpApi serpapi = new SerpApi(auth); | |
| 128 | 128 | ||
| 129 | 129 | Map<String, String> parameter = new HashMap<>(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -135,7 +135,7 @@ it prints the first 3 location matching Austin (Texas, Texas, Rochester) | |||
| 135 | 135 | Let's run a search to get a search_id. | |
| 136 | 136 | ```java | |
| 137 | 137 | Map<String, String> auth = new HashMap<>(); | |
| 138 | - auth.put("api_key", System.getenv("API_KEY")); | ||
| 138 | + auth.put("api_key", System.getenv("SERPAPI_KEY")); | ||
| 139 | 139 | SerpApi serpapi = new SerpApi(auth); | |
| 140 | 140 | ||
| 141 | 141 | Map<String, String> parameter = new HashMap<>(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,12 +9,12 @@ plugins { | |||
| 9 | 9 | ||
| 10 | 10 | // Package default | |
| 11 | 11 | archivesBaseName = 'serpapi' | |
| 12 | - version = '1.0.0' | ||
| 12 | + version = '1.1.0' | ||
| 13 | 13 | group = 'com.github.serpapi' | |
| 14 | 14 | ||
| 15 | 15 | // java version | |
| 16 | - sourceCompatibility = 1.8 | ||
| 17 | - targetCompatibility = 1.8 | ||
| 16 | + sourceCompatibility = 21 | ||
| 17 | + targetCompatibility = 21 | ||
| 18 | 18 | ||
| 19 | 19 | // Load repositories | |
| 20 | 20 | repositories { | |
@@ -65,6 +65,6 @@ publishing { | |||
| 65 | 65 | } | |
| 66 | 66 | ||
| 67 | 67 | wrapper { | |
| 68 | - gradleVersion = "7.3.3" | ||
| 68 | + gradleVersion = "8.5" | ||
| 69 | 69 | distributionType = Wrapper.DistributionType.ALL | |
| 70 | 70 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,9 @@ | |||
| 1 | 1 | .PHONY: build | |
| 2 | 2 | ||
| 3 | - ifndef API_KEY | ||
| 4 | - $(error "API_KEY must be defined") | ||
| 3 | + ifndef SERPAPI_KEY | ||
| 4 | + $(error "SERPAPI_KEY must be defined") | ||
| 5 | 5 | else | |
| 6 | - $(info "found API_KEY variable") | ||
| 6 | + $(info "found SERPAPI_KEY variable") | ||
| 7 | 7 | endif | |
| 8 | 8 | ||
| 9 | 9 | all: init clean build run | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,6 +14,9 @@ plugins { | |||
| 14 | 14 | id 'application' | |
| 15 | 15 | } | |
| 16 | 16 | ||
| 17 | + sourceCompatibility = 21 | ||
| 18 | + targetCompatibility = 21 | ||
| 19 | + | ||
| 17 | 20 | repositories { | |
| 18 | 21 | mavenCentral() | |
| 19 | 22 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | distributionBase=GRADLE_USER_HOME | |
| 2 | 2 | distributionPath=wrapper/dists | |
| 3 | - distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip | ||
| 3 | + distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-all.zip | ||
| 4 | 4 | zipStoreBase=GRADLE_USER_HOME | |
| 5 | 5 | zipStorePath=wrapper/dists | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ | |||
| 11 | 11 | /** | |
| 12 | 12 | * SerpApi wraps HTTP interaction with the service serpapi.com | |
| 13 | 13 | */ | |
| 14 | - public class SerpApi extends Exception { | ||
| 14 | + public class SerpApi { | ||
| 15 | 15 | ||
| 16 | 16 | /** | |
| 17 | 17 | * client parameters | |
| Back | FazBrowse Home | New Git URL |
0 commit comments