Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 15 additions & 26 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ buildscript {
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'
classpath 'com.android.tools.build:gradle:8.3.1'
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.9.4'
}
}

Expand All @@ -21,8 +20,9 @@ allprojects {
apply plugin: 'com.android.library'

android {
compileSdkVersion 34
buildToolsVersion '29.0.3'
namespace 'com.google.android.apps.common.testing.accessibility.framework'
compileSdk 34

defaultConfig {
minSdkVersion 19
targetSdkVersion 34
Expand All @@ -34,6 +34,13 @@ android {
targetCompatibility 1.8
sourceCompatibility 1.8
}

publishing {
singleVariant('release') {
withJavadocJar()
withSourcesJar()
}
}
}

apply plugin: 'com.google.protobuf'
Expand All @@ -53,24 +60,6 @@ protobuf {
}
}

// 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.
Expand All @@ -80,9 +69,9 @@ publishing {
groupId 'com.google.android.apps.common.testing.accessibility.framework'
artifactId 'accessibility-test-framework'
version '4.1.1'
from components.android
artifact sourceJar
artifact javadocJar
afterEvaluate {
from components.release
}
pom {
name = 'Accessibility Test Framework'
description = 'Library used to test for common accessibility issues.'
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading