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}"
}