We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00898b9 commit e18701bCopy full SHA for e18701b
1 file changed
build.gradle
@@ -27,8 +27,20 @@ ext.pluginClassNames = [
27
28
apply plugin: 'java'
29
apply plugin: 'groovy'
30
-sourceCompatibility = 17
31
-targetCompatibility = 17
+
+// Maven Central (Sonatype) requires -sources.jar and -javadoc.jar on close; same as attribute-match java.gradle
32
+java {
33
+ sourceCompatibility = JavaVersion.VERSION_17
34
+ targetCompatibility = JavaVersion.VERSION_17
35
+ withSourcesJar()
36
+ withJavadocJar()
37
+}
38
39
+// Lombok @Builder inner types break strict javadoc; Central still requires a -javadoc.jar artifact
40
+tasks.withType(Javadoc).configureEach {
41
+ failOnError = false
42
+ options.encoding = 'UTF-8'
43
44
45
scmVersion {
46
ignoreUncommittedChanges = false
0 commit comments