From 07d99d4e3dee525d8e767c335619cc28206672f8 Mon Sep 17 00:00:00 2001 From: skydoves Date: Sat, 18 Jun 2022 16:54:28 +0900 Subject: [PATCH] Update gradle properties --- bindables/build.gradle | 1 - gradle.properties | 54 +++++++++++++++++++----------------------- 2 files changed, 24 insertions(+), 31 deletions(-) diff --git a/bindables/build.gradle b/bindables/build.gradle index 4644b46..098c21a 100644 --- a/bindables/build.gradle +++ b/bindables/build.gradle @@ -50,7 +50,6 @@ android { jvmTarget = '1.8' } buildFeatures { - buildConfig false dataBinding true } } diff --git a/gradle.properties b/gradle.properties index bdd2203..f443776 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,38 +14,32 @@ # limitations under the License. # -# Jvm environments -org.gradle.jvmargs=-Xmx4g +# https://docs.gradle.org/current/userguide/build_environment.html#sec:configuring_jvm_memory +org.gradle.jvmargs=-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -XX:MaxMetaspaceSize=512m -Dkotlin.daemon.jvm.options=-XX:MaxMetaspaceSize=1g -Dlint.nullness.ignore-deprecated=true -# AndroidX -android.useAndroidX=true - -# Required to publish to Nexus -systemProp.org.gradle.internal.publish.checksums.insecure=true - -# Increase timeout when pushing to Sonatype -systemProp.org.gradle.internal.http.connectionTimeout=120000 -systemProp.org.gradle.internal.http.socketTimeout=120000 +# https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching=true -# Maven -GROUP=com.github.skydoves -POM_PACKAGING=aar +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +org.gradle.parallel=true -VERSION_NAME=1.1.0-SNAPSHOT +# Configure only necessary projects, useful with multimodule projects +org.gradle.configureondemand=true -POM_ARTIFACT_ID=bindables -POM_NAME=bindables -POM_DESCRIPTION=Android DataBinding kit for notifying data changes from Model layers to UI layers. - -POM_URL=https://github.com/skydoves/bindables/ -POM_SCM_URL=https://github.com/skydoves/bindables/ -POM_SCM_CONNECTION=scm:git:git://github.com/skydoves/bindables.git -POM_SCM_DEV_CONNECTION=scm:git:git://github.com/skydoves/bindables.git - -POM_LICENCE_NAME=The Apache Software License, Version 2.0 -POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt -POM_LICENCE_DIST=repo +# AndroidX Migration https://developer.android.com/jetpack/androidx/migrate +android.useAndroidX=true -POM_DEVELOPER_ID=skydoves -POM_DEVELOPER_NAME=Jaewoong Eum -POM_DEVELOPER_URL=https://github.com/skydoves/ +# Removes uneccessary default build features +android.defaults.buildfeatures.aidl=false +android.defaults.buildfeatures.buildconfig=false +android.defaults.buildfeatures.renderscript=false +android.defaults.buildfeatures.resvalues=false +android.defaults.buildfeatures.shaders=false + +# Enables namespacing of each library's R class so that its R class includes only the +# resources declared in the library itself and none from the library's dependencies, +# thereby reducing the size of the R class for that library +# https://developer.android.com/studio/releases/gradle-plugin#4.1-nontransitive-r-class +android.nonTransitiveRClass=true \ No newline at end of file