Skip to content

Commit 8233e73

Browse files
committed
publish sourceJar
1 parent ed8e288 commit 8233e73

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

build.gradle.kts

+9-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
}
88

99
group = "com.github.breandan"
10-
version = "0.1.1"
10+
version = "0.1.2"
1111

1212
repositories {
1313
mavenCentral()
@@ -120,10 +120,18 @@ tasks {
120120
dependsOn(jupyterInstall)
121121
commandLine("jupyter", "notebook", "--notebook-dir=notebooks")
122122
}
123+
124+
val sourcesJar by registering(org.gradle.jvm.tasks.Jar::class) {
125+
classifier = "sources"
126+
from(sourceSets.main.get().allSource)
127+
}
123128
}
124129

125130
publishing {
126131
publications.create<MavenPublication>("default") {
132+
from(components["java"])
133+
artifact(tasks["sourcesJar"])
134+
127135
pom {
128136
url.set("https://github.com/breandan/kaliningraph")
129137
licenses {

0 commit comments

Comments
 (0)