From d4ed68e570c8b70c7e3c3606ca2e37328ab4f230 Mon Sep 17 00:00:00 2001 From: Gerd Aschemann Date: Fri, 26 Jan 2024 11:28:21 +0100 Subject: [PATCH] #309 Fix missing publication of artifacts --- htmlSanityCheck-core/build.gradle | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/htmlSanityCheck-core/build.gradle b/htmlSanityCheck-core/build.gradle index 91c2afdb..8a5898f9 100644 --- a/htmlSanityCheck-core/build.gradle +++ b/htmlSanityCheck-core/build.gradle @@ -1,3 +1,5 @@ +import org.apache.tools.ant.filters.ReplaceTokens + dependencies { implementation libs.slf4j.api testImplementation libs.slf4j.nop @@ -8,6 +10,14 @@ dependencies { implementation 'org.codehaus.groovy:groovy-dateutil' } +publishing { + publications { + mavenJava(MavenPublication) { + from components.java + } + } +} + tasks.register('copyResourceImages', Copy) { from('src/main/resources') { include '**/*.png' @@ -20,7 +30,7 @@ processResources { exclude '**/*.png' inputs.property "version", project.version - filter(org.apache.tools.ant.filters.ReplaceTokens, tokens: [version: project.version]) + filter ReplaceTokens, tokens: [version: project.version] println "after processResources config, version= ${project.version}" }