Cleanup.
This commit is contained in:
parent
3e37b3cd29
commit
71a911e2ff
5 changed files with 22 additions and 5 deletions
5
.idea/jarRepositories.xml
generated
5
.idea/jarRepositories.xml
generated
|
@ -21,5 +21,10 @@
|
|||
<option name="name" value="MavenLocal" />
|
||||
<option name="url" value="file:/$MAVEN_REPOSITORY$/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="MavenRepo" />
|
||||
<option name="name" value="MavenRepo" />
|
||||
<option name="url" value="https://repo.maven.apache.org/maven2/" />
|
||||
</remote-repository>
|
||||
</component>
|
||||
</project>
|
|
@ -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
|
||||
|
|
|
@ -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<KotlinCompile> {
|
||||
withType<KotlinCompile>().configureEach {
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
4
pom.xml
4
pom.xml
|
@ -30,13 +30,13 @@
|
|||
<dependency>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
<artifactId>okhttp</artifactId>
|
||||
<version>4.3.1</version>
|
||||
<version>4.4.0</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
<artifactId>logging-interceptor</artifactId>
|
||||
<version>4.3.1</version>
|
||||
<version>4.4.0</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue