-
-
Notifications
You must be signed in to change notification settings - Fork 293
Updating the maven repository with new releases
The Maven repository that can be accessed publicly from Gradle, etc. to get the processing-core library for Android is stored in the repository branch:
https://github.com/processing/processing-android/tree/repository
This was made following the instructions in this gist:
https://gist.github.com/fernandezpablo85/03cf8b0cd2e7d8527063
One caveat, use mvn version 3.8.7 because of this bug or provide a pom.xml file instead having mvn auto-generating it.
Place the processing-core-x.y.z.jar from building the core library into ../pkgs and then run:
./release.sh x.y.z
git add *
git commit -m "Uploaded files for release x.y.z"
git push
In the settings.gradle file of the project, add https://raw.github.com/processing/processing-android/repository/ as a maven repository, under the dependencyResolutionManagement block:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven {
url "https://raw.github.com/processing/processing-android/repository/"
}
}
}
Then you should able to incorporate processing-core as a dependency in the build.gradle file:
dependencies {
implementation 'org.processing.android:processing-core:4.5'
}
More information below about declaring respositories in Gradle:
https://docs.gradle.org/current/userguide/declaring_repositories.html