novoda / bintray-release Goto Github PK
View Code? Open in Web Editor NEWA helper for releasing from gradle up to bintray
License: Other
A helper for releasing from gradle up to bintray
License: Other
i have done the bintray upload to repository and it was done. But however it is still working available for download as I use the full path
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
//compile project(':library')
compile 'com.hkm:hkmprocessbuttons:1.0.61:@aar'
}
did i do anything wrong?
Error:(20, 13) Failed to resolve: com.hkm:hkmprocessbuttons:1.0.61
<a href="openFile">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
i have check the library location in HERE
We're using variant.getPackageApplication()
which is now deprecated!
The warning when trying to build is
WARNING [Project: :sample] variant.getPackageApplication() is deprecated. Call it on one of variant.getOutputs() instead.
In order to get a bit more flexibility in the development I suggest to introduce the develop branch as the default and keep master for releases.
https://www.atlassian.com/git/tutorials/comparing-workflows/feature-branch-workflow
i got an error from this
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':MaterialTabsModule:bintrayUpload'.
> Could not create package 'jjhesk/maven/advancedmaterialtabs': HTTP/1.1 400 Bad Request
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
I have a project with two modules, one of them is a gradle plugin and the other one is an Android Library. They both have to work together, because I have them on the same project. I have a build.gradle
file on every module and into them I have integrated your plugin to upload to bintray. It seems to work, because I am able to upload both artifact to bintray, but I have a problem, it only upload a .jar
file from my gradle plugin
and a .aar
file from my Android Library. But it doesn't upload any .pom
file neither sources
files. I am not sure if it is because your plugin doesn't work with two modules into one project or I am not configuring properly my build.gradle
files.
You can see my project with your plugin integratino on the next branch:
https://github.com/JcMinarro/ProperDroid/tree/novodaPlugin
When using gradle 2.4 (in gradle-wrapper.properties) then gradlew assemble
fails with the following message:
We need tests around the library creation (Android/Java) at least
Gradle Plugins should use namespaced ids as described in https://docs.gradle.org/current/userguide/custom_plugins.html#N16E5C
I try to publish my android library, run this command. (It is same written in README.)
./gradlew clean build bintrayUpload -PbintrayUser=BINTRAY_USERNAME -PbintrayKey=BINTRAY_KEY -PdryRun=false
The build has been successful, but nothing was uploaded to bintray. The console log at this time is below.
Publication maven not found in project :android-toolkit.
:android-toolkit:clean
:sample:clean
:android-toolkit:compileLint
:android-toolkit:copyDebugLint UP-TO-DATE
:android-toolkit:mergeDebugProguardFiles UP-TO-DATE
:android-toolkit:preBuild UP-TO-DATE
:android-toolkit:preDebugBuild UP-TO-DATE
:android-toolkit:checkDebugManifest
:android-toolkit:prepareDebugDependencies
:android-toolkit:compileDebugAidl
:android-toolkit:compileDebugRenderscript
:android-toolkit:generateDebugBuildConfig
:android-toolkit:generateDebugAssets UP-TO-DATE
:android-toolkit:mergeDebugAssets
:android-toolkit:generateDebugResValues UP-TO-DATE
:android-toolkit:generateDebugResources
:android-toolkit:packageDebugResources
:android-toolkit:processDebugManifest
:android-toolkit:processDebugResources
:android-toolkit:generateDebugSources
:android-toolkit:processDebugJavaRes UP-TO-DATE
:android-toolkit:compileDebugJava
:android-toolkit:packageDebugJar
:android-toolkit:compileDebugNdk UP-TO-DATE
:android-toolkit:packageDebugJniLibs UP-TO-DATE
:android-toolkit:packageDebugLocalJar UP-TO-DATE
:android-toolkit:packageDebugRenderscript UP-TO-DATE
:android-toolkit:bundleDebug
:android-toolkit:compileDebugSources
:android-toolkit:assembleDebug
:android-toolkit:copyReleaseLint UP-TO-DATE
:android-toolkit:mergeReleaseProguardFiles UP-TO-DATE
:android-toolkit:preReleaseBuild UP-TO-DATE
:android-toolkit:checkReleaseManifest
:android-toolkit:prepareReleaseDependencies
:android-toolkit:compileReleaseAidl
:android-toolkit:compileReleaseRenderscript
:android-toolkit:generateReleaseBuildConfig
:android-toolkit:generateReleaseAssets UP-TO-DATE
:android-toolkit:mergeReleaseAssets
:android-toolkit:generateReleaseResValues UP-TO-DATE
:android-toolkit:generateReleaseResources
:android-toolkit:packageReleaseResources
:android-toolkit:processReleaseManifest
:android-toolkit:processReleaseResources
:android-toolkit:generateReleaseSources
:android-toolkit:processReleaseJavaRes UP-TO-DATE
:android-toolkit:compileReleaseJava
:android-toolkit:packageReleaseJar
:android-toolkit:compileReleaseNdk UP-TO-DATE
:android-toolkit:packageReleaseJniLibs UP-TO-DATE
:android-toolkit:packageReleaseLocalJar UP-TO-DATE
:android-toolkit:packageReleaseRenderscript UP-TO-DATE
:android-toolkit:bundleRelease
:android-toolkit:compileReleaseSources
:android-toolkit:assembleRelease
:android-toolkit:assemble
:android-toolkit:lint
Ran lint on variant release: 1 issues found
Ran lint on variant debug: 1 issues found
Wrote HTML report to file:/Users/yuyakaido/Development/Android/AndroidToolkit/android-toolkit/build/outputs/lint-results.html
Wrote XML report to /Users/yuyakaido/Development/Android/AndroidToolkit/android-toolkit/build/outputs/lint-results.xml
:android-toolkit:preCompileDebugUnitTestJava
:android-toolkit:preDebugUnitTestBuild UP-TO-DATE
:android-toolkit:prepareDebugUnitTestDependencies
:android-toolkit:processDebugUnitTestJavaRes UP-TO-DATE
:android-toolkit:compileDebugUnitTestJava UP-TO-DATE
:android-toolkit:compileDebugUnitTestSources UP-TO-DATE
:android-toolkit:mockableAndroidJar
:android-toolkit:assembleDebugUnitTest
:android-toolkit:testDebug
:android-toolkit:preCompileReleaseUnitTestJava
:android-toolkit:preReleaseUnitTestBuild UP-TO-DATE
:android-toolkit:prepareReleaseUnitTestDependencies
:android-toolkit:processReleaseUnitTestJavaRes UP-TO-DATE
:android-toolkit:compileReleaseUnitTestJava UP-TO-DATE
:android-toolkit:compileReleaseUnitTestSources UP-TO-DATE
:android-toolkit:assembleReleaseUnitTest
:android-toolkit:testRelease
:android-toolkit:test
:android-toolkit:check
:android-toolkit:build
:sample:preBuild UP-TO-DATE
:sample:preDebugBuild UP-TO-DATE
:sample:checkDebugManifest
:sample:preReleaseBuild UP-TO-DATE
:sample:prepareAndroidToolkitAndroidToolkitUnspecifiedLibrary
:sample:prepareComAndroidSupportAppcompatV72210Library
:sample:prepareComAndroidSupportSupportV42210Library
:sample:prepareDebugDependencies
:sample:compileDebugAidl
:sample:compileDebugRenderscript
:sample:generateDebugBuildConfig
:sample:generateDebugAssets UP-TO-DATE
:sample:mergeDebugAssets
:sample:generateDebugResValues UP-TO-DATE
:sample:generateDebugResources
:sample:mergeDebugResources
:sample:processDebugManifest
:sample:processDebugResources
:sample:generateDebugSources
:sample:processDebugJavaRes UP-TO-DATE
:sample:compileDebugJava
:sample:compileDebugNdk UP-TO-DATE
:sample:compileDebugSources
:sample:preDexDebug
:sample:dexDebug
:sample:validateDebugSigning
:sample:packageDebug
:sample:zipalignDebug
:sample:assembleDebug
:sample:checkReleaseManifest
:sample:prepareReleaseDependencies
:sample:compileReleaseAidl
:sample:compileReleaseRenderscript
:sample:generateReleaseBuildConfig
:sample:generateReleaseAssets UP-TO-DATE
:sample:mergeReleaseAssets
:sample:generateReleaseResValues UP-TO-DATE
:sample:generateReleaseResources
:sample:mergeReleaseResources
:sample:processReleaseManifest
:sample:processReleaseResources
:sample:generateReleaseSources
:sample:processReleaseJavaRes UP-TO-DATE
:sample:compileReleaseJava
:sample:compileReleaseNdk UP-TO-DATE
:sample:compileReleaseSources
:sample:lintVitalRelease SKIPPED
:sample:preDexRelease
:sample:dexRelease
:sample:packageRelease
:sample:assembleRelease
:sample:assemble
:sample:compileLint
:sample:lint
Ran lint on variant debug: 5 issues found
Ran lint on variant release: 5 issues found
Wrote HTML report to file:/Users/yuyakaido/Development/Android/AndroidToolkit/sample/build/outputs/lint-results.html
Wrote XML report to /Users/yuyakaido/Development/Android/AndroidToolkit/sample/build/outputs/lint-results.xml
:sample:preCompileDebugUnitTestJava
:sample:preDebugUnitTestBuild UP-TO-DATE
:sample:prepareDebugUnitTestDependencies
:sample:processDebugUnitTestJavaRes UP-TO-DATE
:sample:compileDebugUnitTestJava UP-TO-DATE
:sample:compileDebugUnitTestSources UP-TO-DATE
:sample:mockableAndroidJar
:sample:assembleDebugUnitTest
:sample:testDebug
:sample:preCompileReleaseUnitTestJava
:sample:preReleaseUnitTestBuild UP-TO-DATE
:sample:prepareReleaseUnitTestDependencies
:sample:processReleaseUnitTestJavaRes UP-TO-DATE
:sample:compileReleaseUnitTestJava UP-TO-DATE
:sample:compileReleaseUnitTestSources UP-TO-DATE
:sample:assembleReleaseUnitTest
:sample:testRelease
:sample:test
:sample:check
:sample:build
:android-toolkit:bintrayUpload
:android-toolkit:bintrayUpload: Could not find publication: maven.
BUILD SUCCESSFUL
Total time: 30.442 secs
I use com.novoda:bintray-release:0.3.4
, everything works great. The console log at this time is below.
:android-toolkit:clean
:sample:clean
:android-toolkit:compileLint
:android-toolkit:copyDebugLint UP-TO-DATE
:android-toolkit:mergeDebugProguardFiles UP-TO-DATE
:android-toolkit:preBuild UP-TO-DATE
:android-toolkit:preDebugBuild UP-TO-DATE
:android-toolkit:checkDebugManifest
:android-toolkit:prepareDebugDependencies
:android-toolkit:compileDebugAidl
:android-toolkit:compileDebugRenderscript
:android-toolkit:generateDebugBuildConfig
:android-toolkit:generateDebugAssets UP-TO-DATE
:android-toolkit:mergeDebugAssets
:android-toolkit:generateDebugResValues UP-TO-DATE
:android-toolkit:generateDebugResources
:android-toolkit:packageDebugResources
:android-toolkit:processDebugManifest
:android-toolkit:processDebugResources
:android-toolkit:generateDebugSources
:android-toolkit:processDebugJavaRes UP-TO-DATE
:android-toolkit:compileDebugJava
:android-toolkit:packageDebugJar
:android-toolkit:compileDebugNdk UP-TO-DATE
:android-toolkit:packageDebugJniLibs UP-TO-DATE
:android-toolkit:packageDebugLocalJar UP-TO-DATE
:android-toolkit:packageDebugRenderscript UP-TO-DATE
:android-toolkit:bundleDebug
:android-toolkit:compileDebugSources
:android-toolkit:assembleDebug
:android-toolkit:copyReleaseLint UP-TO-DATE
:android-toolkit:mergeReleaseProguardFiles UP-TO-DATE
:android-toolkit:preReleaseBuild UP-TO-DATE
:android-toolkit:checkReleaseManifest
:android-toolkit:prepareReleaseDependencies
:android-toolkit:compileReleaseAidl
:android-toolkit:compileReleaseRenderscript
:android-toolkit:generateReleaseBuildConfig
:android-toolkit:generateReleaseAssets UP-TO-DATE
:android-toolkit:mergeReleaseAssets
:android-toolkit:generateReleaseResValues UP-TO-DATE
:android-toolkit:generateReleaseResources
:android-toolkit:packageReleaseResources
:android-toolkit:processReleaseManifest
:android-toolkit:processReleaseResources
:android-toolkit:generateReleaseSources
:android-toolkit:processReleaseJavaRes UP-TO-DATE
:android-toolkit:compileReleaseJava
:android-toolkit:packageReleaseJar
:android-toolkit:compileReleaseNdk UP-TO-DATE
:android-toolkit:packageReleaseJniLibs UP-TO-DATE
:android-toolkit:packageReleaseLocalJar UP-TO-DATE
:android-toolkit:packageReleaseRenderscript UP-TO-DATE
:android-toolkit:bundleRelease
:android-toolkit:compileReleaseSources
:android-toolkit:assembleRelease
:android-toolkit:assemble
:android-toolkit:lint
Ran lint on variant debug: 1 issues found
Ran lint on variant release: 1 issues found
Wrote HTML report to file:/Users/yuyakaido/Development/Android/AndroidToolkit/android-toolkit/build/outputs/lint-results.html
Wrote XML report to /Users/yuyakaido/Development/Android/AndroidToolkit/android-toolkit/build/outputs/lint-results.xml
:android-toolkit:preCompileDebugUnitTestJava
:android-toolkit:preDebugUnitTestBuild UP-TO-DATE
:android-toolkit:prepareDebugUnitTestDependencies
:android-toolkit:processDebugUnitTestJavaRes UP-TO-DATE
:android-toolkit:compileDebugUnitTestJava UP-TO-DATE
:android-toolkit:compileDebugUnitTestSources UP-TO-DATE
:android-toolkit:mockableAndroidJar
:android-toolkit:assembleDebugUnitTest
:android-toolkit:testDebug
:android-toolkit:preCompileReleaseUnitTestJava
:android-toolkit:preReleaseUnitTestBuild UP-TO-DATE
:android-toolkit:prepareReleaseUnitTestDependencies
:android-toolkit:processReleaseUnitTestJavaRes UP-TO-DATE
:android-toolkit:compileReleaseUnitTestJava UP-TO-DATE
:android-toolkit:compileReleaseUnitTestSources UP-TO-DATE
:android-toolkit:assembleReleaseUnitTest
:android-toolkit:testRelease
:android-toolkit:test
:android-toolkit:check
:android-toolkit:build
:sample:preBuild UP-TO-DATE
:sample:preDebugBuild UP-TO-DATE
:sample:checkDebugManifest
:sample:preReleaseBuild UP-TO-DATE
:sample:prepareAndroidToolkitAndroidToolkitUnspecifiedLibrary
:sample:prepareComAndroidSupportAppcompatV72210Library
:sample:prepareComAndroidSupportSupportV42210Library
:sample:prepareDebugDependencies
:sample:compileDebugAidl
:sample:compileDebugRenderscript
:sample:generateDebugBuildConfig
:sample:generateDebugAssets UP-TO-DATE
:sample:mergeDebugAssets
:sample:generateDebugResValues UP-TO-DATE
:sample:generateDebugResources
:sample:mergeDebugResources
:sample:processDebugManifest
:sample:processDebugResources
:sample:generateDebugSources
:sample:processDebugJavaRes UP-TO-DATE
:sample:compileDebugJava
:sample:compileDebugNdk UP-TO-DATE
:sample:compileDebugSources
:sample:preDexDebug
:sample:dexDebug
:sample:validateDebugSigning
:sample:packageDebug
:sample:zipalignDebug
:sample:assembleDebug
:sample:checkReleaseManifest
:sample:prepareReleaseDependencies
:sample:compileReleaseAidl
:sample:compileReleaseRenderscript
:sample:generateReleaseBuildConfig
:sample:generateReleaseAssets UP-TO-DATE
:sample:mergeReleaseAssets
:sample:generateReleaseResValues UP-TO-DATE
:sample:generateReleaseResources
:sample:mergeReleaseResources
:sample:processReleaseManifest
:sample:processReleaseResources
:sample:generateReleaseSources
:sample:processReleaseJavaRes UP-TO-DATE
:sample:compileReleaseJava
:sample:compileReleaseNdk UP-TO-DATE
:sample:compileReleaseSources
:sample:lintVitalRelease SKIPPED
:sample:preDexRelease
:sample:dexRelease
:sample:packageRelease
:sample:assembleRelease
:sample:assemble
:sample:compileLint
:sample:lint
Ran lint on variant debug: 5 issues found
Ran lint on variant release: 5 issues found
Wrote HTML report to file:/Users/yuyakaido/Development/Android/AndroidToolkit/sample/build/outputs/lint-results.html
Wrote XML report to /Users/yuyakaido/Development/Android/AndroidToolkit/sample/build/outputs/lint-results.xml
:sample:preCompileDebugUnitTestJava
:sample:preDebugUnitTestBuild UP-TO-DATE
:sample:prepareDebugUnitTestDependencies
:sample:processDebugUnitTestJavaRes UP-TO-DATE
:sample:compileDebugUnitTestJava UP-TO-DATE
:sample:compileDebugUnitTestSources UP-TO-DATE
:sample:mockableAndroidJar
:sample:assembleDebugUnitTest
:sample:testDebug
:sample:preCompileReleaseUnitTestJava
:sample:preReleaseUnitTestBuild UP-TO-DATE
:sample:prepareReleaseUnitTestDependencies
:sample:processReleaseUnitTestJavaRes UP-TO-DATE
:sample:compileReleaseUnitTestJava UP-TO-DATE
:sample:compileReleaseUnitTestSources UP-TO-DATE
:sample:assembleReleaseUnitTest
:sample:testRelease
:sample:test
:sample:check
:sample:build
:android-toolkit:generatePomFileForMavenPublication
:android-toolkit:mavenAndroidJavadocs
:android-toolkit:mavenAndroidJavadocsJar
:android-toolkit:mavenAndroidSourcesJar
:android-toolkit:publishMavenPublicationToMavenLocal
:android-toolkit:bintrayUpload
BUILD SUCCESSFUL
Total time: 32.664 secs
Does anyone know the correct solution?
i got this when i try to exe pusblishToMavenLocal
1:48:10 AM: Executing external task 'publishToMavenLocal'...
:library:generatePomFileForMavenPublication
:library:preBuild UP-TO-DATE
:library:preDebugBuild UP-TO-DATE
:library:checkDebugManifest
:library:preDebugAndroidTestBuild UP-TO-DATE
:library:preDebugUnitTestBuild UP-TO-DATE
:library:preReleaseBuild UP-TO-DATE
:library:preReleaseUnitTestBuild UP-TO-DATE
:library:prepareComAndroidSupportAppcompatV72220Library UP-TO-DATE
:library:prepareComAndroidSupportSupportV132220Library UP-TO-DATE
:library:prepareComAndroidSupportSupportV42220Library UP-TO-DATE
:library:prepareDebugDependencies
:library:compileDebugAidl UP-TO-DATE
:library:compileDebugRenderscript UP-TO-DATE
:library:generateDebugBuildConfig UP-TO-DATE
:library:generateDebugAssets UP-TO-DATE
:library:mergeDebugAssets UP-TO-DATE
:library:generateDebugResValues UP-TO-DATE
:library:generateDebugResources UP-TO-DATE
:library:mergeDebugResources UP-TO-DATE
:library:processDebugManifest UP-TO-DATE
:library:processDebugResources UP-TO-DATE
:library:generateDebugSources UP-TO-DATE
:library:processDebugJavaRes UP-TO-DATE
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:library:compileDebugJava
:library:mavenAndroidJavadocs
:library:mavenAndroidJavadocsJar
:library:mavenAndroidSourcesJar
:library:publishMavenPublicationToMavenLocal FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':library:publishMavenPublicationToMavenLocal'.
Failed to publish publication 'maven' to repository 'MavenLocal'
Invalid publication 'maven': artifact file does not exist: 'F:\backupgithub\Hypebeast-Android-SDK\android-SDK-HB\library\build\outputs\aar\library-release.aar'
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 3.844 secs
Invalid publication 'maven': artifact file does not exist: 'F:\backupgithub\Hypebeast-Android-SDK\android-SDK-HB\library\build\outputs\aar\library-release.aar'
1:48:14 AM: External task execution finished 'publishToMavenLocal'.
Projects that want to publish gradle plugins should contain the a 'gradle-plugin' entry in the bintray configuration pkg.version.attributes property.
This allows support for synchronisation between bintray and the gradle plugin portal.
The bintray-release plugin is used by the NOS gradle plugins and would benefit from this feature.
I uploaded my library on bintray repository successful last week, but today it cannot upload, although the terminal prints "BUILD SUCCESSFUL", I could not found it on bintray, I haven't change any code, whats wrong it is?
(problem was user error)
Version 2.8 added the feature to use project property "version". This caused the publish.version property to be ignored if if the property "version" was not defined.
The version "unspecified" is used instead.
Atm it is isn't easy (see #24 (comment))
it should be a matter of using a custom property or something like that
Error:A problem occurred configuring project ':app'.
Could not find app.aar ("GRADLE depencency name ").
Searched in the following locations:
http://dl.bintray.com/songline/maven/"Gradle dependency name ". aar file .
Actually by mistake i was making same dependency name with bintray after delete that package that i was making new package and dependency with same name . but after deleting that it shows this is not found pls help me asap. :(
We should remove the bintray build script class path dependency from our public api
With the following setup i receive a 400 bad request when trying to upload my artifacts. Specifying an Apache license works fine using the same setup.
publish {
...
licences = ['BSD-3-Clause']
}
did i miss the pom file?
from the console:
Skipping upload for missing file '/Users/hesk/github/AdvancedMaterialTabs/MaterialTabsModule/build/publications/maven/pom-default.xml'.
so i received a message from the bintray while i tried to sync from the jcenter. I got rejected that I did include the pom file in the repo. I was working before but it is not now. I kept missing the to upload the pom file. why it is so? but i have had the pom.xml file in the library folder. can someone help me??
When trying to upload an aar package to Bintray with 0.2.9 using the following
publish {
groupId = libraryGroupId
artifactId = libraryBaseName
version = '1.0.1'
autoPublish = false
dryRun = false
}
The version name sent will be "Unspecified". However using 0.2.7 will correctly use '1.0.1' as the version name.
If the name of the repo is not "maven", it breaks. The name of the repo should be parametrizable.
(thanks for your great work!)
During the bintrayUpload, it fails on javaDoc generation. It cannot find my com.library.R
and BuildConfig
. Is there a way to solve this ?
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'com.novoda:bintray-release:0.3.5'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
ext {
//Library configurations
ARTIFACT_ID = 'urvlib'
VERSION_NAME = '0.4.0'
VERSION_CODE = 20 //your version
//Application
app_test_versionCode = 20
app_test_versionName = '1.0.9'
//Support and Build tools version
supportLibrary = '22.2.1'
ftKit = '0.4.1'
//Support Libraries dependencies
supportDependencies = [
percent : "com.android.support:percent:${supportLibrary}",
annotation: "com.android.support:support-annotations:${supportLibrary}",
support : "com.android.support:support-v13:${supportLibrary}",
appCompat : "com.android.support:appcompat-v7:${supportLibrary}",
rv : "com.android.support:recyclerview-v7:${supportLibrary}",
cardView : "com.android.support:cardview-v7:${supportLibrary}",
kitCore : "com.52inc:52Kit-core:${ftKit}"
]
BINTRAY_USER = 'jjhesk'
BINTRAY_APIKEY = ''
DESCRIPTION = 'the ultimate recycler view all in to package'
SITE_URL = 'https://github.com/HKMOpen/UltimateRecyclerView'
GIT_URL = 'https://github.com/HKMOpen/UltimateRecyclerView.git'
GROUP_NAME = 'com.hkm.ultimateurv'
COMPILE_SDK = 23
BUILD_TOOLS = '23.0.1'
MODULE_NAME = 'urvlib'
LICENSE = 'MIT'
DEVELOPER_ID = 'jjhesk'
DEVELOPER_NAME = 'hesk'
DEVELOPER_EMAIL = '[email protected]'
IS_UPLOADING = project.getGradle().startParameter.taskNames.any { it.contains('bintrayUpload') }
}
and i got
apply plugin: 'bintray-release'
subprojects {
group = GROUP_NAME
version = VERSION_NAME
if (IS_UPLOADING && project.name in [MODULE_NAME]) {
println project.name
apply plugin: 'maven'
gradle.taskGraph.whenReady { taskGraph ->
taskGraph.getAllTasks().find {
it.path == ":$project.name:generatePomFileForMavenPublication"
}.doLast {
file("build/publications/maven/pom-default.xml").delete()
println 'Overriding pom-file to make sure we can sync to maven central!'
pom {
//noinspection GroovyAssignabilityCheck
project {
name "$project.name"
artifactId ARTIFACT_ID
packaging project.name == 'compiler' ? 'jar' : 'aar'
description DESCRIPTION
url SITE_URL
version VERSION_NAME
scm {
url GIT_URL
connection GIT_URL
developerConnection GIT_URL
}
licenses {
license {
name LICENSE
}
}
developers {
developer {
id DEVELOPER_ID
name DEVELOPER_NAME
email DEVELOPER_EMAIL
}
}
}
}.writeTo("build/publications/maven/pom-default.xml")
}
}
}
}
i ended up with this warning.
Error:(10, 0) Gradle DSL method not found: 'versionCode()'
Possible causes:
I have found the issue when I am trying include facebook rebound library as stated in gradle with the current version 0.2.7
apply plugin: 'com.android.library'
ext {
PUBLISH_GROUP_ID = 'com.hkm'
PUBLISH_ARTIFACT_ID = project.POM_ARTIFACT_ID
PUBLISH_VERSION = project.VERSION_NAME
}
android {
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
defaultConfig {
minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
versionName project.VERSION_NAME
versionCode Integer.parseInt(project.VERSION_CODE)
}
lintOptions {
abortOnError false
}
}
dependencies {
compile 'com.android.support:support-annotations:21.0.2'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.2.0'
compile 'com.android.support:recyclerview-v7:21.0.2'
compile 'com.facebook.rebound:rebound:0.3.7'
compile 'de.hdodenhof:circleimageview:1.2.2'
compile 'com.makeramen:roundedimageview:1.5.0'
compile 'com.squareup.picasso:picasso:2.5.0'
}
apply from: 'bintray.gradle'
the gradle file:
apply plugin: 'bintray-release'
publish {
userOrg = project.POM_DEVELOPER_ID
groupId = project.PUBLISH_GROUP_ID
artifactId = project.POM_ARTIFACT_ID
version = project.VERSION_NAME
uploadName = project.POM_ARTIFACT_ID
description = project.POM_DESCRIPTION
website = project.POM_URL
autoPublish = true
dryRun = false
licences=[project.POM_LICENCE_NAME]
}
if (hasProperty('POM_DEVELOPER_ID')) {
publish.bintrayUser = project.POM_DEVELOPER_ID
}
if (hasProperty('bintray.apikey')) {
publish.bintrayKey = property('bintray.apikey')
}
and the result is shown as below:
10:15:00 AM: Executing external task 'bintrayUpload'...
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogView.java:22: error: package com.facebook.rebound does not exist
import com.facebook.rebound.Spring;
^
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogView.java:23: error: package com.facebook.rebound does not exist
import com.facebook.rebound.SpringListener;
^
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogView.java:24: error: package com.facebook.rebound does not exist
import com.facebook.rebound.SpringSystem;
^
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogView.java:25: error: package com.facebook.rebound does not exist
import com.facebook.rebound.SpringUtil;
^
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogView.java:26: error: cannot find symbol
import hkm.ui.expendablefragment.R;
^
symbol: class R
location: package hkm.ui.expendablefragment
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogView.java:33: error: cannot find symbol
import static hkm.ui.expendablefragment.R.styleable;
^
symbol: class R
location: package hkm.ui.expendablefragment
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogView.java:33: error: static import only from classes and interfaces
import static hkm.ui.expendablefragment.R.styleable;
^
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogView.java:38: error: cannot find symbol
public class CatelogView<T extends Fragment & FragmentClickable> extends LinearLayout implements View.OnClickListener, SpringListener, FragmentInterface {
^
symbol: class SpringListener
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogView.java:41: error: cannot find symbol
private static SpringSystem springSystem = SpringSystem.create();
^
symbol: class SpringSystem
location: class CatelogView<T>
where T is a type-variable:
T extends Fragment,FragmentClickable declared in class CatelogView
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogViewBuilder.java:8: error: cannot find symbol
import hkm.ui.expendablefragment.R;
^
symbol: class R
location: package hkm.ui.expendablefragment
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogView.java:62: error: cannot find symbol
private Spring spring;
^
symbol: class Spring
location: class CatelogView<T>
where T is a type-variable:
T extends Fragment,FragmentClickable declared in class CatelogView
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogView.java:334: error: cannot find symbol
public void onSpringAtRest(Spring spring) {
^
symbol: class Spring
location: class CatelogView<T>
where T is a type-variable:
T extends Fragment,FragmentClickable declared in class CatelogView
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogView.java:344: error: cannot find symbol
public void onSpringActivate(Spring spring) {
^
symbol: class Spring
location: class CatelogView<T>
where T is a type-variable:
T extends Fragment,FragmentClickable declared in class CatelogView
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogView.java:349: error: cannot find symbol
public void onSpringEndStateChange(Spring spring) {
^
symbol: class Spring
location: class CatelogView<T>
where T is a type-variable:
T extends Fragment,FragmentClickable declared in class CatelogView
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogView.java:358: error: cannot find symbol
public void onSpringUpdate(Spring S) {
^
symbol: class Spring
location: class CatelogView<T>
where T is a type-variable:
T extends Fragment,FragmentClickable declared in class CatelogView
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/bindingholder/basicViewHolder.java:6: error: cannot find symbol
import hkm.ui.expendablefragment.R;
^
symbol: class R
location: package hkm.ui.expendablefragment
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/bindingholder/SlickHolder.java:6: error: cannot find symbol
import hkm.ui.expendablefragment.R;
^
symbol: class R
location: package hkm.ui.expendablefragment
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/header/FeatureImage.java:12: error: cannot find symbol
import hkm.ui.expendablefragment.R;
^
symbol: class R
location: package hkm.ui.expendablefragment
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/header/FeatureImage.java:13: error: package com.squareup.picasso does not exist
import com.squareup.picasso.Picasso;
^
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/list/SlickListAdapter.java:5: error: cannot find symbol
import hkm.ui.expendablefragment.R;
^
symbol: class R
location: package hkm.ui.expendablefragment
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/list/SlickListAdapter.java:10: error: package com.squareup.picasso does not exist
import com.squareup.picasso.Picasso;
^
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/list/SlickListAdapter.java:18: error: cannot find symbol
final Picasso theloadingimagepicasso = Picasso.with(getContext());
^
symbol: class Picasso
location: class SlickListAdapter
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogView.java:322: warning: no description for @param
* @param v
^
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogView.java:331: warning: no description for @param
* @param spring
^
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogView.java:341: warning: no description for @param
* @param spring
^
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogView.java:355: warning: no description for @param
* @param S
^
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogViewBuilder.java:164: warning: no description for @param
* @param styleId
^
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogViewBuilder.java:165: warning: no description for @return
* @return
^
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogViewBuilder.java:175: warning: no description for @param
* @param resId
^
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogViewBuilder.java:176: warning: no description for @return
* @return
^
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogViewBuilder.java:186: warning: no description for @return
* @return
^
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogViewBuilder.java:195: warning: no description for @param
* @param str
^
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogViewBuilder.java:196: warning: no description for @return
* @return
^
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogViewBuilder.java:210: warning: no description for @return
* @return
^
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/CatelogViewBuilder.java:223: warning: no description for @return
* @return
^
/Users/hesk/github/expandableWidget/eexpandedview/src/main/java/hkm/ui/expendablefragment/header/FeatureImage.java:16: error: unknown tag: teach
* @teach you how to write parcel http://blog.callumtaylor.net/serialisationjava-android
^
:eexpandedview:androidJavadocs
1 error
35 warnings
:eexpandedview:androidJavadocs FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':eexpandedview:androidJavadocs'.
> Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): '/Users/hesk/github/expandableWidget/eexpandedview/build/tmp/androidJavadocs/javadoc.options'
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 4.757 secs
Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/javadoc'' finished with non-zero exit value 1
10:15:06 AM: External task execution finished 'bintrayUpload'.
apply plugin: 'com.android.library'
ext {
PUBLISH_GROUP_ID = 'com.hkm'
PUBLISH_ARTIFACT_ID = 'advanced-material-tabs'
PUBLISH_VERSION = project.VERSION_NAME
}
android {
compileSdkVersion 21
buildToolsVersion '21.1.2'
defaultConfig {
minSdkVersion project.ANDROID_BUILD_MIN_SDK_VERSION
targetSdkVersion project.ANDROID_BUILD_TARGET_SDK_VERSION
versionCode Integer.parseInt(project.VERSION_CODE)
versionName project.VERSION_NAME
}
buildTypes {
release {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
dependencies {
compile 'com.github.markushi:android-ui:1.2'
compile 'com.android.support:appcompat-v7:21.0.0'
compile 'com.github.markushi:android-ui:1.2'
}
apply from: 'bintrayrelease.gradle'
apply plugin: 'bintray-release'
publish {
userOrg = project.POM_DEVELOPER_ID
groupId = project.PUBLISH_GROUP_ID
artifactId = project.POM_ARTIFACT_ID
version = project.VERSION_NAME
uploadName = project.POM_ARTIFACT_ID
description = project.POM_DESCRIPTION
website = project.POM_URL
autoPublish = true
dryRun = false
licences=[project.POM_LICENCE_NAME]
}
if (hasProperty('bintray.user')) {
publish.bintrayUser = property('bintray.user')
}
if (hasProperty('bintray.apikey')) {
publish.bintrayKey = property('bintray.apikey')
}
apply plugin: 'maven'
task createPom << {
pom {
project {
name project.POM_DESCRIPTION
packaging project.POM_PACKAGING
description project.POM_DESCRIPTION
url project.POM_URL
version project.VERSION_NAME
scm {
url project.POM_SCM_CONNECTION
connection project.POM_SCM_CONNECTION
developerConnection project.POM_SCM_CONNECTION
}
licenses {
license {
name project.POM_LICENCE_NAME
}
}
developers {
developer {
id project.POM_DEVELOPER_ID
name project.POM_DEVELOPER_NAME
email project.POM_EMAIL
}
}
}
}.writeTo("pom.xml")
}
i got an error when i refresh the project.
Error:Could not find property 'uploadArchives' on task set.
Hi,
I'm getting following exception while publishing.
2 errors
1 warning
:library:mavenAndroidJavadocs FAILEDFAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':library:mavenAndroidJavadocs'.Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): 'C:\Users\aessh\Documents\GitHub\TimelinePostContainer\library\build\tmp\mavenAndroidJavadocs\javadoc.options'
If I use the new gradle plugin 2.4 on Android Studio:
(build.gradle file)
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0-beta1'
}
(gradle-wrapper.properties file)
distributionUrl=https://services.gradle.org/distributions/gradle-2.4-all.zip
I get this error:
Error:Cannot access first() element from an empty List
So, unless I missed something, it would be nice to have support for the full release cycle, like what the maven release plugin
does. Something like:
-SNAPSHOT
-SNAPSHOT
Otherwise all those steps have to be done manually. Or is this already supported and I missed it?
thanks!
Currently, it's necessary to set the version in build.gradle, like:
publish {
....
version = 'r1.2.3'
}
It would be nice if it were possible to specify it using -Pversion=r1.2.3 on the command line instead, so that it's not necessary to update the build.gradle every time you want to do a release.
The gradle portal expects a versionAttribute with key gradle-plugin
instead of gradle-plugins
First of all, let me say that you saved me a lot of headaches with this plugin ๐
I'm having a problem on compilation of a library project that is heavily dependent on a commons library also written by my organization.
The build process goes well until the task androidJavadocs
, where it starts printing "cannot find symbol" and "package does not exist" errors.
Looking at the javadocs.options file, the classpath only includes /Applications/Android/sdk/platforms/android-19/android.jar
where I think the problem is.
Below you can find my build.gradle files
Top Level Build File
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
classpath 'com.novoda:bintray-release:0.2.7'
}
}
allprojects {
repositories {
jcenter()
}
}
Library build file
apply plugin: 'com.android.library'
android {
compileSdkVersion 19
buildToolsVersion "21.1.2"
defaultConfig {
minSdkVersion 8
targetSdkVersion 19
testApplicationId "cl.niclabs.adkmobile.test"
testInstrumentationRunner "android.test.InstrumentationTestRunner"
}
lintOptions {
abortOnError false
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.google.code.gson:gson:2.2.4'
compile 'cl.niclabs:commons-android:1.3.2b'
}
apply plugin: 'bintray-release'
publish {
bintrayUser = bintrayUser
bintrayKey = bintrayApiKey
userOrg = 'niclabs-cl'
groupId = 'cl.niclabs'
artifactId = 'adkintun-mobile-middleware'
version = '1.3.1b'
description = 'Middleware for performing mobile sensing and monitoring.'
website = 'https://github.com/niclabs/adkintun-mobile-middleware'
licences = ['Apache-2.0']
}
Thanks for your help
I have a library which comes in multiple product flavors. I see in the code that there is a TODO in de AndroidArtifacts class when it comes to selecting the right output aar. The following code at the end of my build.gradle now allows me to publish various flavors of the library. Maybe you can use the same concept for automatically creating publish tasks for all product flavors in a library
project.afterEvaluate {
project.android.libraryVariants.each { variant ->
if (variant.buildType.name == "debug") return;
Artifacts artifacts = project.plugins.hasPlugin('com.android.library') ? new AndroidArtifacts() : new JavaArtifacts()
project.publishing.publications.create(variant.name, MavenPublication) {
groupId project.publish.groupId
artifactId project.publish.artifactId+"-"+variant.productFlavors.collect { it.name }.join("-")
version = project.publish.publishVersion
artifacts.all(it.name, project).each {
if (it instanceof CharSequence) {
delegate.artifact "${project.buildDir}/outputs/aar/${project.name}-${variant.baseName}.aar"
} else {
delegate.artifact it
}
}
from artifacts.from(project)
}
}
}
I try to publish my android library on Kotlin using bintray-release plugin and feared followed error:
javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/info/InfoEntry.kt"
javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/info/ObjectInfo.kt"
javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/info/preferences/BooleanPreferenceInfo.kt"
javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/info/preferences/FloatPreferenceInfo.kt"
javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/info/preferences/IntPreferenceInfo.kt"
javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/info/preferences/LongPreferenceInfo.kt"
javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/info/preferences/PreferenceInfo.kt"
javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/info/preferences/StringPreferenceInfo.kt"
javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/mutable/BooleanMutable.kt"
javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/mutable/MutableEntry.kt"
javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/mutable/SetStringMutableEntry.kt"
javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/ui/DevPanelActivity.kt"
javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/ui/InfoListAdapter.kt"
javadoc: error - Illegal package name: "/Users/busylee/work/DevPanel/devpanellib/src/main/kotlin/com/busylee/devpanel/ui/PanelLinearListView.kt"
14 errors
:devpanellib:mavenAndroidJavadocs FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':devpanellib:mavenAndroidJavadocs'.
Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): '/Users/busylee/work/DevPanel/devpanellib/build/tmp/mavenAndroidJavadocs/javadoc.options'
Hi there!
It looks like the plugin is missing to generate some attributes that are required by Bintray to sync with Maven Central:
Invalid POM: /com/jenzz/materialpreference/1.0/materialpreference-1.0.pom:
Project name missing,
Project description missing,
Project URL missing,
License information missing,
SCM URL missing,
Developer information missing
Dropping existing partial staging repository.
I have provided all those information as you can see in my build.gradle.
Any ideas?
See how the plugin would work on libraries with many modules
I'm publishing a java project, with jar, sources and javadoc. I also want to publish an extra jar file, for which I already have the custom task. The wiki mentions I should be able to configure my own publishing to do this kind of thing, but I'm not sure how. An example in the wiki would be great.
I'm pretty sure I should be able to extend JavaArtifacts for that, since I what I want is that plus the new jar. Perhaps I lost because I'm new to groovy and gradle, so again, an example would help a lot.
thanks!
Custom publications cannot be set because we are hardcoding the task name and the maven publication is always created
So now we always use "compile" as the default configuration but if someone is using a custom configuration they should be able to tell the plugin to use that config instead
Introduced in #32
Calling the bintrayUpload task from Android Studio (v1.4) seems that some files are not generated.
Skipping upload for missing file '...-sources.jar'.
Skipping upload for missing file '...-javadoc.jar'.
Calling the same task from console everything seems work fine.
The following are some information about my system.
../gradlew -v
------------------------------------------------------------
Gradle 2.6
------------------------------------------------------------
Build time: 2015-08-10 13:15:06 UTC
Build number: none
Revision: 233bbf8e47c82f72cb898b3e0a96b85d0aad166e
Groovy: 2.3.10
Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM: 1.8.0_40 (Oracle Corporation 25.40-b25)
OS: Mac OS X 10.10.4 x86_64
The plugin is able to release; android (.aar) java (.jar) and groovy (.jar) projects, the current name doesn't really reflect this!
Hi, guys.
Lets say I have build script that contains these dependencies:
dependencies {
compile 'com.yandex.money.api:yandex-money-sdk-java:3.0.2'
compile 'com.google.code.gson:gson:2.3'
androidTestCompile 'com.android.support.test:testing-support-lib:0.1'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.0'
androidTestCompile 'com.jayway.android.robotium:robotium-solo:5.3.1'
}
When I upload file to bintray, your plugin generates following POM:
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.yandex.money.api</groupId>
<artifactId>yandex-money-sdk-android</artifactId>
<version>2.0-rc2</version>
<packaging>aar</packaging>
<dependencies>
<dependency>
<groupId>com.android.support.test</groupId>
<artifactId>testing-support-lib</artifactId>
<version>0.1</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.android.support.test.espresso</groupId>
<artifactId>espresso-core</artifactId>
<version>2.0</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.jayway.android.robotium</groupId>
<artifactId>robotium-solo</artifactId>
<version>5.3.1</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>
If I try to delete androidTestCompile
dependencies:
dependencies {
compile 'com.yandex.money.api:yandex-money-sdk-java:3.0.2'
compile 'com.google.code.gson:gson:2.3'
}
The plugin creates correct POM:
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.yandex.money.api</groupId>
<artifactId>yandex-money-sdk-android</artifactId>
<version>2.0-rc1</version>
<packaging>aar</packaging>
<dependencies>
<dependency>
<groupId>com.yandex.money.api</groupId>
<artifactId>yandex-money-sdk-java</artifactId>
<version>3.0.2</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.3</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>
Can it be fixed?
Thanks.
Using the latest release com.novoda:bintray-release:0.2.10 the description property is not being set.
It's most probably another naming clash like #43 since description
is also an attribute of org.gradle.api.Project.
I suggest using desc
instead to match the project.bintray.pkg.desc
field.
This library hasn't worked for months now, I get a warning that's worded something like "cannot access first() from list".
I want upload a jar file to jcenter in an android module , the default upload is aar , what should I do?
Some libraries customise their aar output file names, for example adding the release version to the library name.
It would be great to be able to specify that in the publish
closure or in a similar way.
Looks like the library we're depending on doesn't play nice with gradle 2.4+ bintray/gradle-bintray-plugin#83
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.