sdk/build.gradle

87 lines
1.9 KiB
Groovy
Raw Normal View History

2019-11-14 17:49:27 +01:00
plugins {
2019-11-17 17:14:24 +01:00
id 'jacoco'
2019-11-14 17:49:27 +01:00
id 'org.jetbrains.kotlin.jvm' version '1.3.50' apply false
2019-11-17 17:14:24 +01:00
id "org.jlleitschuh.gradle.ktlint" version "9.1.1"
2019-11-14 17:49:27 +01:00
}
subprojects {
version = "0.12.0-SNAPSHOT"
group = "io.github.wulkanowy"
}
ext {
2019-11-14 18:34:40 +01:00
PUBLISH_VERSION = '0.12.0'
SITE_URL = 'https://github.com/wulkanowy/sdk'
GIT_URL = 'https://github.com/wulkanowy/sdk.git'
2019-11-14 17:49:27 +01:00
jspoon = "1.3.2"
okhttp3 = "3.12.6"
retrofit = "2.6.2"
threetenbp = "1.4.0"
slf4j = "1.7.29"
}
2019-11-14 11:26:25 +01:00
allprojects {
2019-11-14 17:49:27 +01:00
apply plugin: 'java'
apply plugin: 'kotlin'
2019-11-17 17:14:24 +01:00
apply plugin: "org.jlleitschuh.gradle.ktlint"
ktlint {
additionalEditorconfigFile = file(".editorconfig")
disabledRules = [
"no-wildcard-imports",
"import-ordering",
"max-line-length"
]
}
2019-11-14 17:49:27 +01:00
sourceCompatibility = 1.8
compileKotlin {
kotlinOptions {
jvmTarget = "1.6"
javaParameters = true
}
}
2019-11-14 11:26:25 +01:00
repositories {
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
2018-07-12 17:19:45 +02:00
}
2018-08-30 17:22:28 +02:00
2019-11-14 17:49:27 +01:00
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
2019-11-14 17:49:27 +01:00
implementation "io.reactivex.rxjava2:rxjava:2.2.14"
implementation "com.squareup.okhttp3:logging-interceptor:$okhttp3"
compileOnly "org.threeten:threetenbp:$threetenbp:no-tzdb"
testImplementation "org.threeten:threetenbp:$threetenbp"
testImplementation "com.squareup.okhttp3:mockwebserver:$okhttp3"
testImplementation "junit:junit:4.12"
}
2019-11-14 18:34:40 +01:00
2019-11-17 17:14:24 +01:00
jacocoTestReport {
reports {
xml.enabled true
}
}
2019-11-14 18:34:40 +01:00
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
2018-08-30 17:22:28 +02:00
}