From 86e692cdb1c872259503acab642c75e1e519a537 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sun, 29 Aug 2021 15:16:57 -0700 Subject: Update artifacts --- artifacts.gradle | 58 ++++++++++++++++++++++++++++++++++---------------------- 1 file 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 -- cgit v1.2.3