Minor cleanup
This commit is contained in:
parent
d0aa48dbee
commit
85507a1e06
5 changed files with 31 additions and 16 deletions
4
.github/workflows/gradle.yml
vendored
4
.github/workflows/gradle.yml
vendored
|
@ -8,11 +8,11 @@ jobs:
|
|||
|
||||
env:
|
||||
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-XX:MaxMetaspaceSize=512m"
|
||||
SONAR_JDK: "11"
|
||||
SONAR_JDK: "17"
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
java-version: [ 11, 18 ]
|
||||
java-version: [ 11, 17, 20 ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
|
@ -46,7 +46,12 @@ returns:
|
|||
All of the [is.gd API](https://is.gd/developers.php) parameters are supported:
|
||||
|
||||
```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:
|
||||
|
||||
|
@ -90,7 +95,7 @@ var config = new Config.Builder()
|
|||
.format(Format.XML)
|
||||
.build();
|
||||
|
||||
Isgd.lookup(config)
|
||||
Isgd.lookup(config);
|
||||
```
|
||||
### Errors
|
||||
|
||||
|
|
|
@ -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.TestLogEvent
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
plugins {
|
||||
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) {
|
||||
from(configurations.runtimeClasspath) {
|
||||
exclude("annotations-*.jar")
|
||||
|
@ -144,10 +153,6 @@ tasks {
|
|||
group = PublishingPlugin.PUBLISH_TASK_GROUP
|
||||
dependsOn("deploy", gitTag, publishToMavenLocal)
|
||||
}
|
||||
|
||||
"sonar" {
|
||||
dependsOn(koverReport)
|
||||
}
|
||||
}
|
||||
|
||||
publishing {
|
||||
|
|
5
config/dokka/packages.md
Normal file
5
config/dokka/packages.md
Normal 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
14
pom.xml
|
@ -27,8 +27,8 @@
|
|||
</developer>
|
||||
</developers>
|
||||
<scm>
|
||||
<connection>scm:git://github.com/ethauvin/isgd-shorten.git</connection>
|
||||
<developerConnection>scm:git@github.com:ethauvin/isgd-shorten.git</developerConnection>
|
||||
<connection>scm:git:https://github.com/ethauvin/isgd-shorten.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:ethauvin/isgd-shorten.git</developerConnection>
|
||||
<url>https://github.com/ethauvin/isgd-shorten</url>
|
||||
</scm>
|
||||
<issueManagement>
|
||||
|
@ -40,7 +40,7 @@
|
|||
<dependency>
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<artifactId>kotlin-bom</artifactId>
|
||||
<version>1.8.0</version>
|
||||
<version>1.9.10</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
|
@ -50,13 +50,13 @@
|
|||
<dependency>
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<artifactId>kotlin-stdlib-jdk8</artifactId>
|
||||
<version>1.8.0</version>
|
||||
<version>1.9.10</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.thauvin.erik</groupId>
|
||||
<artifactId>urlencoder</artifactId>
|
||||
<version>1.3.0</version>
|
||||
<groupId>net.thauvin.erik.urlencoder</groupId>
|
||||
<artifactId>urlencoder-lib-jvm</artifactId>
|
||||
<version>1.4.0</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue