diff --git a/.idea/akismet-kotlin.iml b/.idea/akismet-kotlin.iml new file mode 100644 index 0000000..78b2cc5 --- /dev/null +++ b/.idea/akismet-kotlin.iml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..d6c5981 --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 4562da9..a85734c 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -12,7 +12,7 @@ - + diff --git a/README.md b/README.md index 4920179..a63bb1d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![License (3-Clause BSD)](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg?style=flat-square)](http://opensource.org/licenses/BSD-3-Clause) -[![Known Vulnerabilities](https://snyk.io/test/github/ethauvin/akismet-kotlin/badge.svg?targetFile=pom.xml)](https://snyk.io/test/github/ethauvin/akismet-kotlin?targetFile=pom.xml) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ethauvin_akismet-kotlin&metric=alert_status)](https://sonarcloud.io/dashboard?id=ethauvin_akismet-kotlin) [![Build Status](https://travis-ci.org/ethauvin/akismet-kotlin.svg?branch=master)](https://travis-ci.org/ethauvin/akismet-kotlin) [![CircleCI](https://circleci.com/gh/ethauvin/akismet-kotlin/tree/master.svg?style=shield)](https://circleci.com/gh/ethauvin/akismet-kotlin/tree/master) +[![Known Vulnerabilities](https://snyk.io/test/github/ethauvin/akismet-kotlin/badge.svg?targetFile=pom.xml)](https://snyk.io/test/github/ethauvin/akismet-kotlin?targetFile=pom.xml) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ethauvin_akismet-kotlin&metric=alert_status)](https://sonarcloud.io/dashboard?id=ethauvin_akismet-kotlin) [![Build Status](https://travis-ci.com/ethauvin/akismet-kotlin.svg?branch=master)](https://travis-ci.com/ethauvin/akismet-kotlin) [![CircleCI](https://circleci.com/gh/ethauvin/akismet-kotlin/tree/master.svg?style=shield)](https://circleci.com/gh/ethauvin/akismet-kotlin/tree/master) # [Akismet](https://www.akismet.com) for Kotlin/Java @@ -12,7 +12,7 @@ Akismet for Kotlin/Java is a pretty complete and straightforward implementation ```kotlin val akismet = Akismet(apiKey = "YOUR_API_KEY", blog = "YOUR_BLOG_URL") val comment = AkismetComment(userIp = "127.0.0.1", userAgent = "curl/7.29.0") - + with(comment) { referrer = "http://www.google.com" type = AkismetComment.TYPE_COMMENT @@ -83,4 +83,3 @@ akismet.submitSpam(Akismet.jsonComment(json)) ### More... If all else fails, there's always more [Documentation](https://ethauvin.github.io/akismet-kotlin/). - diff --git a/build.gradle.kts b/build.gradle.kts index 14f81f3..af515ca 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,14 +10,13 @@ plugins { java `maven-publish` id("com.github.ben-manes.versions") version "0.28.0" - id("com.jfrog.bintray") version "1.8.4" - id("io.gitlab.arturbosch.detekt") version "1.6.0" + id("com.jfrog.bintray") version "1.8.5" + id("io.gitlab.arturbosch.detekt") version "1.7.4" id("net.thauvin.erik.gradle.semver") version "1.0.4" id("org.jetbrains.dokka") version "0.10.1" - id("org.jetbrains.kotlin.jvm") version "1.3.70" - id("org.jetbrains.kotlin.kapt") version "1.3.70" - id("org.jetbrains.kotlin.plugin.serialization") version "1.3.70" - id("org.jmailen.kotlinter") version "2.3.2" + id("org.jetbrains.kotlin.jvm") version "1.3.72" + id("org.jetbrains.kotlin.kapt") version "1.3.72" + id("org.jetbrains.kotlin.plugin.serialization") version "1.3.72" id("org.sonarqube") version "2.8" } @@ -34,7 +33,7 @@ var semverProcessor = "net.thauvin.erik:semver:1.2.0" val publicationName = "mavenJava" object VersionInfo { - const val okhttp = "4.4.0" + const val okhttp = "4.5.0" } val versions: VersionInfo by extra { VersionInfo } @@ -71,8 +70,8 @@ dependencies { implementation(kotlin("stdlib")) implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.20.0-1.3.70-eap-274-2") - testImplementation("org.mockito:mockito-core:3.3.1") - testImplementation("org.testng:testng:7.1.1") + testImplementation("org.mockito:mockito-core:3.3.3") + testImplementation("org.testng:testng:7.2.0") } kapt { @@ -87,15 +86,8 @@ detekt { baseline = project.rootDir.resolve("detekt-baseline.xml") } -kotlinter { - ignoreFailures = false - reporters = arrayOf("html") - experimentalRules = false - disabledRules = arrayOf("import-ordering") -} - jacoco { - toolVersion = "0.8.3" + toolVersion = "0.8.5" } java { diff --git a/examples/build.gradle.kts b/examples/build.gradle.kts index b25291c..f3f5cae 100644 --- a/examples/build.gradle.kts +++ b/examples/build.gradle.kts @@ -1,5 +1,5 @@ plugins { - id("org.jetbrains.kotlin.jvm") version "1.3.70" + id("org.jetbrains.kotlin.jvm") version "1.3.71" application } diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index f3d88b1..490fda8 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index a2bf131..a4b4429 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/pom.xml b/pom.xml index fb9d456..b868220 100644 --- a/pom.xml +++ b/pom.xml @@ -30,13 +30,13 @@ com.squareup.okhttp3 okhttp - 4.4.0 + 4.4.1 runtime com.squareup.okhttp3 logging-interceptor - 4.4.0 + 4.4.1 runtime