Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions browser-switch/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ android {
includeAndroidResources = true
}
}

publishing {
singleVariant('release') {
withSourcesJar()
withJavadocJar()
}
}
}

dependencies {
Expand Down
23 changes: 0 additions & 23 deletions gradle/gradle-publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ afterEvaluate {
version project.ext.version
artifactId project.ext.name
from components.release
artifact androidSourcesJar
artifact javadocsJar

pom {
name = project.ext.pom_name ?: ''
Expand Down Expand Up @@ -56,24 +54,3 @@ afterEvaluate {
}
}
}

task javadocs(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
failOnError false
}

task javadocsJar(type: Jar, dependsOn: javadocs) {
archiveClassifier.set('javadoc')
from javadocs.destinationDir
}

task androidSourcesJar(type: Jar) {
archiveClassifier.set('sources')
from android.sourceSets.main.java.srcDirs
from android.sourceSets.main.kotlin.srcDirs
}

artifacts {
archives androidSourcesJar
archives javadocsJar
}