mirror of https://github.com/grpc/grpc-java.git
android,binder,cronet: .aar file when publishing (#10138)
This commit is contained in:
parent
94dec7c020
commit
0005029328
|
@ -2,7 +2,6 @@ plugins {
|
||||||
id "maven-publish"
|
id "maven-publish"
|
||||||
|
|
||||||
id "com.android.library"
|
id "com.android.library"
|
||||||
id "digital.wup.android-maven-publish"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
description = 'gRPC: Android'
|
description = 'gRPC: Android'
|
||||||
|
@ -23,6 +22,12 @@ android {
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
lintOptions { abortOnError true }
|
lintOptions { abortOnError true }
|
||||||
|
publishing {
|
||||||
|
singleVariant('release') {
|
||||||
|
withSourcesJar()
|
||||||
|
withJavadocJar()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
@ -73,10 +78,9 @@ tasks.register("sourcesJar", Jar) {
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
maven {
|
maven {
|
||||||
from components.android
|
afterEvaluate {
|
||||||
|
from components.release
|
||||||
artifact javadocJar
|
}
|
||||||
artifact sourcesJar
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
plugins {
|
plugins {
|
||||||
id "maven-publish"
|
id "maven-publish"
|
||||||
id "com.android.library"
|
id "com.android.library"
|
||||||
id "digital.wup.android-maven-publish"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
description = 'gRPC BinderChannel'
|
description = 'gRPC BinderChannel'
|
||||||
|
@ -38,6 +37,12 @@ android {
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
}
|
}
|
||||||
lintOptions { abortOnError false }
|
lintOptions { abortOnError false }
|
||||||
|
publishing {
|
||||||
|
singleVariant('release') {
|
||||||
|
withSourcesJar()
|
||||||
|
withJavadocJar()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
@ -129,10 +134,9 @@ tasks.register("sourcesJar", Jar) {
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
maven {
|
maven {
|
||||||
from components.android
|
afterEvaluate {
|
||||||
|
from components.release
|
||||||
artifact javadocJar
|
}
|
||||||
artifact sourcesJar
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ cat <<EOF >> gradle.properties
|
||||||
# https://docs.gradle.org/current/userguide/build_environment.html#sec:configuring_jvm_memory
|
# https://docs.gradle.org/current/userguide/build_environment.html#sec:configuring_jvm_memory
|
||||||
# Increased due to java.lang.OutOfMemoryError: Metaspace failures, "JVM heap
|
# Increased due to java.lang.OutOfMemoryError: Metaspace failures, "JVM heap
|
||||||
# space is exhausted", and to increase build speed
|
# space is exhausted", and to increase build speed
|
||||||
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
|
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=1024m
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo y | ${ANDROID_HOME}/tools/bin/sdkmanager "build-tools;28.0.3"
|
echo y | ${ANDROID_HOME}/tools/bin/sdkmanager "build-tools;28.0.3"
|
||||||
|
|
|
@ -31,6 +31,14 @@ fi
|
||||||
# ARCH is x86_64 unless otherwise specified.
|
# ARCH is x86_64 unless otherwise specified.
|
||||||
ARCH="${ARCH:-x86_64}"
|
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
|
ARCH="$ARCH" buildscripts/make_dependencies.sh
|
||||||
|
|
||||||
# Set properties via flags, do not pollute gradle.properties
|
# Set properties via flags, do not pollute gradle.properties
|
||||||
|
|
|
@ -2,7 +2,6 @@ plugins {
|
||||||
id "maven-publish"
|
id "maven-publish"
|
||||||
|
|
||||||
id "com.android.library"
|
id "com.android.library"
|
||||||
id "digital.wup.android-maven-publish"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
description = "gRPC: Cronet Android"
|
description = "gRPC: Cronet Android"
|
||||||
|
@ -35,6 +34,12 @@ android {
|
||||||
}
|
}
|
||||||
testOptions { unitTests { includeAndroidResources = true } }
|
testOptions { unitTests { includeAndroidResources = true } }
|
||||||
lintOptions { disable 'InvalidPackage' }
|
lintOptions { disable 'InvalidPackage' }
|
||||||
|
publishing {
|
||||||
|
singleVariant('release') {
|
||||||
|
withSourcesJar()
|
||||||
|
withJavadocJar()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -83,10 +88,9 @@ task sourcesJar(type: Jar) {
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
maven {
|
maven {
|
||||||
from components.android
|
afterEvaluate {
|
||||||
|
from components.release
|
||||||
artifact javadocJar
|
}
|
||||||
artifact sourcesJar
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,6 @@ pluginManagement {
|
||||||
id "com.google.cloud.tools.jib" version "3.3.1"
|
id "com.google.cloud.tools.jib" version "3.3.1"
|
||||||
id "com.google.osdetector" version "1.7.1"
|
id "com.google.osdetector" version "1.7.1"
|
||||||
id "com.google.protobuf" version "0.9.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.gradle.japicmp" version "0.3.0"
|
||||||
id "me.champeau.jmh" version "0.6.8"
|
id "me.champeau.jmh" version "0.6.8"
|
||||||
id "net.ltgt.errorprone" version "3.0.1"
|
id "net.ltgt.errorprone" version "3.0.1"
|
||||||
|
|
Loading…
Reference in New Issue