1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
|
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.4'
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.14'
classpath 'digital.wup:android-maven-publish:3.6.3'
}
}
allprojects {
repositories {
mavenCentral()
google()
}
}
apply plugin: 'com.android.library'
android {
compileSdkVersion 31
buildToolsVersion '29.0.3'
defaultConfig {
minSdkVersion 14
targetSdkVersion 31
}
lintOptions {
abortOnError false
}
compileOptions {
targetCompatibility 1.8
sourceCompatibility 1.8
}
}
apply plugin: 'com.google.protobuf'
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.19.1'
}
generateProtoTasks {
all().each { task ->
task.builtins {
java {
option "lite"
}
}
}
}
}
// Creates the source jar for release to maven central.
task sourceJar(type: Jar) {
classifier "sources"
from android.sourceSets.main.java.srcDirs
}
// Creates javadoc for the project.
task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
failOnError false // Currently cannot import android sdk javadoc references so we ignore errors.
}
// Creates the source javadoc jar for release to maven central.
task javadocJar(type: Jar) {
classifier "javadoc"
from javadoc
}
apply plugin: 'digital.wup.android-maven-publish'
apply plugin: 'maven-publish'
// Creates the artifacts for release to maven central.
publishing {
publications {
mavenAar(MavenPublication) {
groupId 'com.google.android.apps.common.testing.accessibility.framework'
artifactId 'accessibility-test-framework'
version '4.0.0'
from components.android
artifact sourceJar
artifact javadocJar
pom {
name = 'Accessibility Test Framework'
description = 'Library used to test for common accessibility issues.'
url = 'https://github.com/google/Accessibility-Test-Framework-for-Android'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'repo'
}
}
developers {
developer {
name = 'Casey Burkhardt'
email = 'caseyburkhardt@google.com'
organization = 'Google LLC'
organizationUrl = 'https://www.google.com'
}
}
scm {
connection = 'scm:git:git@github.com:google/Accessibility-Test-Framework-for-Android.git'
developerConnection = 'scm:git:git@github.com:google/Accessibility-Test-Framework-for-Android.git'
url = 'https://github.com/google/Accessibility-Test-Framework-for-Android'
}
}
}
}
}
dependencies {
implementation 'androidx.core:core:1.8.0'
implementation 'androidx.test.services:storage:1.4.1'
implementation 'com.google.android.material:material:1.2.0-rc01'
implementation 'com.google.errorprone:error_prone_annotations:2.14.0'
implementation 'com.google.guava:guava:31.0.1-android'
implementation 'com.google.protobuf:protobuf-javalite:3.19.1'
// use same version of checker framework used in guava android,
// to avoid duplicate class and dexing errors
// see https://github.com/android/android-test/issues/861
implementation 'org.checkerframework:checker-qual:3.22.1'
implementation 'org.hamcrest:hamcrest-core:2.2'
implementation 'org.hamcrest:hamcrest-library:2.2'
implementation 'org.jsoup:jsoup:1.15.1'
}
clean {
delete 'src/main/generated'
}
|