Updated dependencies
This commit is contained in:
parent
c48a9c902e
commit
56fa17703c
8 changed files with 19 additions and 29 deletions
10
.idea/runConfigurations.xml
generated
10
.idea/runConfigurations.xml
generated
|
@ -1,10 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="RunConfigurationProducerService">
|
|
||||||
<option name="ignoredProducers">
|
|
||||||
<set>
|
|
||||||
<option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
|
|
||||||
</set>
|
|
||||||
</option>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
14
README.md
14
README.md
|
@ -1,6 +1,6 @@
|
||||||
# [Pinboard](https://pinboard.in) Poster for Kotlin/Java
|
# [Pinboard](https://pinboard.in) Poster for Kotlin/Java
|
||||||
|
|
||||||
[](http://opensource.org/licenses/BSD-3-Clause) [](https://github.com/ethauvin/pinboard-poster/releases/latest) [](https://search.maven.org/search?q=g:%22net.thauvin.erik%22%20AND%20a:%22pinboard-poster%22)
|
[](https://opensource.org/licenses/BSD-3-Clause) [](https://github.com/ethauvin/pinboard-poster/releases/latest) [](https://search.maven.org/search?q=g:%22net.thauvin.erik%22%20AND%20a:%22pinboard-poster%22)
|
||||||
|
|
||||||
[](https://snyk.io/test/github/ethauvin/pinboard-poster?targetFile=pom.xml) [](https://sonarcloud.io/dashboard?id=ethauvin_pinboard-poster) [](https://github.com/ethauvin/pinboard-poster/actions/workflows/gradle.yml) [](https://circleci.com/gh/ethauvin/pinboard-poster/tree/master)
|
[](https://snyk.io/test/github/ethauvin/pinboard-poster?targetFile=pom.xml) [](https://sonarcloud.io/dashboard?id=ethauvin_pinboard-poster) [](https://github.com/ethauvin/pinboard-poster/actions/workflows/gradle.yml) [](https://circleci.com/gh/ethauvin/pinboard-poster/tree/master)
|
||||||
|
|
||||||
|
@ -14,8 +14,8 @@ A small Kotlin/Java/Android library for posting to [Pinboard](https://pinboard.i
|
||||||
|
|
||||||
val poster = PinboardPoster("user:TOKEN")
|
val poster = PinboardPoster("user:TOKEN")
|
||||||
|
|
||||||
poster.addPin("http://www.example.com/foo", "This is a test")
|
poster.addPin("https://www.example.com/foo", "This is a test")
|
||||||
poster.deletePin("http:///www.example.com/bar")
|
poster.deletePin("https:///www.example.com/bar")
|
||||||
|
|
||||||
```
|
```
|
||||||
[View Example](https://github.com/ethauvin/pinboard-poster/blob/master/samples/kotlin/src/main/kotlin/net/thauvin/erik/pinboard/samples/KotlinExample.kt)
|
[View Example](https://github.com/ethauvin/pinboard-poster/blob/master/samples/kotlin/src/main/kotlin/net/thauvin/erik/pinboard/samples/KotlinExample.kt)
|
||||||
|
@ -25,8 +25,8 @@ poster.deletePin("http:///www.example.com/bar")
|
||||||
|
|
||||||
final PinboardPoster poster = new PinBboardPoster("user:TOKEN");
|
final PinboardPoster poster = new PinBboardPoster("user:TOKEN");
|
||||||
|
|
||||||
poster.addPin("http://www.example.com/foo", "This is a test");
|
poster.addPin("https://www.example.com/foo", "This is a test");
|
||||||
poster.deletePin("http:///www.example.com/bar");
|
poster.deletePin("https:///www.example.com/bar");
|
||||||
```
|
```
|
||||||
[View Example](https://github.com/ethauvin/pinboard-poster/blob/master/samples/java/src/main/java/net/thauvin/erik/pinboard/samples/JavaExample.java)
|
[View Example](https://github.com/ethauvin/pinboard-poster/blob/master/samples/java/src/main/java/net/thauvin/erik/pinboard/samples/JavaExample.java)
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ Instructions for using with Maven, Ivy, etc. can be found on [Maven Central](htt
|
||||||
The `addPin` function support all of the [Pinboard API parameters](https://pinboard.in/api/#posts_add):
|
The `addPin` function support all of the [Pinboard API parameters](https://pinboard.in/api/#posts_add):
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
poster.addPin(url = "http://www.example.com",
|
poster.addPin(url = "https://www.example.com",
|
||||||
description = "This is the title",
|
description = "This is the title",
|
||||||
extended = "This is the extended description.",
|
extended = "This is the extended description.",
|
||||||
tags = "tag1 tag2 tag3",
|
tags = "tag1 tag2 tag3",
|
||||||
|
@ -70,7 +70,7 @@ It returns `true` if the bookmark was added successfully, `false` otherwise.
|
||||||
The `deletePin` function support all of the [Pinboard API parameters](https://pinboard.in/api/#posts_delete):
|
The `deletePin` function support all of the [Pinboard API parameters](https://pinboard.in/api/#posts_delete):
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
poster.deletePin(url = "http://www.example.com/")
|
poster.deletePin(url = "https://www.example.com/")
|
||||||
```
|
```
|
||||||
|
|
||||||
It returns `true` if the bookmark was deleted successfully, `false` otherwise.
|
It returns `true` if the bookmark was deleted successfully, `false` otherwise.
|
||||||
|
|
|
@ -4,15 +4,15 @@ import org.gradle.api.tasks.testing.logging.TestExceptionFormat
|
||||||
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("com.github.ben-manes.versions") version "0.40.0"
|
id("com.github.ben-manes.versions") version "0.42.0"
|
||||||
id("io.gitlab.arturbosch.detekt") version "1.19.0"
|
id("io.gitlab.arturbosch.detekt") version "1.20.0"
|
||||||
id("java")
|
id("java")
|
||||||
id("maven-publish")
|
id("maven-publish")
|
||||||
id("org.jetbrains.dokka") version "1.6.10"
|
id("org.jetbrains.dokka") version "1.6.21"
|
||||||
id("org.jetbrains.kotlinx.kover") version "0.4.4"
|
id("org.jetbrains.kotlinx.kover") version "0.5.0"
|
||||||
id("org.sonarqube") version "3.3"
|
id("org.sonarqube") version "3.3"
|
||||||
id("signing")
|
id("signing")
|
||||||
kotlin("jvm") version "1.6.10"
|
kotlin("jvm") version "1.6.21"
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "net.thauvin.erik"
|
group = "net.thauvin.erik"
|
||||||
|
@ -48,7 +48,7 @@ dependencies {
|
||||||
implementation("com.squareup.okhttp3:okhttp:${Versions.OKHTTP}")
|
implementation("com.squareup.okhttp3:okhttp:${Versions.OKHTTP}")
|
||||||
implementation("com.squareup.okhttp3:logging-interceptor:${Versions.OKHTTP}")
|
implementation("com.squareup.okhttp3:logging-interceptor:${Versions.OKHTTP}")
|
||||||
|
|
||||||
testImplementation("org.testng:testng:7.4.0")
|
testImplementation("org.testng:testng:7.5")
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
|
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,5 +1,5 @@
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.github.ben-manes.versions' version '0.40.0'
|
id 'com.github.ben-manes.versions' version '0.42.0'
|
||||||
id 'java'
|
id 'java'
|
||||||
id 'application'
|
id 'application'
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|
|
@ -2,8 +2,8 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("application")
|
id("application")
|
||||||
id("com.github.ben-manes.versions") version "0.40.0"
|
id("com.github.ben-manes.versions") version "0.42.0"
|
||||||
kotlin("jvm") version "1.6.10"
|
kotlin("jvm") version "1.6.21"
|
||||||
}
|
}
|
||||||
|
|
||||||
// ./gradlew run
|
// ./gradlew run
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue