Merge branch '1.0.2'
This commit is contained in:
commit
42af1133e9
16 changed files with 186 additions and 207 deletions
|
@ -4,15 +4,9 @@ defaults: &defaults
|
||||||
environment:
|
environment:
|
||||||
JVM_OPTS: -Xmx3200m
|
JVM_OPTS: -Xmx3200m
|
||||||
TERM: dumb
|
TERM: dumb
|
||||||
|
CI: true
|
||||||
|
|
||||||
jobs:
|
defaults_gradle: &defaults_gradle
|
||||||
|
|
||||||
build_gradle:
|
|
||||||
<<: *defaults
|
|
||||||
|
|
||||||
docker:
|
|
||||||
- image: circleci/openjdk:8-jdk
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
|
@ -20,27 +14,41 @@ jobs:
|
||||||
- gradle-dependencies-{{ checksum "build.gradle.kts" }}
|
- gradle-dependencies-{{ checksum "build.gradle.kts" }}
|
||||||
# fallback to using the latest cache if no exact match is found
|
# fallback to using the latest cache if no exact match is found
|
||||||
- gradle-dependencies-
|
- gradle-dependencies-
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Gradle Dependencies
|
name: Gradle Dependencies
|
||||||
command: ./gradlew dependencies
|
command: ./gradlew dependencies
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
paths: ~/.m2
|
paths: ~/.m2
|
||||||
key: gradle-dependencies-{{ checksum "build.gradle.kts" }}
|
key: gradle-dependencies-{{ checksum "build.gradle.kts" }}
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Run All Checks
|
name: Run All Checks
|
||||||
command: ./gradlew check
|
command: ./gradlew check
|
||||||
|
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: build/reports/
|
path: build/reports/
|
||||||
destination: reports
|
destination: reports
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: build/reports/
|
path: build/reports/
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_gradle_jdk14:
|
||||||
|
<<: *defaults
|
||||||
|
|
||||||
|
docker:
|
||||||
|
- image: openjdk:14-jdk
|
||||||
|
|
||||||
|
<<: *defaults_gradle
|
||||||
|
|
||||||
|
build_gradle_jdk8:
|
||||||
|
<<: *defaults
|
||||||
|
|
||||||
|
docker:
|
||||||
|
- image: circleci/openjdk:8-jdk
|
||||||
|
|
||||||
|
<<: *defaults_gradle
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
gradle:
|
gradle:
|
||||||
jobs:
|
jobs:
|
||||||
- build_gradle
|
- build_gradle_jdk8
|
||||||
|
- build_gradle_jdk14
|
||||||
|
|
1
.github_changelog_generator
Normal file
1
.github_changelog_generator
Normal file
|
@ -0,0 +1 @@
|
||||||
|
future-release=1.0.2
|
27
.gitignore
vendored
27
.gitignore
vendored
|
@ -2,17 +2,7 @@
|
||||||
!.vscode/launch.json
|
!.vscode/launch.json
|
||||||
!.vscode/settings.json
|
!.vscode/settings.json
|
||||||
!.vscode/tasks.json
|
!.vscode/tasks.json
|
||||||
.classpath
|
**/*.class
|
||||||
.DS_Store
|
|
||||||
.gradle
|
|
||||||
.kobalt
|
|
||||||
.nb-gradle
|
|
||||||
.project
|
|
||||||
.settings
|
|
||||||
.vscode/*
|
|
||||||
*.code-workspace
|
|
||||||
*.iws
|
|
||||||
*.sublime-*
|
|
||||||
**/.idea/**/dataSources.ids
|
**/.idea/**/dataSources.ids
|
||||||
**/.idea/**/dataSources.local.xml
|
**/.idea/**/dataSources.local.xml
|
||||||
**/.idea/**/dataSources/
|
**/.idea/**/dataSources/
|
||||||
|
@ -27,7 +17,17 @@
|
||||||
**/.idea/**/uiDesigner.xml
|
**/.idea/**/uiDesigner.xml
|
||||||
**/.idea/**/usage.statistics.xml
|
**/.idea/**/usage.statistics.xml
|
||||||
**/.idea/**/workspace.xml
|
**/.idea/**/workspace.xml
|
||||||
**/*.class
|
*.code-workspace
|
||||||
|
*.iws
|
||||||
|
*.sublime-*
|
||||||
|
.DS_Store
|
||||||
|
.classpath
|
||||||
|
.gradle
|
||||||
|
.kobalt
|
||||||
|
.nb-gradle
|
||||||
|
.project
|
||||||
|
.settings
|
||||||
|
.vscode/*
|
||||||
/bin
|
/bin
|
||||||
/build
|
/build
|
||||||
/deploy
|
/deploy
|
||||||
|
@ -40,7 +40,8 @@
|
||||||
/project.properties
|
/project.properties
|
||||||
/target
|
/target
|
||||||
/test-output
|
/test-output
|
||||||
|
Thumbs.db
|
||||||
ehthumbs.db
|
ehthumbs.db
|
||||||
kobaltBuild
|
kobaltBuild
|
||||||
kobaltw*-test
|
kobaltw*-test
|
||||||
Thumbs.db
|
pom.xml.asc
|
||||||
|
|
20
.travis.yml
20
.travis.yml
|
@ -5,30 +5,22 @@ env:
|
||||||
global:
|
global:
|
||||||
- CI=true
|
- CI=true
|
||||||
|
|
||||||
jdk:
|
#install:
|
||||||
- oraclejdk8
|
# - git fetch --unshallow --tags
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
sonarcloud:
|
sonarcloud:
|
||||||
organization: "ethauvin-github"
|
organization: "ethauvin-github"
|
||||||
|
|
||||||
before_cache:
|
jdk:
|
||||||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
- oraclejdk8
|
||||||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
|
- openjdk14
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- chmod +x gradlew
|
- chmod +x gradlew
|
||||||
|
|
||||||
script:
|
|
||||||
- ./gradlew check
|
|
||||||
|
|
||||||
cache:
|
|
||||||
directories:
|
|
||||||
- $HOME/.gradle/caches/
|
|
||||||
- $HOME/.gradle/wrapper/
|
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- |
|
- |
|
||||||
if [ "${TRAVIS_TEST_RESULT}" == 0 ]; then
|
if [ "${TRAVIS_TEST_RESULT}" == 0 ] && [ "$TRAVIS_JDK_VERSION" == "openjdk14" ]; then
|
||||||
./gradlew sonarqube
|
./gradlew sonarqube
|
||||||
fi
|
fi
|
||||||
|
|
23
CHANGELOG.md
23
CHANGELOG.md
|
@ -1,6 +1,19 @@
|
||||||
# Change Log
|
# Changelog
|
||||||
|
|
||||||
|
## [1.0.2](https://github.com/ethauvin/pinboard-poster/tree/1.0.2) (2021-03-21)
|
||||||
|
|
||||||
|
[Full Changelog](https://github.com/ethauvin/pinboard-poster/compare/1.0.1...1.0.2)
|
||||||
|
|
||||||
|
**Implemented enhancements:**
|
||||||
|
|
||||||
|
- Use HttpLoggingInterceptor instead of manually logging. [\#3](https://github.com/ethauvin/pinboard-poster/issues/3)
|
||||||
|
|
||||||
|
**Fixed bugs:**
|
||||||
|
|
||||||
|
- executeMethod should trap IO execeptions [\#2](https://github.com/ethauvin/pinboard-poster/issues/2)
|
||||||
|
|
||||||
## [1.0.1](https://github.com/ethauvin/pinboard-poster/tree/1.0.1) (2019-05-27)
|
## [1.0.1](https://github.com/ethauvin/pinboard-poster/tree/1.0.1) (2019-05-27)
|
||||||
|
|
||||||
[Full Changelog](https://github.com/ethauvin/pinboard-poster/compare/1.0.0...1.0.1)
|
[Full Changelog](https://github.com/ethauvin/pinboard-poster/compare/1.0.0...1.0.1)
|
||||||
|
|
||||||
**Implemented enhancements:**
|
**Implemented enhancements:**
|
||||||
|
@ -8,15 +21,21 @@
|
||||||
- Implement better error reporting. [\#1](https://github.com/ethauvin/pinboard-poster/issues/1)
|
- Implement better error reporting. [\#1](https://github.com/ethauvin/pinboard-poster/issues/1)
|
||||||
|
|
||||||
## [1.0.0](https://github.com/ethauvin/pinboard-poster/tree/1.0.0) (2018-06-26)
|
## [1.0.0](https://github.com/ethauvin/pinboard-poster/tree/1.0.0) (2018-06-26)
|
||||||
|
|
||||||
[Full Changelog](https://github.com/ethauvin/pinboard-poster/compare/0.9.3...1.0.0)
|
[Full Changelog](https://github.com/ethauvin/pinboard-poster/compare/0.9.3...1.0.0)
|
||||||
|
|
||||||
## [0.9.3](https://github.com/ethauvin/pinboard-poster/tree/0.9.3) (2017-11-09)
|
## [0.9.3](https://github.com/ethauvin/pinboard-poster/tree/0.9.3) (2017-11-09)
|
||||||
|
|
||||||
[Full Changelog](https://github.com/ethauvin/pinboard-poster/compare/0.9.2...0.9.3)
|
[Full Changelog](https://github.com/ethauvin/pinboard-poster/compare/0.9.2...0.9.3)
|
||||||
|
|
||||||
## [0.9.2](https://github.com/ethauvin/pinboard-poster/tree/0.9.2) (2017-11-08)
|
## [0.9.2](https://github.com/ethauvin/pinboard-poster/tree/0.9.2) (2017-11-08)
|
||||||
|
|
||||||
[Full Changelog](https://github.com/ethauvin/pinboard-poster/compare/0.9.1...0.9.2)
|
[Full Changelog](https://github.com/ethauvin/pinboard-poster/compare/0.9.1...0.9.2)
|
||||||
|
|
||||||
## [0.9.1](https://github.com/ethauvin/pinboard-poster/tree/0.9.1) (2017-05-18)
|
## [0.9.1](https://github.com/ethauvin/pinboard-poster/tree/0.9.1) (2017-05-18)
|
||||||
|
|
||||||
|
[Full Changelog](https://github.com/ethauvin/pinboard-poster/compare/2ee3568e40114e19b0956ea7d12c071d5c49b0d5...0.9.1)
|
||||||
|
|
||||||
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
|
||||||
|
|
||||||
|
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
Copyright (c) 2017-2020, Erik C. Thauvin (erik@thauvin.net)
|
Copyright (c) 2017-2021, Erik C. Thauvin (erik@thauvin.net)
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
|
23
README.md
23
README.md
|
@ -1,6 +1,7 @@
|
||||||
# [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://bintray.com/ethauvin/maven/pinboard-poster/_latestVersion)
|
[](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://snyk.io/test/github/ethauvin/pinboard-poster?targetFile=pom.xml) [](https://sonarcloud.io/dashboard?id=ethauvin_pinboard-poster) [](https://travis-ci.com/ethauvin/pinboard-poster) [](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://travis-ci.com/ethauvin/pinboard-poster) [](https://circleci.com/gh/ethauvin/pinboard-poster/tree/master)
|
||||||
|
|
||||||
A small Kotlin/Java/Android library for posting to [Pinboard](https://pinboard.in).
|
A small Kotlin/Java/Android library for posting to [Pinboard](https://pinboard.in).
|
||||||
|
@ -31,32 +32,20 @@ poster.deletePin("http:///www.example.com/bar");
|
||||||
|
|
||||||
Your API authentication token is available on the [Pinboard settings page](https://pinboard.in/settings/password).
|
Your API authentication token is available on the [Pinboard settings page](https://pinboard.in/settings/password).
|
||||||
|
|
||||||
## Usage with Maven and Gradle
|
## Usage with Gradle, Maven, etc.
|
||||||
|
|
||||||
### Maven
|
|
||||||
|
|
||||||
To install and run from Maven, configure an artifact as follows:
|
|
||||||
|
|
||||||
```xml
|
|
||||||
<dependency>
|
|
||||||
<groupId>net.thauvin.erik</groupId>
|
|
||||||
<artifactId>pinboard-poster</artifactId>
|
|
||||||
<version>1.0.1</version>
|
|
||||||
</dependency>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Gradle
|
|
||||||
|
|
||||||
To install and run from Gradle, add the following to the build.gradle file:
|
To install and run from Gradle, add the following to the build.gradle file:
|
||||||
|
|
||||||
```gradle
|
```gradle
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'net.thauvin.erik:pinboard-poster:1.0.1'
|
compile 'net.thauvin.erik:pinboard-poster:1.0.2'
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
[View Example](https://github.com/ethauvin/pinboard-poster/blob/master/samples/java/build.gradle)
|
[View Example](https://github.com/ethauvin/pinboard-poster/blob/master/samples/java/build.gradle)
|
||||||
[View Kotlin DSL Example](https://github.com/ethauvin/pinboard-poster/blob/master/samples/kotlin/build.gradle.kts)
|
[View Kotlin DSL Example](https://github.com/ethauvin/pinboard-poster/blob/master/samples/kotlin/build.gradle.kts)
|
||||||
|
|
||||||
|
Instructions for using with Maven, Ivy, etc. can be found on [Maven Central](https://search.maven.org/artifact/net.thauvin.erik/pinboard-poster/1.0.2/jar).
|
||||||
|
|
||||||
## Adding
|
## Adding
|
||||||
|
|
||||||
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):
|
||||||
|
|
159
build.gradle.kts
159
build.gradle.kts
|
@ -1,22 +1,19 @@
|
||||||
import com.jfrog.bintray.gradle.tasks.BintrayUploadTask
|
|
||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
import java.io.FileInputStream
|
|
||||||
import java.util.Properties
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
jacoco
|
jacoco
|
||||||
java
|
java
|
||||||
kotlin("jvm") version "1.4.0"
|
kotlin("jvm") version "1.4.31"
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
id("com.github.ben-manes.versions") version "0.29.0"
|
signing
|
||||||
id("com.jfrog.bintray") version "1.8.5"
|
id("com.github.ben-manes.versions") version "0.38.0"
|
||||||
id("io.gitlab.arturbosch.detekt") version "1.11.1"
|
id("io.gitlab.arturbosch.detekt") version "1.16.0"
|
||||||
id("org.jetbrains.dokka") version "1.4.0-rc"
|
id("org.jetbrains.dokka") version "1.4.30"
|
||||||
id("org.sonarqube") version "3.0"
|
id("org.sonarqube") version "3.1.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "net.thauvin.erik"
|
group = "net.thauvin.erik"
|
||||||
version = "1.0.1"
|
version = "1.0.2"
|
||||||
description = "Pinboard Poster for Kotlin/Java"
|
description = "Pinboard Poster for Kotlin/Java"
|
||||||
|
|
||||||
val gitHub = "ethauvin/$name"
|
val gitHub = "ethauvin/$name"
|
||||||
|
@ -26,45 +23,32 @@ var isRelease = "release" in gradle.startParameter.taskNames
|
||||||
|
|
||||||
val publicationName = "mavenJava"
|
val publicationName = "mavenJava"
|
||||||
|
|
||||||
// Load local.properties
|
|
||||||
File("local.properties").apply {
|
|
||||||
if (exists()) {
|
|
||||||
FileInputStream(this).use { fis ->
|
|
||||||
Properties().apply {
|
|
||||||
load(fis)
|
|
||||||
forEach { (k, v) ->
|
|
||||||
extra[k as String] = v
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
object VersionInfo {
|
object VersionInfo {
|
||||||
const val okhttp = "4.8.1"
|
const val okhttp = "4.9.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
val versions: VersionInfo by extra { VersionInfo }
|
val versions: VersionInfo by extra { VersionInfo }
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
mavenCentral()
|
||||||
|
jcenter() // needed for Dokka
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
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.3.0")
|
testImplementation("org.testng:testng:7.4.0")
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
withSourcesJar()
|
||||||
}
|
}
|
||||||
|
|
||||||
detekt {
|
detekt {
|
||||||
baseline = project.rootDir.resolve("config/detekt/baseline.xml")
|
baseline = project.rootDir.resolve("config/detekt/baseline.xml")
|
||||||
}
|
}
|
||||||
|
|
||||||
jacoco {
|
|
||||||
toolVersion = "0.8.5"
|
|
||||||
}
|
|
||||||
|
|
||||||
sonarqube {
|
sonarqube {
|
||||||
properties {
|
properties {
|
||||||
property("sonar.projectKey", "ethauvin_pinboard-poster")
|
property("sonar.projectKey", "ethauvin_pinboard-poster")
|
||||||
|
@ -72,11 +56,6 @@ sonarqube {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val sourcesJar by tasks.creating(Jar::class) {
|
|
||||||
archiveClassifier.set("sources")
|
|
||||||
from(sourceSets.getByName("main").allSource)
|
|
||||||
}
|
|
||||||
|
|
||||||
val javadocJar by tasks.creating(Jar::class) {
|
val javadocJar by tasks.creating(Jar::class) {
|
||||||
dependsOn(tasks.dokkaJavadoc)
|
dependsOn(tasks.dokkaJavadoc)
|
||||||
from(tasks.dokkaJavadoc)
|
from(tasks.dokkaJavadoc)
|
||||||
|
@ -106,7 +85,7 @@ tasks {
|
||||||
}
|
}
|
||||||
|
|
||||||
assemble {
|
assemble {
|
||||||
dependsOn(sourcesJar, javadocJar)
|
dependsOn(javadocJar)
|
||||||
}
|
}
|
||||||
|
|
||||||
clean {
|
clean {
|
||||||
|
@ -147,19 +126,15 @@ tasks {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val bintrayUpload by existing(BintrayUploadTask::class) {
|
|
||||||
dependsOn(publishToMavenLocal, gitTag)
|
|
||||||
}
|
|
||||||
|
|
||||||
buildScan {
|
buildScan {
|
||||||
termsOfServiceUrl = "https://gradle.com/terms-of-service"
|
termsOfServiceUrl = "https://gradle.com/terms-of-service"
|
||||||
setTermsOfServiceAgree("yes")
|
setTermsOfServiceAgree("yes")
|
||||||
}
|
}
|
||||||
|
|
||||||
register("release") {
|
register("release") {
|
||||||
description = "Publishes version ${project.version} to Bintray."
|
description = "Publishes version ${project.version} to local repository."
|
||||||
group = PublishingPlugin.PUBLISH_TASK_GROUP
|
group = PublishingPlugin.PUBLISH_TASK_GROUP
|
||||||
dependsOn("wrapper", bintrayUpload)
|
dependsOn("wrapper", "deploy", "gitTag", "publishToMavenLocal")
|
||||||
}
|
}
|
||||||
|
|
||||||
"sonarqube" {
|
"sonarqube" {
|
||||||
|
@ -167,69 +142,51 @@ tasks {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun findProperty(s: String) = project.findProperty(s) as String?
|
|
||||||
bintray {
|
|
||||||
user = findProperty("bintray.user")
|
|
||||||
key = findProperty("bintray.apikey")
|
|
||||||
publish = isRelease
|
|
||||||
setPublications(publicationName)
|
|
||||||
pkg.apply {
|
|
||||||
repo = "maven"
|
|
||||||
name = project.name
|
|
||||||
desc = description
|
|
||||||
websiteUrl = mavenUrl
|
|
||||||
issueTrackerUrl = "$mavenUrl/issues"
|
|
||||||
githubRepo = gitHub
|
|
||||||
githubReleaseNotesFile = "README.md"
|
|
||||||
vcsUrl = "$mavenUrl.git"
|
|
||||||
setLabels("android", "kotlin", "java", "pinboard", "poster", "bookmarks")
|
|
||||||
publicDownloadNumbers = true
|
|
||||||
version.apply {
|
|
||||||
name = project.version as String
|
|
||||||
desc = description
|
|
||||||
vcsTag = project.version as String
|
|
||||||
gpg.apply {
|
|
||||||
sign = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>(publicationName) {
|
create<MavenPublication>(publicationName) {
|
||||||
from(components["java"])
|
from(components["java"])
|
||||||
artifact(sourcesJar)
|
|
||||||
artifact(javadocJar)
|
artifact(javadocJar)
|
||||||
pom.withXml {
|
pom {
|
||||||
asNode().apply {
|
name.set(project.name)
|
||||||
appendNode("name", project.name)
|
description.set(project.description)
|
||||||
appendNode("description", project.description)
|
url.set(mavenUrl)
|
||||||
appendNode("url", mavenUrl)
|
licenses {
|
||||||
|
license {
|
||||||
appendNode("licenses").appendNode("license").apply {
|
name.set("BSD 3-Clause")
|
||||||
appendNode("name", "BSD 3-Clause")
|
url.set("https://opensource.org/licenses/BSD-3-Clause")
|
||||||
appendNode("url", "https://opensource.org/licenses/BSD-3-Clause")
|
}
|
||||||
|
}
|
||||||
|
developers {
|
||||||
|
developer {
|
||||||
|
id.set("ethauvin")
|
||||||
|
name.set("Erik C. Thauvin")
|
||||||
|
email.set("erik@thauvin.net")
|
||||||
|
url.set("https://erik.thauvin.net/")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
scm {
|
||||||
|
connection.set("scm:git:git://github.com/$gitHub.git")
|
||||||
|
developerConnection.set("scm:git:git@github.com:$gitHub.git")
|
||||||
|
url.set("$mavenUrl")
|
||||||
|
}
|
||||||
|
issueManagement {
|
||||||
|
system.set("GitHub")
|
||||||
|
url.set("$mavenUrl/issues")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = "ossrh"
|
||||||
|
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
|
||||||
|
credentials(PasswordCredentials::class)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
appendNode("developers").appendNode("developer").apply {
|
signing {
|
||||||
appendNode("id", "ethauvin")
|
useGpgCmd()
|
||||||
appendNode("name", "Erik C. Thauvin")
|
sign(publishing.publications[publicationName])
|
||||||
appendNode("email", "erik@thauvin.net")
|
|
||||||
}
|
|
||||||
|
|
||||||
appendNode("scm").apply {
|
|
||||||
appendNode("connection", "scm:git:$mavenUrl.git")
|
|
||||||
appendNode("developerConnection", "scm:git:git@github.com:$gitHub.git")
|
|
||||||
appendNode("url", mavenUrl)
|
|
||||||
}
|
|
||||||
|
|
||||||
appendNode("issueManagement").apply {
|
|
||||||
appendNode("system", "GitHub")
|
|
||||||
appendNode("url", "$mavenUrl/issues")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
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-6.6-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|
44
pom.xml
44
pom.xml
|
@ -1,23 +1,14 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<!-- This module was also published with a richer model, Gradle metadata, -->
|
||||||
|
<!-- which should be used instead. Do not delete the following line which -->
|
||||||
|
<!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
|
||||||
|
<!-- that they should prefer consuming it instead. -->
|
||||||
|
<!-- do_not_remove: published-with-gradle-metadata -->
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>net.thauvin.erik</groupId>
|
<groupId>net.thauvin.erik</groupId>
|
||||||
<artifactId>pinboard-poster</artifactId>
|
<artifactId>pinboard-poster</artifactId>
|
||||||
<version>1.0.1</version>
|
<version>1.0.2</version>
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.squareup.okhttp3</groupId>
|
|
||||||
<artifactId>okhttp</artifactId>
|
|
||||||
<version>3.14.2</version>
|
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.jetbrains.kotlin</groupId>
|
|
||||||
<artifactId>kotlin-stdlib</artifactId>
|
|
||||||
<version>1.3.31</version>
|
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
<name>pinboard-poster</name>
|
<name>pinboard-poster</name>
|
||||||
<description>Pinboard Poster for Kotlin/Java</description>
|
<description>Pinboard Poster for Kotlin/Java</description>
|
||||||
<url>https://github.com/ethauvin/pinboard-poster</url>
|
<url>https://github.com/ethauvin/pinboard-poster</url>
|
||||||
|
@ -32,10 +23,11 @@
|
||||||
<id>ethauvin</id>
|
<id>ethauvin</id>
|
||||||
<name>Erik C. Thauvin</name>
|
<name>Erik C. Thauvin</name>
|
||||||
<email>erik@thauvin.net</email>
|
<email>erik@thauvin.net</email>
|
||||||
|
<url>https://erik.thauvin.net/</url>
|
||||||
</developer>
|
</developer>
|
||||||
</developers>
|
</developers>
|
||||||
<scm>
|
<scm>
|
||||||
<connection>scm:git:https://github.com/ethauvin/pinboard-poster.git</connection>
|
<connection>scm:git:git://github.com/ethauvin/pinboard-poster.git</connection>
|
||||||
<developerConnection>scm:git:git@github.com:ethauvin/pinboard-poster.git</developerConnection>
|
<developerConnection>scm:git:git@github.com:ethauvin/pinboard-poster.git</developerConnection>
|
||||||
<url>https://github.com/ethauvin/pinboard-poster</url>
|
<url>https://github.com/ethauvin/pinboard-poster</url>
|
||||||
</scm>
|
</scm>
|
||||||
|
@ -43,4 +35,24 @@
|
||||||
<system>GitHub</system>
|
<system>GitHub</system>
|
||||||
<url>https://github.com/ethauvin/pinboard-poster/issues</url>
|
<url>https://github.com/ethauvin/pinboard-poster/issues</url>
|
||||||
</issueManagement>
|
</issueManagement>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
<artifactId>kotlin-stdlib-jdk8</artifactId>
|
||||||
|
<version>1.4.31</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.squareup.okhttp3</groupId>
|
||||||
|
<artifactId>okhttp</artifactId>
|
||||||
|
<version>4.9.1</version>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.squareup.okhttp3</groupId>
|
||||||
|
<artifactId>logging-interceptor</artifactId>
|
||||||
|
<version>4.9.1</version>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -3,17 +3,17 @@ plugins {
|
||||||
id 'application'
|
id 'application'
|
||||||
}
|
}
|
||||||
|
|
||||||
// .gradlew run
|
// ./gradlew run
|
||||||
|
|
||||||
defaultTasks 'run'
|
defaultTasks 'run'
|
||||||
|
|
||||||
mainClassName = 'net.thauvin.erik.pinboard.samples.JavaExample'
|
mainClassName = 'net.thauvin.erik.pinboard.samples.JavaExample'
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compile 'net.thauvin.erik:pinboard-poster:1.0.1'
|
|
||||||
}
|
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
jcenter()
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile 'net.thauvin.erik:pinboard-poster:1.0.2'
|
||||||
}
|
}
|
||||||
|
|
|
@ -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-6.6-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|
|
@ -1,21 +1,21 @@
|
||||||
plugins {
|
plugins {
|
||||||
application
|
application
|
||||||
kotlin("jvm") version "1.4.0"
|
kotlin("jvm") version "1.4.31"
|
||||||
}
|
}
|
||||||
|
|
||||||
// .gradlew run
|
// ./gradlew run
|
||||||
|
|
||||||
defaultTasks(ApplicationPlugin.TASK_RUN_NAME)
|
defaultTasks(ApplicationPlugin.TASK_RUN_NAME)
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenLocal()
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile("net.thauvin.erik:pinboard-poster:1.0.1")
|
compile("net.thauvin.erik:pinboard-poster:1.0.2")
|
||||||
}
|
}
|
||||||
|
|
||||||
application {
|
application {
|
||||||
mainClassName = "net.thauvin.erik.pinboard.samples.KotlinExampleKt"
|
mainClassName = "net.thauvin.erik.pinboard.samples.KotlinExampleKt"
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenLocal()
|
|
||||||
jcenter()
|
|
||||||
}
|
|
||||||
|
|
|
@ -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-6.6-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* PinboardPoster.kt
|
* PinboardPoster.kt
|
||||||
*
|
*
|
||||||
* Copyright (c) 2017-2020, Erik C. Thauvin (erik@thauvin.net)
|
* Copyright (c) 2017-2021, Erik C. Thauvin (erik@thauvin.net)
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* PinboardPosterTest.kt
|
* PinboardPosterTest.kt
|
||||||
*
|
*
|
||||||
* Copyright (c) 2017-2020, Erik C. Thauvin (erik@thauvin.net)
|
* Copyright (c) 2017-2021, Erik C. Thauvin (erik@thauvin.net)
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue