Skip to content

Commit e9616eb

Browse files
committed
updating build config
1 parent dc98823 commit e9616eb

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

build.gradle.kts

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,29 @@ publishing {
9797
}
9898
}
9999

100-
// Exclude samples directory from JAR task
100+
sourceSets {
101+
main {
102+
java {
103+
srcDirs("src/main/java")
104+
exclude("samples/**")
105+
}
106+
}
107+
}
108+
101109
tasks.named<Jar>("jar") {
102110
exclude("samples/**")
111+
}
112+
113+
tasks.named<Jar>("sourcesJar") {
114+
exclude("samples/**")
115+
}
116+
117+
tasks.named<Javadoc>("javadoc") {
118+
exclude("samples/**")
119+
}
120+
121+
java {
122+
// Include sources and Javadoc JARs
123+
withSourcesJar()
124+
withJavadocJar()
103125
}

0 commit comments

Comments
 (0)