Skip to content

Commit

Permalink
publish sourceJar
Browse files Browse the repository at this point in the history
  • Loading branch information
breandan committed Oct 26, 2020
1 parent ed8e288 commit 8233e73
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "com.github.breandan"
version = "0.1.1"
version = "0.1.2"

repositories {
mavenCentral()
Expand Down Expand Up @@ -120,10 +120,18 @@ tasks {
dependsOn(jupyterInstall)
commandLine("jupyter", "notebook", "--notebook-dir=notebooks")
}

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

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

pom {
url.set("https://github.com/breandan/kaliningraph")
licenses {
Expand Down

0 comments on commit 8233e73

Please sign in to comment.