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 "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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue