diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml
index e1eea1d..4251b72 100644
--- a/.idea/kotlinc.xml
+++ b/.idea/kotlinc.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 64cb2dd..2e50429 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -12,6 +12,9 @@
+
+
+
diff --git a/README.md b/README.md
index cbd824d..293360b 100644
--- a/README.md
+++ b/README.md
@@ -2,9 +2,9 @@
[](https://sonarcloud.io/dashboard?id=ethauvin_akismet-kotlin) [](https://github.com/ethauvin/akismet-kotlin/actions/workflows/gradle.yml) [](https://circleci.com/gh/ethauvin/akismet-kotlin/tree/master)
-# [Akismet](https://www.akismet.com) for Kotlin/Java
+# [Akismet](https://www.akismet.com) for Kotlin, Java and Android
-Akismet for Kotlin/Java/Android is a pretty complete and straightforward implementation of the [Automattic's Akismet](https://akismet.com/development/api/) API, a free service which can be used to actively stop comments spam.
+A pretty complete and straightforward implementation of the [Automattic's Akismet](https://akismet.com/development/api/) API, a free service which can be used to actively stop comments spam.
## Examples (TL;DR)
diff --git a/build.gradle.kts b/build.gradle.kts
index c64a792..7aca158 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -5,23 +5,23 @@ import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
- id("com.github.ben-manes.versions") version "0.42.0"
+ id("com.github.ben-manes.versions") version "0.45.0"
id("io.gitlab.arturbosch.detekt") version "1.21.0"
id("java-library")
id("java")
id("maven-publish")
id("net.thauvin.erik.gradle.semver") version "1.0.4"
- id("org.jetbrains.dokka") version "1.7.10"
- id("org.jetbrains.kotlinx.kover") version "0.6.0"
- id("org.sonarqube") version "3.4.0.2513"
+ id("org.jetbrains.dokka") version "1.7.20"
+ id("org.jetbrains.kotlinx.kover") version "0.6.1"
+ id("org.sonarqube") version "3.5.0.2730"
id("signing")
- kotlin("jvm") version "1.7.20"
- kotlin("kapt") version "1.7.20"
- kotlin("plugin.serialization") version "1.7.20"
+ kotlin("jvm") version "1.7.22"
+ kotlin("kapt") version "1.7.22"
+ kotlin("plugin.serialization") version "1.7.22"
}
group = "net.thauvin.erik"
-description = "Akismet for Kotlin/Java, a client library for accessing the Automattic Kismet (Akismet) spam comments filtering service."
+description = "A client library for accessing the Automattic Kismet (Akismet) spam comments filtering service."
val gitHub = "ethauvin/$name"
val mavenUrl = "https://github.com/$gitHub"
@@ -64,7 +64,7 @@ dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0")
testImplementation("org.mockito:mockito-core:4.8.0")
- testImplementation("org.testng:testng:7.6.1")
+ testImplementation("org.testng:testng:7.7.0")
testImplementation("com.willowtreeapps.assertk:assertk-jvm:0.25")
}
@@ -234,8 +234,8 @@ publishing {
}
}
scm {
- connection.set("scm:git:git://github.com/$gitHub.git")
- developerConnection.set("scm:git:git@github.com:$gitHub.git")
+ connection.set("scm:git://github.com/$gitHub.git")
+ developerConnection.set("scm:git@github.com:$gitHub.git")
url.set(mavenUrl)
}
issueManagement {
diff --git a/config/detekt/baseline.xml b/config/detekt/baseline.xml
index bd755dd..a7260c1 100644
--- a/config/detekt/baseline.xml
+++ b/config/detekt/baseline.xml
@@ -6,6 +6,7 @@
ComplexMethod:AkismetComment.kt$AkismetComment$@Suppress("DuplicatedCode") override fun equals(other: Any?): Boolean
MagicNumber:Akismet.kt$Akismet$12
MagicNumber:Akismet.kt$Akismet$8
+ NestedBlockDepth:Akismet.kt$Akismet$@JvmOverloads fun executeMethod(apiUrl: HttpUrl, formBody: FormBody, trueOnError: Boolean = false): Boolean
NestedBlockDepth:AkismetTest.kt$fun getKey(key: String): String
ReturnCount:Akismet.kt$Akismet$@JvmOverloads fun executeMethod(apiUrl: HttpUrl, formBody: FormBody, trueOnError: Boolean = false): Boolean
diff --git a/examples/build.gradle.kts b/examples/build.gradle.kts
index 2cdfee3..20df428 100644
--- a/examples/build.gradle.kts
+++ b/examples/build.gradle.kts
@@ -2,8 +2,8 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("application")
- id("com.github.ben-manes.versions") version "0.42.0"
- kotlin("jvm") version "1.7.20"
+ id("com.github.ben-manes.versions") version "0.45.0"
+ kotlin("jvm") version "1.7.22"
}
// ./gradlew run runJava
diff --git a/examples/gradle/wrapper/gradle-wrapper.properties b/examples/gradle/wrapper/gradle-wrapper.properties
index ae04661..070cb70 100644
--- a/examples/gradle/wrapper/gradle-wrapper.properties
+++ b/examples/gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index ae04661..070cb70 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-7.5.1-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists