From 820a08704b3e7d10b2f2b1d23211f66cede49829 Mon Sep 17 00:00:00 2001 From: Gerd Aschemann Date: Thu, 4 Apr 2024 08:19:24 +0200 Subject: [PATCH] WIP start testing of jQA --- build.gradle | 18 ++++++++++++++++++ gradle.properties | 4 ++-- gradle/libs.versions.toml | 1 + settings.gradle | 1 + 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 6b4a96f3..2c882360 100644 --- a/build.gradle +++ b/build.gradle @@ -10,6 +10,7 @@ buildscript { plugins { id 'java' + alias(libs.plugins.jqassistant) alias(libs.plugins.gradle.versions) } @@ -88,6 +89,23 @@ configure(subprojects) { } } +ext { + jqaversion = "2.1.0" + kejqapluginversion = "1.12.0" +} + +jqassistant { + toolVersion jqaversion +// plugins "com.buschmais.jqassistant.plugin:java:$jqaversion" +// plugins "de.kontext-e.jqassistant.plugin:jqassistant.plugin.git:$kejqapluginversion" + + // TODO Which Options are available? '-reset' seems to fail +// options "-reset" + + scanDirs "." +} + + tasks.register("integrationTestOnly") { group("Verification") description("Run overall integration tests (no publish)") diff --git a/gradle.properties b/gradle.properties index 765860be..c185eafd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,5 +4,5 @@ version=2.0.0-SNAPSHOT group = org.aim42.htmlSanityCheck -org.gradle.jvmargs=-Xmx2G -org.gradle.parallel=true +org.gradle.jvmargs=-Xmx4G --illegal-access=warn --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED --add-opens java.base/sun.net.www.protocol.http=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED +# org.gradle.parallel=true diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 76cc31a7..d80c1b17 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -15,6 +15,7 @@ spock = "org.spockframework:spock-bom:2.3-groovy-3.0" [plugins] gradle-versions = { id= "com.github.ben-manes.versions", version = "0.50.0" } +jqassistant = { id = "de.kontext_e.jqassistant.gradle", version = "2.0.0-SNAPSHOT" } # Copyright Gerd Aschemann and aim42 contributors. # diff --git a/settings.gradle b/settings.gradle index ea96aca5..2553e66c 100644 --- a/settings.gradle +++ b/settings.gradle @@ -2,6 +2,7 @@ pluginManagement { repositories { gradlePluginPortal() mavenCentral() + mavenLocal() } }