Skip to content

Commit 4e35e28

Browse files
committed
try sourcesJar
1 parent df30917 commit 4e35e28

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ allprojects {
3333
}
3434

3535
group = "com.github.breandan"
36-
version = "0.3.6"
36+
version = "0.3.7"
3737

3838
apply(plugin = "org.jetbrains.kotlin.jvm")
3939

core/build.gradle.kts

+10-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ tasks {
4545
args = listOf(projectDir.path, project.version.toString())
4646
}
4747

48-
val installPathLocal = "${System.getProperty("user.home")}/.jupyter_kotlin/libraries"
48+
val installPathLocal =
49+
"${System.getProperty("user.home")}/.jupyter_kotlin/libraries"
4950

5051
val jupyterInstall by registering(Copy::class) {
5152
dependsOn(genNotebookJSON)
@@ -56,10 +57,18 @@ tasks {
5657
into(installPath)
5758
doLast { logger.info("Kotlin∇ notebook was installed in: $installPath") }
5859
}
60+
61+
val sourcesJar by registering(Jar::class) {
62+
classifier = "sources"
63+
from(sourceSets.main.get().allSource)
64+
}
5965
}
6066

6167
publishing {
6268
publications.create<MavenPublication>("default") {
69+
from(components["java"])
70+
artifact(tasks["sourcesJar"])
71+
6372
pom {
6473
description.set("Kotlin∇: Differentiable Functional Programming with Algebraic Data Types")
6574
name.set("Kotlin∇")

kaliningraph

0 commit comments

Comments
 (0)