aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--artifacts.gradle58
1 files changed, 35 insertions, 23 deletions
diff --git a/artifacts.gradle b/artifacts.gradle
index 132ce47..a96e81a 100644
--- a/artifacts.gradle
+++ b/artifacts.gradle
@@ -2,29 +2,29 @@ import groovy.xml.MarkupBuilder
apply plugin: 'maven-publish'
-// build a jar with source files
-task sourcesJar(type: Jar) {
- from android.sourceSets.main.java.srcDirs
- classifier = 'sources'
-}
-
-task javadoc(type: Javadoc) {
- failOnError false
- source = android.sourceSets.main.java.sourceFiles
- classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
- classpath += configurations.implementation
-}
-
-// build a jar with javadoc
-task javadocJar(type: Jar, dependsOn: javadoc) {
- classifier = 'javadoc'
- from javadoc.destinationDir
-}
-
-artifacts {
- archives sourcesJar
- archives javadocJar
-}
+//// build a jar with source files
+//task sourcesJar(type: Jar) {
+// from android.sourceSets.main.java.srcDirs
+// classifier = 'sources'
+//}
+//
+//task javadoc(type: Javadoc) {
+// failOnError false
+// source = android.sourceSets.main.java.sourceFiles
+// classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
+// classpath += configurations.implementation
+//}
+//
+//// build a jar with javadoc
+//task javadocJar(type: Jar, dependsOn: javadoc) {
+// classifier = 'javadoc'
+// from javadoc.destinationDir
+//}
+
+//artifacts {
+// archives sourcesJar
+// archives javadocJar
+//}
// Task to generate our public.xml file
// See https://developer.android.com/studio/projects/android-library.html#PrivateResources
@@ -107,4 +107,16 @@ task generatepublicxml {
}
}
+afterEvaluate {
+ publishing {
+ publications {
+ release(MavenPublication) {
+ from components.release
+ groupId = group
+ artifactId = project.name
+ }
+ }
+ }
+}
+
build.dependsOn generatepublicxml \ No newline at end of file