You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.
// Both the artifactory and bintray plugins depend on this singular
// global version variable. As such, we need to configure it based
// on which task we're running.
//
// The solution here is brittle; it just checks whether 'bintrayUpload'
// was called for execution, otherwise it assumes SNAPSHOT. If we
// were to wait until the task graph was built, we'd be too late
// (the plugins would already have used version).
version = PROJ_VERSION
// Create source/javadoc artifacts for publishing
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
Question: Skipping upload for missing file 'D:Project\module\build\publications\mavenJava\pom-default.xml'.
Below is my upload.gradle:
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'
group = PROJ_GROUP
// Both the artifactory and bintray plugins depend on this singular
// global
version
variable. As such, we need to configure it based// on which task we're running.
//
// The solution here is brittle; it just checks whether 'bintrayUpload'
// was called for execution, otherwise it assumes SNAPSHOT. If we
// were to wait until the task graph was built, we'd be too late
// (the plugins would already have used
version
).version = PROJ_VERSION
// Create source/javadoc artifacts for publishing
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
task javadoc(type: Javadoc) {
// Exclude generated files
exclude '/BuildConfig.java'
exclude '/R.java'
source = android.sourceSets.main.java.srcDirs
failOnError false
classpath += configurations.compile
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
javadoc {
options {
encoding "UTF-8"
charSet 'UTF-8'
author true
version true
links "http://docs.oracle.com/javase/7/docs/api"
title PROJ_ARTIFACTID
}
}
artifacts {
archives javadocJar
archives sourcesJar
}
// Configure android-maven-gradle-plugin
install {
repositories.mavenInstaller.pom.project {
name PROJ_NAME
description PROJ_DESCRIPTION
packaging 'aar'
url PROJ_WEBSITEURL
}
// Configure gradle-bintray-plugin (for publishing releases)
bintray {
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId PROJ_ARTIFACTID
// root.children().last() + pomConfig
}
}
}
The text was updated successfully, but these errors were encountered: