android,binder,cronet: .aar file when publishing (#10138)

This commit is contained in:
Terry Wilson 2023-05-05 15:21:26 -07:00 committed by GitHub
parent 94dec7c020
commit 0005029328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 36 additions and 17 deletions

View File

@ -2,7 +2,6 @@ plugins {
id "maven-publish"
id "com.android.library"
id "digital.wup.android-maven-publish"
}
description = 'gRPC: Android'
@ -23,6 +22,12 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions { abortOnError true }
publishing {
singleVariant('release') {
withSourcesJar()
withJavadocJar()
}
}
}
repositories {
@ -73,10 +78,9 @@ tasks.register("sourcesJar", Jar) {
publishing {
publications {
maven {
from components.android
artifact javadocJar
artifact sourcesJar
afterEvaluate {
from components.release
}
}
}
}

View File

@ -1,7 +1,6 @@
plugins {
id "maven-publish"
id "com.android.library"
id "digital.wup.android-maven-publish"
}
description = 'gRPC BinderChannel'
@ -38,6 +37,12 @@ android {
multiDexEnabled true
}
lintOptions { abortOnError false }
publishing {
singleVariant('release') {
withSourcesJar()
withJavadocJar()
}
}
}
repositories {
@ -129,10 +134,9 @@ tasks.register("sourcesJar", Jar) {
publishing {
publications {
maven {
from components.android
artifact javadocJar
artifact sourcesJar
afterEvaluate {
from components.release
}
}
}
}

View File

@ -20,7 +20,7 @@ cat <<EOF >> gradle.properties
# https://docs.gradle.org/current/userguide/build_environment.html#sec:configuring_jvm_memory
# Increased due to java.lang.OutOfMemoryError: Metaspace failures, "JVM heap
# space is exhausted", and to increase build speed
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=1024m
EOF
echo y | ${ANDROID_HOME}/tools/bin/sdkmanager "build-tools;28.0.3"

View File

@ -31,6 +31,14 @@ fi
# ARCH is x86_64 unless otherwise specified.
ARCH="${ARCH:-x86_64}"
cat <<EOF >> gradle.properties
# defaults to -Xmx512m -XX:MaxMetaspaceSize=256m
# https://docs.gradle.org/current/userguide/build_environment.html#sec:configuring_jvm_memory
# Increased due to java.lang.OutOfMemoryError: Metaspace failures, "JVM heap
# space is exhausted", and to increase build speed
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=1024m
EOF
ARCH="$ARCH" buildscripts/make_dependencies.sh
# Set properties via flags, do not pollute gradle.properties

View File

@ -2,7 +2,6 @@ plugins {
id "maven-publish"
id "com.android.library"
id "digital.wup.android-maven-publish"
}
description = "gRPC: Cronet Android"
@ -35,6 +34,12 @@ android {
}
testOptions { unitTests { includeAndroidResources = true } }
lintOptions { disable 'InvalidPackage' }
publishing {
singleVariant('release') {
withSourcesJar()
withJavadocJar()
}
}
}
dependencies {
@ -83,10 +88,9 @@ task sourcesJar(type: Jar) {
publishing {
publications {
maven {
from components.android
artifact javadocJar
artifact sourcesJar
afterEvaluate {
from components.release
}
}
}
}

View File

@ -7,7 +7,6 @@ pluginManagement {
id "com.google.cloud.tools.jib" version "3.3.1"
id "com.google.osdetector" version "1.7.1"
id "com.google.protobuf" version "0.9.1"
id "digital.wup.android-maven-publish" version "3.6.3"
id "me.champeau.gradle.japicmp" version "0.3.0"
id "me.champeau.jmh" version "0.6.8"
id "net.ltgt.errorprone" version "3.0.1"