有人可以指导我如何使用Jitpack构建github项目.
我试图遵循这条指令,总是出错.我分叉了一个项目并在其上添加了一些更改,因此我需要将当前的提交ID作为版本.
要在您的构建中获得GitHub项目:
Run Code Online (Sandbox Code Playgroud)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.
这是我的gradle文件
buildscript {
repositories {
mavenCentral()
maven { url 'http://download.crashlytics.com/maven' }
maven { url "https://jitpack.io" }
}
dependencies { …Run Code Online (Sandbox Code Playgroud)