From 427cfe37b11e320ab660fec9e56778ece436457e Mon Sep 17 00:00:00 2001 From: Carlos Amengual Date: Wed, 21 Apr 2021 21:04:32 +0200 Subject: [PATCH] Initial Gradle build file. --- .gitignore | 3 ++- build.gradle | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 build.gradle diff --git a/.gitignore b/.gitignore index 4654a1b..c8b55b4 100644 --- a/.gitignore +++ b/.gitignore @@ -17,5 +17,6 @@ *.iml *.iws -# Maven +# Gradle +/.gradle /build/ diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..c0cdcf5 --- /dev/null +++ b/build.gradle @@ -0,0 +1,27 @@ +plugins { + id 'css4j.java-conventions' + id 'de.jjohannes.extra-java-module-info' +} + +dependencies { + api project(':css4j') + testImplementation project(':xml-dtd') + testImplementation project(path: ':css4j', configuration: 'tests') + testImplementation "nu.validator:htmlparser:${htmlparserVersion}" + testImplementation "org.slf4j:slf4j-api:${slf4jVersion}" +} + +extraJavaModuleInfo { + failOnMissingModuleInfo.set(false) + automaticModule("htmlparser-${htmlparserVersion}.jar", 'htmlparser') +} + +description = 'css4j-awt' + +publishing.publications.maven(MavenPublication).pom { + description = "CSS4J AWT module" +} + +java { + withJavadocJar() +}