小编Mig*_*ilk的帖子

使用Jitpack将Github包构建为Maven

有人可以指导我如何使用Jitpack构建github项目.

我试图遵循这条指令,总是出错.我分叉了一个项目并在其上添加了一些更改,因此我需要将当前的提交ID作为版本.

要在您的构建中获得GitHub项目:

Step 1. Add the JitPack maven repository to your build file

    url "https://jitpack.io"

Step 2. Add the dependency in the form:

    Group: com.github.Username
    Artifact: Repository Name
    Version: Release tag or commit id

That's it! The first time you request a project JitPack checks out the code, builds it and sends the Jar files back to you.
Run Code Online (Sandbox Code Playgroud)

这是我的gradle文件

buildscript {
    repositories {
        mavenCentral()
        maven { url 'http://download.crashlytics.com/maven' }
        maven { url "https://jitpack.io" }
    }
    dependencies { …
Run Code Online (Sandbox Code Playgroud)

git github maven

7
推荐指数
1
解决办法
4086
查看次数

标签 统计

git ×1

github ×1

maven ×1