From 02a3c5bbaab86bb39a61c21a52b1610a147b9bbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BCnnemann?= Date: Sun, 28 Jan 2024 01:05:33 +0100 Subject: [PATCH] add kotlin build configuration to groovy build configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick Lünnemann --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index ed54e7891..a6b14a9c1 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ thanks to it you will learn how to use the library. ### Gradle / Maven dependency At the moment we do not have a publishing mechanism to a maven repository so the easiest way to add the library to your app is via a JitPack Dependency [![](https://jitpack.io/v/nextcloud/android-library.svg)](https://jitpack.io/#nextcloud/android-library) + +#### build via Groovy configuration ``` repositories { ... @@ -40,6 +42,28 @@ dependencies { exclude group: 'org.ogce', module: 'xpp3' // unused in Android and brings wrong Junit version } ``` +#### build via Kotlin configuration + +in settings.gradle.kts +``` +dependencyResolutionManagement { + ... + repositories { + ... + maven(url = "https://jitpack.io") + } +} +``` + +in build.gradle.kts +``` +dependencies { + ... + implementation("com.github.nextcloud:android-library:$androidLibraryVersion") { + exclude(group = "org.ogce", module = "xpp3") // unused in Android and brings wrong Junit version + } +``` + ### As a git submodule Basically get this code and compile it having it integrated via a git submodule: