From de8a67bd64404cc45c9face36c88f0c068783a47 Mon Sep 17 00:00:00 2001 From: Michael Kutz Date: Tue, 21 May 2024 20:37:55 +0200 Subject: [PATCH] Tidy manual build file --- gradle/libs.versions.toml | 2 ++ manual/build.gradle.kts | 16 ++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 8d22960..2108879 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -9,8 +9,10 @@ junitJupiterEngine = { module = "org.junit.jupiter:junit-jupiter-engine", versio junitJupiterParams = { module = "org.junit.jupiter:junit-jupiter-params", version.ref = "junitVersion" } junitPlatformLauncher = { module = "org.junit.platform:junit-platform-launcher", version = "1.10.2" } assertjCore = { module = "org.assertj:assertj-core", version.ref = "assertjVersion" } +okHttp = { module = "com.squareup.okhttp3:okhttp", version = "4.12.0" } [plugins] +asciidoctor = { id = "org.asciidoctor.jvm.convert", version = "4.0.2" } nexusPublish = { id = "io.github.gradle-nexus.publish-plugin", version = "2.0.0" } sonar = { id = "org.sonarqube", version = "5.0.0.4638" } spotless = { id = "com.diffplug.spotless", version = "6.25.0" } diff --git a/manual/build.gradle.kts b/manual/build.gradle.kts index fa60a07..bf24e0d 100644 --- a/manual/build.gradle.kts +++ b/manual/build.gradle.kts @@ -1,5 +1,5 @@ plugins { - id("org.asciidoctor.jvm.convert") version "4.0.2" + alias(libs.plugins.asciidoctor) java } @@ -9,14 +9,14 @@ dependencies { testImplementation(project(":modules:http")) testImplementation(project(":modules:random")) - testImplementation(platform("org.junit:junit-bom:5.10.2")) - testImplementation("org.junit.jupiter:junit-jupiter-api") - testImplementation("org.junit.jupiter:junit-jupiter-params") - testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine") + testImplementation(platform(libs.junitBom)) + testImplementation(libs.junitJupiterApi) + testImplementation(libs.junitJupiterParams) + testImplementation(libs.assertjCore) + testImplementation(libs.okHttp) - testImplementation("org.assertj:assertj-core:3.25.3") - - testImplementation("com.squareup.okhttp3:okhttp:4.12.0") + testRuntimeOnly(libs.junitPlatformLauncher) + testRuntimeOnly(libs.junitJupiterEngine) } java { toolchain { languageVersion.set(JavaLanguageVersion.of(17)) } }