usb-serial-for-android/usbSerialForAndroid/build.gradle

59 wiersze
1.7 KiB
Groovy
Czysty Zwykły widok Historia

2021-09-21 18:38:32 +00:00
plugins {
id 'com.android.library'
id 'maven-publish'
}
2014-04-01 06:40:49 +00:00
android {
2022-04-19 18:52:38 +00:00
compileSdkVersion 31
2014-04-01 06:40:49 +00:00
defaultConfig {
minSdkVersion 17
2022-04-19 18:52:38 +00:00
targetSdkVersion 31
consumerProguardFiles 'proguard-rules.pro'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2019-10-26 13:40:40 +00:00
testInstrumentationRunnerArguments = [ // Raspi Windows LinuxVM ...
'rfc2217_server_host': '192.168.0.100',
2019-10-26 13:40:40 +00:00
'rfc2217_server_nonstandard_baudrates': 'true', // true false false
2019-10-20 20:12:56 +00:00
]
2014-04-01 06:40:49 +00:00
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
2014-04-01 06:40:49 +00:00
}
dependencies {
2022-04-19 18:52:38 +00:00
implementation "androidx.annotation:annotation:1.3.0"
implementation 'androidx.test:core:1.4.0'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.mockito:mockito-core:1.10.19'
androidTestImplementation 'androidx.test:runner:1.4.0'
androidTestImplementation 'commons-net:commons-net:3.8.0'
androidTestImplementation 'org.apache.commons:commons-lang3:3.11'
}
2021-09-21 18:38:32 +00:00
// gradle task: publishToMavenLocal
project.afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release // change to anyDeviceRelease if coverage is enabled
2021-09-21 18:38:32 +00:00
artifact androidSourcesJar
// values used for local maven repo, jitpack uses github release:
groupId 'com.github.mik3y'
artifactId 'usb-serial-for-android'
version 'v3.5.0beta'
}
}
}
}
task androidSourcesJar(type: Jar) {
classifier 'sources'
from android.sourceSets.main.java.srcDirs
}
2019-10-20 20:12:56 +00:00
//apply from: 'coverage.gradle'