We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc98823 commit e9616ebCopy full SHA for e9616eb
build.gradle.kts
@@ -97,7 +97,29 @@ publishing {
97
}
98
99
100
-// Exclude samples directory from JAR task
+sourceSets {
101
+ main {
102
+ java {
103
+ srcDirs("src/main/java")
104
+ exclude("samples/**")
105
+ }
106
107
+}
108
+
109
tasks.named<Jar>("jar") {
110
exclude("samples/**")
111
112
113
+tasks.named<Jar>("sourcesJar") {
114
115
116
117
+tasks.named<Javadoc>("javadoc") {
118
119
120
121
+java {
122
+ // Include sources and Javadoc JARs
123
+ withSourcesJar()
124
+ withJavadocJar()
125
0 commit comments