public-transport-enabler/build.gradle
Andreas Schildbach 3717814744 build.gradle: switch a test dependency from testRuntime to testImplementation
The `testRuntime` scope is not compatible with the `com.android.application` plugin,
even if it is only used in a different sub-project.
2023-02-02 18:34:22 +01:00

52 lines
1.2 KiB
Groovy

plugins {
id 'java-library'
id 'maven-publish'
}
group = 'de.schildbach.pte'
archivesBaseName = 'public-transport-enabler'
repositories {
mavenCentral()
}
dependencies {
//noinspection GradleDependency
implementation 'com.squareup.okhttp3:okhttp:3.12.13'
//noinspection GradleDependency
implementation 'com.squareup.okhttp3:logging-interceptor:3.12.13'
implementation 'com.google.guava:guava:31.1-android'
implementation 'org.slf4j:slf4j-api:1.7.36'
implementation 'com.google.code.findbugs:jsr305:3.0.2'
implementation 'org.json:json:20090211' // provided by Android
implementation 'net.sf.kxml:kxml2:2.3.0' // provided by Android
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.slf4j:slf4j-jdk14:1.7.36'
}
sourceSets {
main {
java.srcDirs = ['src']
resources.srcDirs = ['src']
}
test {
java.srcDirs = ['test']
resources.srcDirs = ['test']
}
}
compileJava {
sourceCompatibility '1.8'
targetCompatibility '1.8'
options.encoding = 'UTF-8'
}
compileTestJava {
sourceCompatibility '1.8'
targetCompatibility '1.8'
options.encoding = 'UTF-8'
}
test {
exclude 'de/schildbach/pte/live/**'
}