qualcuno può per piacere guidarmi su come costruire progetti github usando Jitpack.Costruisci il pacchetto Github come Maven usando Jitpack
Ho provato a seguire questa istruzione e ho sempre ricevuto un errore. Ho biforcato un progetto e aggiunto alcune modifiche su di esso, quindi ho bisogno di ottenere l'id di commit corrente come versione.
Per ottenere un progetto GitHub nella vostra costruzione:
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.
Ecco il mio file Gradle
buildscript {
repositories {
mavenCentral()
maven { url 'http://download.crashlytics.com/maven' }
maven { url "https://jitpack.io" }
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
classpath 'com.jakewharton.hugo:hugo-plugin:1.1.+'
classpath 'com.stanfy.spoon:spoon-gradle-plugin:0.10.+'
classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+'
}
}
dependencies {
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.android.support:recyclerview-v7:22.0.0'
//THIS ONE SEEMS NOT TO WORK BASE ON THE INSTRUCTION
compile ('com.github.username:repo:commitId')
}
che errore stai ottenendo? – NRKirby
qualcosa come "non può risolvere com.github.username: repo: commitId" Ho provato e aggiornato il codice ed eseguito di nuovo. ora il processo gradle non si fermerà –
Penso che lo importerò manualmente. Non so se ce l'ho ma sembra quasi un'ora che il gradle si sta sincronizzando e non restituisce alcun messaggio. –