Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A AndroidSlidingUpPanel
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 267
    • Issues 267
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 34
    • Merge requests 34
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Umano: News Read To You
  • AndroidSlidingUpPanel
  • Merge requests
  • !666

Updated maven_push.gradle to the latest version.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/dvoiss/maven_push-dvoiss-patch into master Feb 17, 2016
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: dvoiss

This version of the maven_push gradle script includes getters for username and password (getRepositoryUsername and getRepositoryPassword) so the build will not fail if the nexus username and password are not set in the gradle.properties file. It defaults them to empty strings if they are not available.

Note that the values in this version of the script get the username from NEXUS_USERNAME and NEXUS_PASSWORD instead of the current nexusUsername and nexusPassword.

This change will also enable jitpack to build the project. Currently there isn't a recent SNAPSHOT build available and I'd like to be able to reference a recent commit that has a feature I want. In the example below I can add a commit or use the latest from this repo's master branch (-SNAPSHOT) in order to do so:

allprojects {
    repositories {
        maven { url "https://jitpack.io" }
    }
}
dependencies {
  ...
  compile 'com.github.umano:androidslidinguppanel:-SNAPSHOT'
}

The difference in this change can be seen in the logs below at jitpack:

The log with the updated maven_push.gradle file in this branch:

BUILD SUCCESSFUL

The log of the current result:

A problem occurred configuring project ':demo'.
> A problem occurred configuring project ':library'.
   > No such property: nexusUsername for class: org.gradle.api.publication.maven.internal.deployer.DefaultGroovyMavenDeployer
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/dvoiss/maven_push-dvoiss-patch