diff --git a/README.md b/README.md index 6184b96..f2e9fe0 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ The Java client is hosted on Maven Central. #### Gradle Add the following dependency block to your `build.gradle`. ```java -implementation 'ai.chalk:chalk-java:1.3.2' +implementation 'ai.chalk:chalk-java:1.3.3' ``` #### Maven @@ -22,7 +22,7 @@ Add the following dependency block to your `pom.xml`. ai.chalk chalk-java - 1.3.2 + 1.3.3 ``` diff --git a/build.gradle b/build.gradle index 9f91958..6ee6429 100644 --- a/build.gradle +++ b/build.gradle @@ -186,6 +186,17 @@ publishing { } } +// Central rejects any component missing sources/javadoc, and one bad component fails the whole +// deployment bundle — which would take chalk-java down with it. Reuse the unshaded jars: relocation +// is a bytecode rewrite, so the sources are identical and the public ai.chalk.* API is unrelocated. +// Deferred to afterEvaluate because the vanniktech plugin registers both tasks after this file runs. +afterEvaluate { + publishing.publications.named('shaded') { + artifact(tasks.named('sourcesJar')) { classifier = 'sources' } + artifact(tasks.named('mavenPlainJavadocJar')) { classifier = 'javadoc' } + } +} + // With two publications (maven + shaded), both sign tasks write their .asc into build/libs, and each // publish task reads from build/libs — so Gradle's strict validation flags an implicit dependency // between publish and the *other* publication's sign task and fails the build. Order all publish diff --git a/gradle.properties b/gradle.properties index 625fcb4..46f16aa 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version=1.3.2 \ No newline at end of file +version=1.3.3 \ No newline at end of file