Skip to content

Commit dc98823

Browse files
committed
exclude samples package from build
1 parent 281b739 commit dc98823

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

build.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ publishing {
7575
groupId = "de.n21no.realtime.pubsub"
7676
artifactId = "core"
7777
version = version
78+
79+
// Exclude the samples package
80+
pom {
81+
withXml {
82+
asNode().appendNode("build").appendNode("resources").appendNode("excludes")
83+
.appendNode("exclude", "samples/**")
84+
}
85+
}
7886
}
7987
}
8088
repositories {
@@ -88,3 +96,8 @@ publishing {
8896
}
8997
}
9098
}
99+
100+
// Exclude samples directory from JAR task
101+
tasks.named<Jar>("jar") {
102+
exclude("samples/**")
103+
}

0 commit comments

Comments
 (0)