Loading build.gradle.kts +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() } Loading @@ -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 { Loading Loading @@ -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 gradle/libs.versions.toml 0 → 100644 +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" } Loading
build.gradle.kts +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() } Loading @@ -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 { Loading Loading @@ -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
gradle/libs.versions.toml 0 → 100644 +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" }