Skip to content

Commit

Permalink
try sourcesJar
Browse files Browse the repository at this point in the history
  • Loading branch information
breandan committed Oct 26, 2020
1 parent df30917 commit 4e35e28
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ allprojects {
}

group = "com.github.breandan"
version = "0.3.6"
version = "0.3.7"

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

Expand Down
11 changes: 10 additions & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ tasks {
args = listOf(projectDir.path, project.version.toString())
}

val installPathLocal = "${System.getProperty("user.home")}/.jupyter_kotlin/libraries"
val installPathLocal =
"${System.getProperty("user.home")}/.jupyter_kotlin/libraries"

val jupyterInstall by registering(Copy::class) {
dependsOn(genNotebookJSON)
Expand All @@ -56,10 +57,18 @@ tasks {
into(installPath)
doLast { logger.info("Kotlin∇ notebook was installed in: $installPath") }
}

val sourcesJar by registering(Jar::class) {
classifier = "sources"
from(sourceSets.main.get().allSource)
}
}

publishing {
publications.create<MavenPublication>("default") {
from(components["java"])
artifact(tasks["sourcesJar"])

pom {
description.set("Kotlin∇: Differentiable Functional Programming with Algebraic Data Types")
name.set("Kotlin∇")
Expand Down
2 changes: 1 addition & 1 deletion kaliningraph

0 comments on commit 4e35e28

Please sign in to comment.