Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 2dafc3b3 authored by Siarhei Luskanau's avatar Siarhei Luskanau Committed by GitHub
Browse files

Updated build.gradle.kts to use TOML catalog (#17)

parent 14384653
Loading
Loading
Loading
Loading
+7 −15
Original line number Diff line number Diff line
import org.jetbrains.dokka.gradle.DokkaTask
import java.net.URL

object Libs {
    // okhttp HTTP library
    const val okhttpVersion = "4.11.0"

    // XmlPullParser library
    const val xpp3Version = "1.1.6"
}

repositories {
    mavenCentral()
}
@@ -17,10 +9,10 @@ group="com.github.bitfireAT"
version="2.2"

plugins {
    kotlin("jvm") version "1.8.21"
    alias(libs.plugins.kotlin.jvm)
    `maven-publish`

    id("org.jetbrains.dokka") version "1.8.10"
    alias(libs.plugins.dokka)
}

publishing {
@@ -52,10 +44,10 @@ tasks.withType<DokkaTask>().configureEach {
}

dependencies {
    api("com.squareup.okhttp3:okhttp:${Libs.okhttpVersion}")
    implementation("org.apache.commons:commons-lang3:3.8.1")    // last version that doesn't require Java 8
    api("org.ogce:xpp3:${Libs.xpp3Version}")
    api(libs.okhttp)
    implementation(libs.commons.lang3)
    api(libs.xpp3)

    testImplementation("junit:junit:4.13.2")
    testImplementation("com.squareup.okhttp3:mockwebserver:${Libs.okhttpVersion}")
    testImplementation(libs.junit4)
    testImplementation(libs.okhttp.mockwebserver)
}
 No newline at end of file
+18 −0
Original line number Diff line number Diff line
[versions]
commons-lang3 = "3.8.1" # last version that doesn't require Java 8
dokka = "1.8.20"
junit4 = "4.13.2"
kotlin = "1.8.22"
okhttpVersion = "4.11.0"
xpp3Version = "1.1.6"

[libraries]
commons-lang3 = { module = "org.apache.commons:commons-lang3", version.ref = "commons-lang3" }
junit4 = { module = "junit:junit", version.ref = "junit4" }
okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttpVersion" }
okhttp-mockwebserver = { module = "com.squareup.okhttp3:mockwebserver", version.ref = "okhttpVersion" }
xpp3 = { module = "org.ogce:xpp3", version.ref = "xpp3Version" }

[plugins]
dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }