From 7879a31ce97fb6c76b5926927c607b5e0a9c51fe Mon Sep 17 00:00:00 2001 From: Kirill Rozov Date: Sun, 5 Feb 2023 13:42:29 +0300 Subject: [PATCH] Add javadocs jar to publishing --- build.gradle | 7 ++++--- publishing.gradle | 1 + vbpd/vbpd-core/build.gradle | 4 ++-- vbpd/vbpd-full/build.gradle | 1 + vbpd/vbpd-noreflection/build.gradle | 1 + 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 91f0e3c..d939e61 100644 --- a/build.gradle +++ b/build.gradle @@ -1,12 +1,13 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext.kotlin_version = "1.8.10" + ext.agp_version = "7.4.1" repositories { google() mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.4.1' + classpath "com.android.tools.build:gradle:$agp_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } @@ -36,14 +37,14 @@ ext { minSdkVersion = 14 targetSdkVersion = 33 - versionName = "1.5.7" + versionName = "1.5.8" dependencies = [:] dependencies.coreKtx = 'androidx.core:core-ktx:1.9.0' dependencies.core = 'androidx.core:core:1.9.0' dependencies.fragmentKtx = 'androidx.fragment:fragment-ktx:1.5.5' dependencies.fragment = 'androidx.fragment:fragment:1.5.5' - dependencies.viewBinding = 'androidx.databinding:viewbinding:7.4.1' + dependencies.viewBinding = "androidx.databinding:viewbinding:$agp_version" dependencies.lifecycleCommonJava8 = 'androidx.lifecycle:lifecycle-common-java8:2.5.1' dependencies.lifecycleCommon = 'androidx.lifecycle:lifecycle-common:2.5.1' dependencies.lifecycleViewmodel = 'androidx.lifecycle:lifecycle-viewmodel:2.5.1' diff --git a/publishing.gradle b/publishing.gradle index 05b8793..148b7f4 100644 --- a/publishing.gradle +++ b/publishing.gradle @@ -17,6 +17,7 @@ afterEvaluate { release(MavenPublication) { from components.kotlin artifact(sourcesJar) + artifact(javadocJar) groupId = project.ext.groupId artifactId = project.ext.artifactId diff --git a/vbpd/vbpd-core/build.gradle b/vbpd/vbpd-core/build.gradle index 30f4a7b..b4c9d4a 100644 --- a/vbpd/vbpd-core/build.gradle +++ b/vbpd/vbpd-core/build.gradle @@ -12,8 +12,7 @@ ext { tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) { kotlinOptions { jvmTarget = "1.8" - kotlinOptions.freeCompilerArgs += - ['-module-name', "com.github.kirich1409.ViewBindingPropertyDelegate.core"] + freeCompilerArgs += ['-module-name', "com.github.kirich1409.ViewBindingPropertyDelegate.core"] } } @@ -22,6 +21,7 @@ java { targetCompatibility = JavaVersion.VERSION_1_8 withSourcesJar() + withJavadocJar() } dependencies { diff --git a/vbpd/vbpd-full/build.gradle b/vbpd/vbpd-full/build.gradle index 76828d7..e2c63bf 100644 --- a/vbpd/vbpd-full/build.gradle +++ b/vbpd/vbpd-full/build.gradle @@ -24,6 +24,7 @@ java { targetCompatibility = JavaVersion.VERSION_1_8 withSourcesJar() + withJavadocJar() } dependencies { diff --git a/vbpd/vbpd-noreflection/build.gradle b/vbpd/vbpd-noreflection/build.gradle index ab245ee..0f222ae 100644 --- a/vbpd/vbpd-noreflection/build.gradle +++ b/vbpd/vbpd-noreflection/build.gradle @@ -22,6 +22,7 @@ java { targetCompatibility = JavaVersion.VERSION_1_8 withSourcesJar() + withJavadocJar() } dependencies {