jfrog存储库正在上传javadoc但没有下载

时间:2017-07-11 12:00:04

标签: android maven gradle javadoc artifactory

我们使用jfrog artifactory将我们的库上传到我们的服务器,因此开发人员可以通过maven下载这些库。

由于我们的软件是封闭源代码,我们只想上传.aar文件和javadoc。

为了进行测试,我们还上传了sources.jar,因为我读过,如果没有源代码,就无法在下载的文件中获取javadoc。 在服务器上,我们有aar和sources.jar以及javadoc.jar

但是如果我们通过gradle下载aar库 - 我们根本就没有任何文档。 有人有提示吗?

由于

编辑: Android Studio 2.0 Gradle 2.0.0

应用程序的gradle文件:

apply plugin: 'com.android.application'
def appArtifactId = 'xxxxx.xxxx.xxx'
android {
    compileSdkVersion 23
    buildToolsVersion "24.0.2"

    signingConfigs {
        release {
            storeFile file('../xxxxxxx.jks')
            storePassword 'xxxxxxx'
            keyAlias 'xxxxx'
            keyPassword 'xxxxxxxxxxxx'
        }
    }

    defaultConfig {
        applicationId "xx.xxxxxx.xxxxxx"
        minSdkVersion 14
        targetSdkVersion 23
        versionCode 22
        versionName "0.9.4"
        signingConfig signingConfigs.release
        multiDexEnabled false
    }

    buildTypes {
        debug {
            debuggable true
            minifyEnabled false
            applicationVariants.all { variant ->
                variant.outputs.each { output ->
                    project.ext { appName = appArtifactId }
                    //def formattedDate = new Date().format('yyyyMMddHHmmss')
                    def newName = output.outputFile.name
                    newName = newName.replace("app-", "$project.ext.appName-" + "v"+versionName) //"MyAppName" -> I set my app variables in the root project
                    newName = newName.replace("debug", "")
                    //newName = newName.replace("-release", "-release" + formattedDate)
                    //noinspection GroovyAssignabilityCheck
                    output.outputFile = new File(output.outputFile.parent, newName)
                }
            }
        }

        release {
            debuggable false
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'),
                          'proguard-rules.pro'
        }
    }
}
configurations.all {
    // Check for updates every build
    resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
dependencies {
    compile ("xx.xxxxx.xxxx.libraryname:libraryname:0.0.1-SNAPSHOT"){ changing = true }

    compile 'com.android.support:appcompat-v7:23.2.0'
    compile "com.androidplot:androidplot-core:1.3.1"
    compile 'com.google.code.findbugs:jsr305:2.0.2' // contains @Nullable etc

    compile 'org.apache.commons:commons-math3:3.6.1'
    compile 'org.parceler:parceler-api:1.0.4'

    compile 'com.bugsnag:bugsnag-android:3.+'
    compile 'com.google.android.gms:play-services-maps:10.0.1'
    compile 'com.android.support:design:23.4.0'
    // for @debuglog
    compile 'org.jetbrains:annotations:13.0'
    compile 'com.afollestad.material-dialogs:core:0.8.5.9'
}
apply plugin: 'com.android.application'
apply plugin: 'com.jakewharton.hugo'
apply plugin: 'com.android.application'


def appArtifactId = 'xxxxx.xxxx.xxx'

android {
    compileSdkVersion 23
    buildToolsVersion "24.0.2"

    signingConfigs {
        release {
            storeFile file('../xxxxxxx.jks')
            storePassword 'xxxxxxx'
            keyAlias 'xxxxx'
            keyPassword 'xxxxxxxxxxxx'
        }
    }

    defaultConfig {
        applicationId "xx.xxxxxx.xxxxxx"
        minSdkVersion 14
        targetSdkVersion 23
        versionCode 22
        versionName "0.9.4"
        signingConfig signingConfigs.release
        multiDexEnabled false
    }

    buildTypes {
        debug {
            debuggable true
            minifyEnabled false
            applicationVariants.all { variant ->
                variant.outputs.each { output ->
                    project.ext { appName = appArtifactId }
                    //def formattedDate = new Date().format('yyyyMMddHHmmss')
                    def newName = output.outputFile.name
                    newName = newName.replace("app-", "$project.ext.appName-" + "v"+versionName) //"MyAppName" -> I set my app variables in the root project
                    newName = newName.replace("debug", "")
                    //newName = newName.replace("-release", "-release" + formattedDate)
                    //noinspection GroovyAssignabilityCheck
                    output.outputFile = new File(output.outputFile.parent, newName)
                }
            }
        }

        release {
            debuggable false
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'),
                          'proguard-rules.pro'
        }
    }
}
configurations.all {
    // Check for updates every build
    resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
dependencies {
    compile ("xx.xxxxx.xxxx.libraryname:libraryname:0.0.1-SNAPSHOT"){ changing = true }

    compile 'com.android.support:appcompat-v7:23.2.0'
    compile "com.androidplot:androidplot-core:1.3.1"
    compile 'com.google.code.findbugs:jsr305:2.0.2' // contains @Nullable etc

    compile 'org.apache.commons:commons-math3:3.6.1'
    compile 'org.parceler:parceler-api:1.0.4'

    compile 'com.bugsnag:bugsnag-android:3.+'
    compile 'com.google.android.gms:play-services-maps:10.0.1'
    compile 'com.android.support:design:23.4.0'
    // for @debuglog
    compile 'org.jetbrains:annotations:13.0'
    compile 'com.afollestad.material-dialogs:core:0.8.5.9'
}
// for @debuglog
apply plugin: 'com.android.application'
apply plugin: 'com.jakewharton.hugo'

0 个答案:

没有答案