Giter VIP home page Giter VIP logo

gradle-repo's Introduction

Gradle Repo

用于统一管理Git多仓库及模块间的依赖关系。

Usage

  1. 分别在settings.gradlebuild.gradle中添加gradle-repo插件。
buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.eastwood.tools.plugins:gradle-repo:1.2.0'
    }
}

apply plugin: 'gradle-repo'

  1. 创建repo.xml,并根据项目结构及依赖关系转换成xml格式。

Take Look

Repo Manifest Format

Repo清单格式 / Repo Manifest Format

About repo-local.xml

repo-local.xml可以理解为本地模式。该模式下repo.xml声明的module将不会直接出现项目工程中,而是直接被移到.idea/module中。也就是说只有repo-local.xml声明的module才会出现在项目工程中。

另外,你也可以通过设置disableLocalRepo来禁用该模式,比如:

setting.gradle

...

ext.disableLocalRepo = true

apply plugin: 'gradle-repo'

Be Careful

  • 尽量清理掉settings.gradle中的include。如果一些模块不想被Gradle Repo管理,当然可以继续使用。

  • 分支切换尽量在根项目上操作,同步的时候,其他模块会自动跟随切换过去。如果有些模块是使用固定的分支,可以在声明中指定branch

Gradle Repo plugin for Android Studio

The following features are available:

  • Provides an action which allow you sync and remote origin repository when you modified repo.xml.
  • Support create Repo Tag, could be find in [VCS] -> [Git] -> [Create Repo Tag...].

Install Step:

  1. open [File] -> [Settings...] -> [plugins] -> [Browse repositories...]
  2. and search name Gradle Repo

Plugin detail:

https://plugins.jetbrains.com/plugin/10876-gradle-repo

Gradle Repo plugin for Jenkins

An SCM provider for Jenkins. Projects can use this plugin to only run builds when changes are detected in any of the git repositories in the repo manifest,
to list the changes between builds, and to re-create the project state across all repositories for any previous build using a static manifest.

Plugin detail: https://plugins.jenkins.io/gradle-repo

Question or Idea

有问题或想法可以直接加我微信: EastWoodYang

License

   Copyright 2018 EastWood Yang  
  
   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.  

gradle-repo's People

Contributors

eastwoodyang avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.