bintray / gradle-bintray-plugin

Apache License 2.0
1.28k stars 197 forks source link

Generic repository & fileSpec : directories not respected #87

Open axel3rd opened 9 years ago

axel3rd commented 9 years ago

Hi,

Context : Uploading a directory (an Eclipse update-site, for jd-eclipse) in a generic repository in Bintray, the original tree is not respected.

Content tree :

build/install/my-plugin-site
¦ 
¦   site.xml
¦
+---features
¦       my.plugin.feature_1.0.0.jar
¦
+---plugins
        my.plugin.plugin_1.0.0.jar

build.gradle config :

plugins {
    id "com.jfrog.bintray" version "1.3.1"
}

bintray {
    user = 'foo'
    key = 'bar'
    publish = true
    pkg {
        repo = 'distrib'
        name = 'update-site'
        licenses = ['GPL-3.0']
        vcsUrl = 'https://github.com/...'
        version {
           name = 'latest'
           desc = 'Eclipse update site for my plugin'
        }
        filesSpec {
                from 'build/install/my-plugin-site'
                into '/'
            }
    }
}

The Bintray result is (Files sheet for theUser/distrib/update-site directory) : update-site-content

The structure is a little strange but ok ...

The site.xml url location is OK : site-xml-ok

But the jars url location doesn't contain update-site/latest (=> could not be used in Eclipse) : jar-ko

Is there a misunderstanding on the build.gradle configuration, or a bug ?

Thanks in advance. Best regards.

franzbecker commented 7 years ago

I'm having the same issue... the location of the root folder is okay but all subfolders are placed in the root of the generic repository.