Skip to content

Commit

Permalink
Convert to kotlin-dsl, update some dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Dino Kovač committed May 31, 2019
1 parent 6d1364a commit 3fd3d9e
Show file tree
Hide file tree
Showing 8 changed files with 76 additions and 70 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- checkout

- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "retrofit-converter-thrifty/build.gradle" }}
key: jars-{{ checksum "build.gradle.kts" }}-{{ checksum "retrofit-converter-thrifty/build.gradle.kts" }}

- run:
name: Download Dependencies
Expand All @@ -19,7 +19,7 @@ jobs:
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "retrofit-converter-thrifty/build.gradle" }}
key: jars-{{ checksum "build.gradle.kts" }}-{{ checksum "retrofit-converter-thrifty/build.gradle.kts" }}

- run:
name: Run Tests
Expand All @@ -30,4 +30,4 @@ jobs:
command: bash <(curl -s https://codecov.io/bash)

- store_test_results:
path: retrofit-converter-thrifty/build/test-results
path: retrofit-converter-thrifty/build/test-results
16 changes: 0 additions & 16 deletions build.gradle

This file was deleted.

15 changes: 15 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
buildscript {
repositories {
maven { url = uri("https://plugins.gradle.org/m2/") }
jcenter()
}
dependencies {
classpath("com.novoda:bintray-release:0.9.1")
}
}

allprojects {
repositories {
jcenter()
}
}
2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if [ ! -z "$4" ]; then
tag_message="$4"
fi

./gradlew clean build generatePomFileForMavenPublication bintrayUpload -PbintrayUser=${username} -PbintrayKey=${api_key} -PdryRun=false && \
./gradlew clean build bintrayUpload -PbintrayUser=${username} -PbintrayKey=${api_key} -PdryRun=false && \
git tag -a "${version}" -m "${tag_message}" && \
git push --tags

Expand Down
47 changes: 0 additions & 47 deletions retrofit-converter-thrifty/build.gradle

This file was deleted.

55 changes: 55 additions & 0 deletions retrofit-converter-thrifty/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import com.novoda.gradle.release.PublishExtension

plugins {
id("java")
id("jacoco")
id("com.novoda.bintray-release")
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

group = "co.infinum"
version = "0.9.2"

object Versions {
const val thrifty_version = "0.4.3"
const val retrofit_version = "2.4.0"
const val okhttp_version = "3.14.2"
const val okio_version = "2.2.2"
}

dependencies {
compile("com.microsoft.thrifty:thrifty-runtime:${Versions.thrifty_version}")
compile("com.squareup.okio:okio:${Versions.okio_version}")
compile("com.squareup.retrofit2:retrofit:${Versions.retrofit_version}")
testCompile("com.squareup.okhttp3:mockwebserver:${Versions.okhttp_version}")
testCompile("org.assertj:assertj-core:3.9.0")
testCompile("junit:junit:4.12")
compileOnly("com.google.code.findbugs:jsr305:3.0.2")
}

tasks.withType<JacocoReport> {
reports {
xml.isEnabled = true
html.isEnabled = false
}
}

tasks {
check {
dependsOn(jacocoTestReport)
}
}

configure<PublishExtension> {
userOrg = "infinum"
groupId = project.group.toString()
artifactId = "retrofit-converter-thrifty"
publishVersion = project.version.toString()
desc = "Retrofit converter for Thrifty implementation of Apache Thrift"
website = "https://github.com/infinum/thrifty-retrofit-converter"
repoName = "android"
}
3 changes: 0 additions & 3 deletions settings.gradle

This file was deleted.

2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rootProject.name = "thrifty-converter"
include(":retrofit-converter-thrifty")

0 comments on commit 3fd3d9e

Please sign in to comment.