diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
index d6c5981..bc24525 100644
--- a/.idea/jarRepositories.xml
+++ b/.idea/jarRepositories.xml
@@ -21,5 +21,10 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/README.md b/README.md
index 8e84125..32b9ec8 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@ bitly.bitlinks().clicks("http://bit.ly/380ojFd")
### API Access Token
-The Bitly API [Access Token](https://bitly.is/accesstoken) can be specified directly as well as via the `BITLY_API_TOKEN` environment variable or properties key.
+The Bitly API [Access Token](https://bitly.is/accesstoken) can be specified directly as well as via the `BITLY_ACCESS_TOKEN` environment variable or properties key.
```kotlin
// Env Variable or System Property
@@ -36,7 +36,7 @@ val bitly = Bitly(File("my.properties"))
```
```ini
# my.properties
-BITLY_API_TOKEN=abc123def456ghi789jkl0
+BITLY_ACCESS_TOKEN=abc123def456ghi789jkl0
```
### JSON
diff --git a/build.gradle.kts b/build.gradle.kts
index 9b36c70..306c265 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -94,6 +94,11 @@ jacoco {
toolVersion = "0.8.3"
}
+java {
+ sourceCompatibility = JavaVersion.VERSION_1_8
+ targetCompatibility = JavaVersion.VERSION_1_8
+}
+
sonarqube {
properties {
property("sonar.projectKey", "ethauvin_$name")
@@ -122,7 +127,7 @@ tasks {
}
}
- withType {
+ withType().configureEach {
kotlinOptions.jvmTarget = "1.8"
}
diff --git a/examples/build.gradle.kts b/examples/build.gradle.kts
index 12219e3..abb667d 100644
--- a/examples/build.gradle.kts
+++ b/examples/build.gradle.kts
@@ -6,6 +6,7 @@ plugins {
// ./gradlew run --args='https://erik.thauvin.net'
// ./gradlew runJava --args='https://erik.thauvin.net'
+// ./gradlew runRetrieve
repositories {
mavenLocal()
@@ -31,4 +32,10 @@ tasks {
main = "com.example.BitlySample"
classpath = sourceSets["main"].runtimeClasspath
}
+
+ register("runRetrieve", JavaExec::class) {
+ group = "application"
+ main = "com.example.BitlyRetrieveKt"
+ classpath = sourceSets["main"].runtimeClasspath
+ }
}
diff --git a/pom.xml b/pom.xml
index 4a1a9a9..c673119 100644
--- a/pom.xml
+++ b/pom.xml
@@ -30,13 +30,13 @@
com.squareup.okhttp3
okhttp
- 4.3.1
+ 4.4.0
runtime
com.squareup.okhttp3
logging-interceptor
- 4.3.1
+ 4.4.0
runtime