Minor cleanup

This commit is contained in:
Erik C. Thauvin 2023-09-25 01:03:03 -07:00
parent d0aa48dbee
commit 85507a1e06
5 changed files with 31 additions and 16 deletions

View file

@ -8,11 +8,11 @@ jobs:
env: env:
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-XX:MaxMetaspaceSize=512m" GRADLE_OPTS: "-Dorg.gradle.jvmargs=-XX:MaxMetaspaceSize=512m"
SONAR_JDK: "11" SONAR_JDK: "17"
strategy: strategy:
matrix: matrix:
java-version: [ 11, 18 ] java-version: [ 11, 17, 20 ]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

View file

@ -46,7 +46,12 @@ returns:
All of the [is.gd API](https://is.gd/developers.php) parameters are supported: All of the [is.gd API](https://is.gd/developers.php) parameters are supported:
```kotlin ```kotlin
Isgd.shorten(url = url, shorturl="foobar", callback = "test", logstats = true, format = Format.JSON) Isgd.shorten(
url = url,
shorturl="foobar",
callback = "test",
logstats = true,
format = Format.JSON)
``` ```
returns: returns:
@ -90,7 +95,7 @@ var config = new Config.Builder()
.format(Format.XML) .format(Format.XML)
.build(); .build();
Isgd.lookup(config) Isgd.lookup(config);
``` ```
### Errors ### Errors

View file

@ -1,6 +1,6 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.gradle.api.tasks.testing.logging.TestExceptionFormat import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent import org.gradle.api.tasks.testing.logging.TestLogEvent
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins { plugins {
id("com.github.ben-manes.versions") version "0.48.0" id("com.github.ben-manes.versions") version "0.48.0"
@ -107,6 +107,15 @@ tasks {
} }
} }
dokkaJavadoc {
dokkaSourceSets {
configureEach {
includes.from("config/dokka/packages.md")
}
}
mustRunAfter("kaptKotlin")
}
val copyToDeploy by registering(Copy::class) { val copyToDeploy by registering(Copy::class) {
from(configurations.runtimeClasspath) { from(configurations.runtimeClasspath) {
exclude("annotations-*.jar") exclude("annotations-*.jar")
@ -144,10 +153,6 @@ tasks {
group = PublishingPlugin.PUBLISH_TASK_GROUP group = PublishingPlugin.PUBLISH_TASK_GROUP
dependsOn("deploy", gitTag, publishToMavenLocal) dependsOn("deploy", gitTag, publishToMavenLocal)
} }
"sonar" {
dependsOn(koverReport)
}
} }
publishing { publishing {

5
config/dokka/packages.md Normal file
View file

@ -0,0 +1,5 @@
# Module isgd-shorten
Isgd Shortener for Kotlin, Java & Android
A simple implementation of the `is.gd` URL shortening and lookup APIs.

14
pom.xml
View file

@ -27,8 +27,8 @@
</developer> </developer>
</developers> </developers>
<scm> <scm>
<connection>scm:git://github.com/ethauvin/isgd-shorten.git</connection> <connection>scm:git:https://github.com/ethauvin/isgd-shorten.git</connection>
<developerConnection>scm:git@github.com:ethauvin/isgd-shorten.git</developerConnection> <developerConnection>scm:git:git@github.com:ethauvin/isgd-shorten.git</developerConnection>
<url>https://github.com/ethauvin/isgd-shorten</url> <url>https://github.com/ethauvin/isgd-shorten</url>
</scm> </scm>
<issueManagement> <issueManagement>
@ -40,7 +40,7 @@
<dependency> <dependency>
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-bom</artifactId> <artifactId>kotlin-bom</artifactId>
<version>1.8.0</version> <version>1.9.10</version>
<type>pom</type> <type>pom</type>
<scope>import</scope> <scope>import</scope>
</dependency> </dependency>
@ -50,13 +50,13 @@
<dependency> <dependency>
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk8</artifactId> <artifactId>kotlin-stdlib-jdk8</artifactId>
<version>1.8.0</version> <version>1.9.10</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>net.thauvin.erik</groupId> <groupId>net.thauvin.erik.urlencoder</groupId>
<artifactId>urlencoder</artifactId> <artifactId>urlencoder-lib-jvm</artifactId>
<version>1.3.0</version> <version>1.4.0</version>
<scope>runtime</scope> <scope>runtime</scope>
</dependency> </dependency>
</dependencies> </dependencies>