Fixed error.
This commit is contained in:
parent
d64e80ecb0
commit
10da527f71
|
@ -9,7 +9,7 @@ buildscript {
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: "idea"
|
apply plugin: "idea"
|
||||||
apply plugin: "java"
|
apply plugin: "java-library"
|
||||||
apply plugin: "groovy"
|
apply plugin: "groovy"
|
||||||
apply plugin: 'maven'
|
apply plugin: 'maven'
|
||||||
apply plugin: 'jacoco'
|
apply plugin: 'jacoco'
|
||||||
|
@ -27,8 +27,8 @@ repositories {
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
||||||
implementation("org.slf4j:slf4j-api:${slf4jVersion}")
|
implementation("org.slf4j:slf4j-api:${slf4jVersion}")
|
||||||
implementation('com.google.code.gson:gson:2.8.5')
|
api('com.google.code.gson:gson:2.8.5')
|
||||||
implementation("com.squareup.okhttp3:okhttp:4.1.0")
|
api("com.squareup.okhttp3:okhttp:4.1.0")
|
||||||
|
|
||||||
testImplementation("org.slf4j:slf4j-simple:${slf4jVersion}")
|
testImplementation("org.slf4j:slf4j-simple:${slf4jVersion}")
|
||||||
testImplementation('com.squareup.okhttp3:mockwebserver:4.1.0')
|
testImplementation('com.squareup.okhttp3:mockwebserver:4.1.0')
|
||||||
|
@ -57,10 +57,11 @@ bintray {
|
||||||
user = System.getenv('BINTRAY_USER')
|
user = System.getenv('BINTRAY_USER')
|
||||||
key = System.getenv('BINTRAY_KEY')
|
key = System.getenv('BINTRAY_KEY')
|
||||||
|
|
||||||
|
override = true
|
||||||
configurations = ['archives']
|
configurations = ['archives']
|
||||||
pkg {
|
pkg {
|
||||||
repo = "libs"
|
repo = "libs"
|
||||||
name = id
|
name = "libpaqle"
|
||||||
websiteUrl = siteUrl
|
websiteUrl = siteUrl
|
||||||
vcsUrl = gitUrl
|
vcsUrl = gitUrl
|
||||||
licenses = licenses
|
licenses = licenses
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
id = libpaqle
|
id = libpaqle
|
||||||
group = biz.nellemann.libs
|
group = biz.nellemann.libs
|
||||||
version = 1.0.1
|
version = 1.0.2
|
||||||
licenses = ['APACHE-2.0'] // or something else
|
licenses = ['APACHE-2.0'] // or something else
|
||||||
groovyVersion = 2.5.8
|
groovyVersion = 2.5.8
|
||||||
slf4jVersion = 1.7.28
|
slf4jVersion = 1.7.28
|
||||||
spockVersion = 1.3-groovy-2.5
|
spockVersion = 1.3-groovy-2.5
|
||||||
|
|
|
@ -19,17 +19,13 @@
|
||||||
|
|
||||||
package biz.nellemann.libpaqle;
|
package biz.nellemann.libpaqle;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import biz.nellemann.libpaqle.pojo.PaqleResponse;
|
import biz.nellemann.libpaqle.pojo.PaqleResponse;
|
||||||
|
import java.io.IOException;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
|
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
import com.google.gson.JsonSyntaxException;
|
import com.google.gson.JsonSyntaxException;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import okhttp3.Credentials;
|
import okhttp3.Credentials;
|
||||||
import okhttp3.OkHttpClient;
|
import okhttp3.OkHttpClient;
|
||||||
import okhttp3.Request;
|
import okhttp3.Request;
|
||||||
|
|
|
@ -29,7 +29,7 @@ public class News {
|
||||||
List<NewsHeadline> headline;
|
List<NewsHeadline> headline;
|
||||||
|
|
||||||
@SerializedName(value = "extract", alternate = {"Extract"})
|
@SerializedName(value = "extract", alternate = {"Extract"})
|
||||||
List<NewsHeadline> extract;
|
List<NewsExtract> extract;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
News": [
|
News": [
|
||||||
|
|
Loading…
Reference in a new issue