Skip to content

Commit

Permalink
Add javadocs jar to publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
kirich1409 committed Feb 5, 2023
1 parent 94f19e2 commit 7879a31
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -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
}
Expand Down Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions publishing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ afterEvaluate {
release(MavenPublication) {
from components.kotlin
artifact(sourcesJar)
artifact(javadocJar)

groupId = project.ext.groupId
artifactId = project.ext.artifactId
Expand Down
4 changes: 2 additions & 2 deletions vbpd/vbpd-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
}

Expand All @@ -22,6 +21,7 @@ java {
targetCompatibility = JavaVersion.VERSION_1_8

withSourcesJar()
withJavadocJar()
}

dependencies {
Expand Down
1 change: 1 addition & 0 deletions vbpd/vbpd-full/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ java {
targetCompatibility = JavaVersion.VERSION_1_8

withSourcesJar()
withJavadocJar()
}

dependencies {
Expand Down
1 change: 1 addition & 0 deletions vbpd/vbpd-noreflection/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ java {
targetCompatibility = JavaVersion.VERSION_1_8

withSourcesJar()
withJavadocJar()
}

dependencies {
Expand Down

0 comments on commit 7879a31

Please sign in to comment.