Skip to content

Commit 7879a31

Browse files
committed
Add javadocs jar to publishing
1 parent 94f19e2 commit 7879a31

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

build.gradle

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
buildscript {
33
ext.kotlin_version = "1.8.10"
4+
ext.agp_version = "7.4.1"
45
repositories {
56
google()
67
mavenCentral()
78
}
89
dependencies {
9-
classpath 'com.android.tools.build:gradle:7.4.1'
10+
classpath "com.android.tools.build:gradle:$agp_version"
1011
// NOTE: Do not place your application dependencies here; they belong
1112
// in the individual module build.gradle files
1213
}
@@ -36,14 +37,14 @@ ext {
3637
minSdkVersion = 14
3738
targetSdkVersion = 33
3839

39-
versionName = "1.5.7"
40+
versionName = "1.5.8"
4041

4142
dependencies = [:]
4243
dependencies.coreKtx = 'androidx.core:core-ktx:1.9.0'
4344
dependencies.core = 'androidx.core:core:1.9.0'
4445
dependencies.fragmentKtx = 'androidx.fragment:fragment-ktx:1.5.5'
4546
dependencies.fragment = 'androidx.fragment:fragment:1.5.5'
46-
dependencies.viewBinding = 'androidx.databinding:viewbinding:7.4.1'
47+
dependencies.viewBinding = "androidx.databinding:viewbinding:$agp_version"
4748
dependencies.lifecycleCommonJava8 = 'androidx.lifecycle:lifecycle-common-java8:2.5.1'
4849
dependencies.lifecycleCommon = 'androidx.lifecycle:lifecycle-common:2.5.1'
4950
dependencies.lifecycleViewmodel = 'androidx.lifecycle:lifecycle-viewmodel:2.5.1'

publishing.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ afterEvaluate {
1717
release(MavenPublication) {
1818
from components.kotlin
1919
artifact(sourcesJar)
20+
artifact(javadocJar)
2021

2122
groupId = project.ext.groupId
2223
artifactId = project.ext.artifactId

vbpd/vbpd-core/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ ext {
1212
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
1313
kotlinOptions {
1414
jvmTarget = "1.8"
15-
kotlinOptions.freeCompilerArgs +=
16-
['-module-name', "com.github.kirich1409.ViewBindingPropertyDelegate.core"]
15+
freeCompilerArgs += ['-module-name', "com.github.kirich1409.ViewBindingPropertyDelegate.core"]
1716
}
1817
}
1918

@@ -22,6 +21,7 @@ java {
2221
targetCompatibility = JavaVersion.VERSION_1_8
2322

2423
withSourcesJar()
24+
withJavadocJar()
2525
}
2626

2727
dependencies {

vbpd/vbpd-full/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ java {
2424
targetCompatibility = JavaVersion.VERSION_1_8
2525

2626
withSourcesJar()
27+
withJavadocJar()
2728
}
2829

2930
dependencies {

vbpd/vbpd-noreflection/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ java {
2222
targetCompatibility = JavaVersion.VERSION_1_8
2323

2424
withSourcesJar()
25+
withJavadocJar()
2526
}
2627

2728
dependencies {

0 commit comments

Comments
 (0)