git-repo


Source link: https://github.com/rharter/gradle-git-repo

git-repo

A gradle plugin that facilitates using a git repository as your maven repo, useful when you want to host private, internal maven artifacts, but a full blown repository manager is more than you nee.

Usage

Creating a repo

Create a git repo to house your artifacts. If you'd like, the snapshots and releases repositories can be different, or they can be subdirectories of the same repo.

You are welcome to use your git repository's built in access controls, but note that the git-repo plugin only works with ssh urls.

Note: git-repo won't work with private repos until Gradle pull request 386 is merged.

Deploying

Add the plugin as a buildscript dependency, then apply the plugin.

buildscript {
  repositories {

mavenCentral()  
}
  dependencies {

classpath 'com.ryanharter.gradle-git-repo:gradle-plugin:1.0.1'  
}
 
}
  apply plugin: 'git-repo' 

Then you simply configure the maven uploadArchives as you normally would, but provide a git url for the repositories.

uploadArchives {
  repositories {

mavenDeployer {

 repository(url: '[email protected]:rharter/maven-repo.git/releases')
 snapshotRepository(url: '[email protected]/rharter/maven-repo.git/snapshots')

  // standard pom settings

}
  
}
 
}
 

Now when you run ./gradlew uploadArchives your artifacts will be added to your git repository and pushed.

Consuming

In the project in which you want to consume archives from your github repo, simply add the repo as a repository in your dependencies section.

dependencies {

  repositories {

mavenCentral()

maven {
 url "https://raw.githubusercontent.com/rharter/maven-repo/master/releases" 
}

maven {
 url "https://raw.githubusercontent.com/rharter/maven-repo/master/snapshots" 
}

  
}

  ... 
}
 

Customizing

Gradle Repo Directory

By default, gradle-git-repo will clone repositories into ~/.git-repo. This can be changed using the GIT_REPO_CLONE_DIR environment variable.

License

Copyright 2014 Ryan Harter  Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License. You may obtain a copy of the License at
  http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 

Resources

Micro-Transitions for Smooth Android To-Do List Animations.

A set of EditTexts with built-in support for Date and TimePicker's using fragments.

Mobile Test Automation Tool

  • Run the same test on different mobile devices and operating systems with a mobile test automation tool that allows tests portability
  • Perform mobile test automation using real devices and emulators
  • Create a test on one device and run it on any other device model or operating system
  • Increase coverage with full peripheral testing capabilities
  • Start your mobile test automation quickly with a simple plug, record and play tool
  • Enhance your mobile test automation by Integrating into all your major ALM environments
  • Integrate with any continuous integration environment
  • Recorder for quick test creation

This example is basically used for simple using of data binding for Views and RecyclerView using model.

This library aims to provide a chat UI view.

  • You need to write just few code to create chat view
  • Easy to use for a chat app

SectionedMergeAdapter is a library based on MergeAdapter by CommonsWare. It allows you to work with sections and subheaders in your ListViews. With this library, you get the advantage of stitching together the rows and the header of the subsection in the subsection itself. For example, if there are no rows in a subsection of the ListView, the header of the subsection is also not shown.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes