From c548edf80d96860a98e4d1dc2db35e3f09aede77 Mon Sep 17 00:00:00 2001 From: Gerd Aschemann Date: Wed, 11 Oct 2023 22:27:58 +0200 Subject: [PATCH] These changes do not yet work! --- htmlSanityCheck-core/build.gradle | 10 ++++++++-- .../htmlsanitycheck/AllChecksRunner.groovy | 0 .../aim42/htmlsanitycheck/Configuration.groovy | 2 +- .../MisconfigurationException.groovy | 0 .../htmlsanitycheck/ProductVersion.groovy | 0 .../htmlsanitycheck/check/AllCheckers.groovy | 0 .../check/BrokenCrossReferencesChecker.groovy | 0 .../check/BrokenHttpLinksChecker.groovy | 0 .../aim42/htmlsanitycheck/check/Checker.groovy | 0 .../check/CheckerCreator.groovy | 0 .../check/DuplicateIdChecker.groovy | 0 .../check/ImageMapChecker.groovy | 0 .../check/MissingAltInImageTagsChecker.groovy | 0 .../check/MissingImageFilesChecker.groovy | 0 .../check/MissingLocalResourcesChecker.groovy | 0 .../check/SuggestingChecker.groovy | 0 .../check/UnknownCheckerException.groovy | 0 .../collect/CheckResults.groovy | 0 .../htmlsanitycheck/collect/Finding.groovy | 0 .../htmlsanitycheck/collect/PageResults.groovy | 0 .../collect/PerRunResults.groovy | 0 .../htmlsanitycheck/collect/RunResults.groovy | 0 .../collect/SingleCheckResults.groovy | 0 .../collect/SinglePageResults.groovy | 0 .../htmlsanitycheck/html/HtmlConst.groovy | 0 .../htmlsanitycheck/html/HtmlElement.groovy | 0 .../aim42/htmlsanitycheck/html/HtmlPage.groovy | 0 .../htmlsanitycheck/html/ParserSample.groovy | 0 .../aim42/htmlsanitycheck/html/URLUtil.groovy | 0 .../report/ConsoleReporter.groovy | 0 .../report/CreateLinkUtil.groovy | 0 .../htmlsanitycheck/report/HtmlReporter.groovy | 0 .../report/JUnitXmlReporter.groovy | 0 .../report/LoggerReporter.groovy | 0 .../htmlsanitycheck/report/Reporter.groovy | 0 .../report/SummarizerUtil.groovy | 0 .../htmlsanitycheck/suggest/Suggester.groovy | 0 .../htmlsanitycheck/AllChecksRunnerTest.groovy | 17 +++++++++-------- .../htmlsanitycheck/ConfigurationSpec.groovy | 0 .../MisconfigurationExceptionSpec.groovy | 0 .../htmlsanitycheck/ProductVersionTest.groovy | 0 .../htmlsanitycheck/RandomStringSpec.groovy | 0 .../BrokenCrossReferencesCheckerTest.groovy | 0 .../check/BrokenHttpLinksCheckerSpec.groovy | 0 .../check/CheckerCreatorSpec.groovy | 0 .../check/DuplicateIdCheckerTest.groovy | 0 .../check/ImageMapsCheckerSpec.groovy | 0 .../MissingAltInImageTagsCheckerSpec.groovy | 0 .../check/MissingImageFilesCheckerTest.groovy | 0 .../MissingLocalResourceRefCountSpec.groovy | 0 .../MissingLocalResourcesCheckerSpec.groovy | 0 .../MissingLocalResourcesCheckerTest.groovy | 0 .../htmlsanitycheck/collect/FindingSpec.groovy | 0 .../collect/PerRunResultsTest.groovy | 0 .../collect/SingleCheckResultsTest.groovy | 0 .../collect/SinglePageResultsTest.groovy | 0 .../htmlsanitycheck/html/HtmlPageSpec.groovy | 0 .../htmlsanitycheck/html/HtmlPageTest.groovy | 0 .../htmlsanitycheck/html/HtmlParserTest.groovy | 0 .../html/ImageMapParserSpec.groovy | 0 .../htmlsanitycheck/html/URLUtilSpec.groovy | 0 .../htmlsanitycheck/html/URLUtilTest.groovy | 0 .../report/ConsoleReporterTest.groovy | 0 .../report/CreateLinkUtilSpec.groovy | 0 .../report/JUnitXmlReporterTest.groovy | 0 .../htmlsanitycheck/report/ReporterTest.groovy | 0 ...stingCheckerReportingIntegrationSpec.groovy | 0 .../report/SummarizerUtilSpec.groovy | 0 ...nCrossReferenceCheckerSuggestionTest.groovy | 0 .../StringSimilarityServiceImplTest.java | 0 .../suggest/SuggesterSpec.groovy | 0 .../testutil/RandomStringGenerator.groovy | 0 .../src/test/resources/file-to-test.adoc | 0 .../src/test/resources/file-to-test.html | 0 .../src/test/resources/images/aim42.png | Bin htmlSanityCheck-gradle-plugin/build.gradle | 7 +------ 76 files changed, 19 insertions(+), 17 deletions(-) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/AllChecksRunner.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/Configuration.groovy (99%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/MisconfigurationException.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/ProductVersion.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/check/AllCheckers.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/check/BrokenCrossReferencesChecker.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/check/BrokenHttpLinksChecker.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/check/Checker.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/check/CheckerCreator.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/check/DuplicateIdChecker.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/check/ImageMapChecker.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/check/MissingAltInImageTagsChecker.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/check/MissingImageFilesChecker.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/check/MissingLocalResourcesChecker.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/check/SuggestingChecker.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/check/UnknownCheckerException.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/collect/CheckResults.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/collect/Finding.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/collect/PageResults.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/collect/PerRunResults.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/collect/RunResults.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/collect/SingleCheckResults.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/collect/SinglePageResults.groovy (100%) rename {htmlSanityCheck-gradle-plugin/src/test => htmlSanityCheck-core/src/main}/groovy/org/aim42/htmlsanitycheck/html/HtmlConst.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/html/HtmlElement.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/html/HtmlPage.groovy (100%) rename {htmlSanityCheck-gradle-plugin/src/test => htmlSanityCheck-core/src/main}/groovy/org/aim42/htmlsanitycheck/html/ParserSample.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/html/URLUtil.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/report/ConsoleReporter.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/report/CreateLinkUtil.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/report/HtmlReporter.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/report/JUnitXmlReporter.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/report/LoggerReporter.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/report/Reporter.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/report/SummarizerUtil.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/main/groovy/org/aim42/htmlsanitycheck/suggest/Suggester.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/AllChecksRunnerTest.groovy (81%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/ConfigurationSpec.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/MisconfigurationExceptionSpec.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/ProductVersionTest.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/RandomStringSpec.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/check/BrokenCrossReferencesCheckerTest.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/check/BrokenHttpLinksCheckerSpec.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/check/CheckerCreatorSpec.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/check/DuplicateIdCheckerTest.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/check/ImageMapsCheckerSpec.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingAltInImageTagsCheckerSpec.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingImageFilesCheckerTest.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingLocalResourceRefCountSpec.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingLocalResourcesCheckerSpec.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingLocalResourcesCheckerTest.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/collect/FindingSpec.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/collect/PerRunResultsTest.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/collect/SingleCheckResultsTest.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/collect/SinglePageResultsTest.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/html/HtmlPageSpec.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/html/HtmlPageTest.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/html/HtmlParserTest.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/html/ImageMapParserSpec.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/html/URLUtilSpec.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/html/URLUtilTest.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/report/ConsoleReporterTest.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/report/CreateLinkUtilSpec.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/report/JUnitXmlReporterTest.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/report/ReporterTest.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/report/SuggestingCheckerReportingIntegrationSpec.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/report/SummarizerUtilSpec.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/suggest/BrokenCrossReferenceCheckerSuggestionTest.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/suggest/StringSimilarityServiceImplTest.java (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/htmlsanitycheck/suggest/SuggesterSpec.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/groovy/org/aim42/testutil/RandomStringGenerator.groovy (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/resources/file-to-test.adoc (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/resources/file-to-test.html (100%) rename {htmlSanityCheck-gradle-plugin => htmlSanityCheck-core}/src/test/resources/images/aim42.png (100%) diff --git a/htmlSanityCheck-core/build.gradle b/htmlSanityCheck-core/build.gradle index c3211f3f..3ab7abaa 100644 --- a/htmlSanityCheck-core/build.gradle +++ b/htmlSanityCheck-core/build.gradle @@ -10,9 +10,15 @@ dependencies { testImplementation( 'junit:junit:4.12', - 'org.spockframework:spock-core:1.3-groovy-2.5' + 'org.spockframework:spock-core:1.3-groovy-2.5', + 'org.slf4j:slf4j-simple:2.0.7' ) - implementation 'org.codehaus.groovy:groovy-all:2.5.22' +// implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.17.1' + implementation "org.slf4j:slf4j-api:2.0.7" + + // jsoup is our awesome html parser, see jsoup.org + implementation group: 'org.jsoup', name: 'jsoup', version: '1.16.1' + implementation 'org.codehaus.groovy:groovy-all:2.5.12' } diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/AllChecksRunner.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/AllChecksRunner.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/AllChecksRunner.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/AllChecksRunner.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/Configuration.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/Configuration.groovy similarity index 99% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/Configuration.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/Configuration.groovy index 1ec7c303..98a5bbb0 100644 --- a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/Configuration.groovy +++ b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/Configuration.groovy @@ -218,7 +218,7 @@ class Configuration { * We need at least one html file as input, maybe several * @param configuration instance * - * srcDocs needs to be of type {@link org.gradle.api.file.FileCollection} + * srcDocs needs to be of type {@link FileCollection} * to be Gradle-compliant */ Boolean isValid() { diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/MisconfigurationException.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/MisconfigurationException.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/MisconfigurationException.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/MisconfigurationException.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/ProductVersion.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/ProductVersion.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/ProductVersion.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/ProductVersion.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/AllCheckers.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/AllCheckers.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/AllCheckers.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/AllCheckers.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/BrokenCrossReferencesChecker.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/BrokenCrossReferencesChecker.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/BrokenCrossReferencesChecker.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/BrokenCrossReferencesChecker.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/BrokenHttpLinksChecker.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/BrokenHttpLinksChecker.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/BrokenHttpLinksChecker.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/BrokenHttpLinksChecker.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/Checker.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/Checker.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/Checker.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/Checker.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/CheckerCreator.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/CheckerCreator.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/CheckerCreator.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/CheckerCreator.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/DuplicateIdChecker.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/DuplicateIdChecker.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/DuplicateIdChecker.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/DuplicateIdChecker.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/ImageMapChecker.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/ImageMapChecker.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/ImageMapChecker.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/ImageMapChecker.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/MissingAltInImageTagsChecker.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/MissingAltInImageTagsChecker.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/MissingAltInImageTagsChecker.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/MissingAltInImageTagsChecker.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/MissingImageFilesChecker.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/MissingImageFilesChecker.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/MissingImageFilesChecker.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/MissingImageFilesChecker.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/MissingLocalResourcesChecker.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/MissingLocalResourcesChecker.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/MissingLocalResourcesChecker.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/MissingLocalResourcesChecker.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/SuggestingChecker.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/SuggestingChecker.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/SuggestingChecker.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/SuggestingChecker.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/UnknownCheckerException.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/UnknownCheckerException.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/check/UnknownCheckerException.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/check/UnknownCheckerException.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/collect/CheckResults.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/collect/CheckResults.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/collect/CheckResults.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/collect/CheckResults.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/collect/Finding.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/collect/Finding.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/collect/Finding.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/collect/Finding.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/collect/PageResults.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/collect/PageResults.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/collect/PageResults.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/collect/PageResults.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/collect/PerRunResults.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/collect/PerRunResults.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/collect/PerRunResults.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/collect/PerRunResults.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/collect/RunResults.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/collect/RunResults.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/collect/RunResults.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/collect/RunResults.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/collect/SingleCheckResults.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/collect/SingleCheckResults.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/collect/SingleCheckResults.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/collect/SingleCheckResults.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/collect/SinglePageResults.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/collect/SinglePageResults.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/collect/SinglePageResults.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/collect/SinglePageResults.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/html/HtmlConst.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/html/HtmlConst.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/html/HtmlConst.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/html/HtmlConst.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/html/HtmlElement.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/html/HtmlElement.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/html/HtmlElement.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/html/HtmlElement.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/html/HtmlPage.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/html/HtmlPage.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/html/HtmlPage.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/html/HtmlPage.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/html/ParserSample.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/html/ParserSample.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/html/ParserSample.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/html/ParserSample.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/html/URLUtil.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/html/URLUtil.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/html/URLUtil.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/html/URLUtil.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/report/ConsoleReporter.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/report/ConsoleReporter.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/report/ConsoleReporter.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/report/ConsoleReporter.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/report/CreateLinkUtil.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/report/CreateLinkUtil.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/report/CreateLinkUtil.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/report/CreateLinkUtil.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/report/HtmlReporter.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/report/HtmlReporter.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/report/HtmlReporter.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/report/HtmlReporter.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/report/JUnitXmlReporter.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/report/JUnitXmlReporter.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/report/JUnitXmlReporter.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/report/JUnitXmlReporter.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/report/LoggerReporter.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/report/LoggerReporter.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/report/LoggerReporter.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/report/LoggerReporter.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/report/Reporter.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/report/Reporter.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/report/Reporter.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/report/Reporter.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/report/SummarizerUtil.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/report/SummarizerUtil.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/report/SummarizerUtil.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/report/SummarizerUtil.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/suggest/Suggester.groovy b/htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/suggest/Suggester.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/main/groovy/org/aim42/htmlsanitycheck/suggest/Suggester.groovy rename to htmlSanityCheck-core/src/main/groovy/org/aim42/htmlsanitycheck/suggest/Suggester.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/AllChecksRunnerTest.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/AllChecksRunnerTest.groovy similarity index 81% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/AllChecksRunnerTest.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/AllChecksRunnerTest.groovy index e4a0c169..3f1ce1f8 100644 --- a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/AllChecksRunnerTest.groovy +++ b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/AllChecksRunnerTest.groovy @@ -1,5 +1,6 @@ package org.aim42.htmlsanitycheck +import junit.framework.TestCase import org.aim42.htmlsanitycheck.check.AllCheckers import org.aim42.htmlsanitycheck.collect.SinglePageResults import org.junit.Test @@ -37,16 +38,16 @@ class AllChecksRunnerTest extends GroovyTestCase { // title = "hsc" int expected = AllCheckers.checkerClazzes.size() - assertEquals("expected $expected kinds of checks", expected, pageResults.singleCheckResults.size()) + TestCase.assertEquals("expected $expected kinds of checks", expected, pageResults.singleCheckResults.size()) - assertEquals("expected 0 items checked", 0, pageResults.nrOfItemsCheckedOnPage()) + TestCase.assertEquals("expected 0 items checked", 0, pageResults.nrOfItemsCheckedOnPage()) - assertEquals("expected 0 findings", 0, pageResults.nrOfFindingsOnPage()) + TestCase.assertEquals("expected 0 findings", 0, pageResults.nrOfFindingsOnPage()) - assertEquals("expected hsc title", "hsc", pageResults.pageTitle) + TestCase.assertEquals("expected hsc title", "hsc", pageResults.pageTitle) String tmpFileName = tmpFile.name - assertEquals("expected $tmpFileName as fileName", tmpFileName, pageResults.pageFileName ) + TestCase.assertEquals("expected $tmpFileName as fileName", tmpFileName, pageResults.pageFileName ) } @@ -69,9 +70,9 @@ class AllChecksRunnerTest extends GroovyTestCase { SinglePageResults pageResults = allChecksRunner.performChecksForOneFile( tmpFile ) int expected = AllCheckers.checkerClazzes.size() - assertEquals("expected $expected kinds of checks", expected, pageResults.singleCheckResults.size()) + TestCase.assertEquals("expected $expected kinds of checks", expected, pageResults.singleCheckResults.size()) - assertEquals("expected 2 findings", 2, pageResults.nrOfFindingsOnPage()) + TestCase.assertEquals("expected 2 findings", 2, pageResults.nrOfFindingsOnPage()) } @@ -86,7 +87,7 @@ class AllChecksRunnerTest extends GroovyTestCase { allChecksRunner = new AllChecksRunner(myConfig) SinglePageResults pageResults = allChecksRunner.performChecksForOneFile(tmpFile) - assertEquals(1, pageResults.singleCheckResults.size()) + TestCase.assertEquals(1, pageResults.singleCheckResults.size()) } } diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/ConfigurationSpec.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/ConfigurationSpec.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/ConfigurationSpec.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/ConfigurationSpec.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/MisconfigurationExceptionSpec.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/MisconfigurationExceptionSpec.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/MisconfigurationExceptionSpec.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/MisconfigurationExceptionSpec.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/ProductVersionTest.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/ProductVersionTest.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/ProductVersionTest.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/ProductVersionTest.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/RandomStringSpec.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/RandomStringSpec.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/RandomStringSpec.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/RandomStringSpec.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/check/BrokenCrossReferencesCheckerTest.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/check/BrokenCrossReferencesCheckerTest.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/check/BrokenCrossReferencesCheckerTest.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/check/BrokenCrossReferencesCheckerTest.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/check/BrokenHttpLinksCheckerSpec.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/check/BrokenHttpLinksCheckerSpec.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/check/BrokenHttpLinksCheckerSpec.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/check/BrokenHttpLinksCheckerSpec.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/check/CheckerCreatorSpec.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/check/CheckerCreatorSpec.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/check/CheckerCreatorSpec.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/check/CheckerCreatorSpec.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/check/DuplicateIdCheckerTest.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/check/DuplicateIdCheckerTest.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/check/DuplicateIdCheckerTest.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/check/DuplicateIdCheckerTest.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/check/ImageMapsCheckerSpec.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/check/ImageMapsCheckerSpec.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/check/ImageMapsCheckerSpec.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/check/ImageMapsCheckerSpec.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingAltInImageTagsCheckerSpec.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingAltInImageTagsCheckerSpec.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingAltInImageTagsCheckerSpec.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingAltInImageTagsCheckerSpec.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingImageFilesCheckerTest.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingImageFilesCheckerTest.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingImageFilesCheckerTest.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingImageFilesCheckerTest.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingLocalResourceRefCountSpec.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingLocalResourceRefCountSpec.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingLocalResourceRefCountSpec.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingLocalResourceRefCountSpec.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingLocalResourcesCheckerSpec.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingLocalResourcesCheckerSpec.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingLocalResourcesCheckerSpec.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingLocalResourcesCheckerSpec.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingLocalResourcesCheckerTest.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingLocalResourcesCheckerTest.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingLocalResourcesCheckerTest.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/check/MissingLocalResourcesCheckerTest.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/collect/FindingSpec.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/collect/FindingSpec.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/collect/FindingSpec.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/collect/FindingSpec.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/collect/PerRunResultsTest.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/collect/PerRunResultsTest.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/collect/PerRunResultsTest.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/collect/PerRunResultsTest.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/collect/SingleCheckResultsTest.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/collect/SingleCheckResultsTest.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/collect/SingleCheckResultsTest.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/collect/SingleCheckResultsTest.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/collect/SinglePageResultsTest.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/collect/SinglePageResultsTest.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/collect/SinglePageResultsTest.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/collect/SinglePageResultsTest.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/html/HtmlPageSpec.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/html/HtmlPageSpec.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/html/HtmlPageSpec.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/html/HtmlPageSpec.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/html/HtmlPageTest.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/html/HtmlPageTest.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/html/HtmlPageTest.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/html/HtmlPageTest.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/html/HtmlParserTest.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/html/HtmlParserTest.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/html/HtmlParserTest.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/html/HtmlParserTest.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/html/ImageMapParserSpec.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/html/ImageMapParserSpec.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/html/ImageMapParserSpec.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/html/ImageMapParserSpec.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/html/URLUtilSpec.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/html/URLUtilSpec.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/html/URLUtilSpec.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/html/URLUtilSpec.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/html/URLUtilTest.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/html/URLUtilTest.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/html/URLUtilTest.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/html/URLUtilTest.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/report/ConsoleReporterTest.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/report/ConsoleReporterTest.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/report/ConsoleReporterTest.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/report/ConsoleReporterTest.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/report/CreateLinkUtilSpec.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/report/CreateLinkUtilSpec.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/report/CreateLinkUtilSpec.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/report/CreateLinkUtilSpec.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/report/JUnitXmlReporterTest.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/report/JUnitXmlReporterTest.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/report/JUnitXmlReporterTest.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/report/JUnitXmlReporterTest.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/report/ReporterTest.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/report/ReporterTest.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/report/ReporterTest.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/report/ReporterTest.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/report/SuggestingCheckerReportingIntegrationSpec.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/report/SuggestingCheckerReportingIntegrationSpec.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/report/SuggestingCheckerReportingIntegrationSpec.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/report/SuggestingCheckerReportingIntegrationSpec.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/report/SummarizerUtilSpec.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/report/SummarizerUtilSpec.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/report/SummarizerUtilSpec.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/report/SummarizerUtilSpec.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/suggest/BrokenCrossReferenceCheckerSuggestionTest.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/suggest/BrokenCrossReferenceCheckerSuggestionTest.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/suggest/BrokenCrossReferenceCheckerSuggestionTest.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/suggest/BrokenCrossReferenceCheckerSuggestionTest.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/suggest/StringSimilarityServiceImplTest.java b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/suggest/StringSimilarityServiceImplTest.java similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/suggest/StringSimilarityServiceImplTest.java rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/suggest/StringSimilarityServiceImplTest.java diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/suggest/SuggesterSpec.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/suggest/SuggesterSpec.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/htmlsanitycheck/suggest/SuggesterSpec.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/suggest/SuggesterSpec.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/testutil/RandomStringGenerator.groovy b/htmlSanityCheck-core/src/test/groovy/org/aim42/testutil/RandomStringGenerator.groovy similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/groovy/org/aim42/testutil/RandomStringGenerator.groovy rename to htmlSanityCheck-core/src/test/groovy/org/aim42/testutil/RandomStringGenerator.groovy diff --git a/htmlSanityCheck-gradle-plugin/src/test/resources/file-to-test.adoc b/htmlSanityCheck-core/src/test/resources/file-to-test.adoc similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/resources/file-to-test.adoc rename to htmlSanityCheck-core/src/test/resources/file-to-test.adoc diff --git a/htmlSanityCheck-gradle-plugin/src/test/resources/file-to-test.html b/htmlSanityCheck-core/src/test/resources/file-to-test.html similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/resources/file-to-test.html rename to htmlSanityCheck-core/src/test/resources/file-to-test.html diff --git a/htmlSanityCheck-gradle-plugin/src/test/resources/images/aim42.png b/htmlSanityCheck-core/src/test/resources/images/aim42.png similarity index 100% rename from htmlSanityCheck-gradle-plugin/src/test/resources/images/aim42.png rename to htmlSanityCheck-core/src/test/resources/images/aim42.png diff --git a/htmlSanityCheck-gradle-plugin/build.gradle b/htmlSanityCheck-gradle-plugin/build.gradle index 238a919a..e14bfca1 100755 --- a/htmlSanityCheck-gradle-plugin/build.gradle +++ b/htmlSanityCheck-gradle-plugin/build.gradle @@ -30,15 +30,10 @@ dependencies { implementation gradleApi() - implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.17.1' - // since gradle 4.6, annotation processors shall be explicitly declared // (instead of just having them in the compile-group) - annotationProcessor 'org.apache.logging.log4j:log4j-core:2.17.1' - +// annotationProcessor 'org.apache.logging.log4j:log4j-core:2.17.1' - // jsoup is our awesome html parser, see jsoup.org - implementation group: 'org.jsoup', name: 'jsoup', version: '1.16.1' implementation project(":htmlSanityCheck-core")