Skip to content

Commit ee62e86

Browse files
committed
restore maven build, shouldn't have been deleted
1 parent 1acec00 commit ee62e86

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

core/build.gradle.kts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,43 @@ tasks {
5656
into(installPath)
5757
doLast { logger.info("Kotlin∇ notebook was installed in: $installPath") }
5858
}
59+
}
60+
61+
val fatJar by tasks.creating(Jar::class) {
62+
archiveBaseName.set("${project.name}-fat")
63+
manifest {
64+
attributes["Implementation-Title"] = "kotlingrad"
65+
attributes["Implementation-Version"] = archiveVersion
66+
}
67+
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
68+
with(tasks.jar.get() as CopySpec)
69+
}
70+
71+
publishing {
72+
publications.create<MavenPublication>("default") {
73+
artifact(fatJar)
74+
pom {
75+
description.set("Kotlin∇: Differentiable Functional Programming with Algebraic Data Types")
76+
name.set("Kotlin∇")
77+
url.set("https://github.com/breandan/kotlingrad")
78+
licenses {
79+
license {
80+
name.set("The Apache Software License, Version 1.0")
81+
url.set("http://www.apache.org/licenses/LICENSE-3.0.txt")
82+
distribution.set("repo")
83+
}
84+
}
85+
developers {
86+
developer {
87+
id.set("Breandan Considine")
88+
name.set("Breandan Considine")
89+
email.set("[email protected]")
90+
organization.set("Université de Montréal")
91+
}
92+
}
93+
scm {
94+
url.set("https://github.com/breandan/kotlingrad")
95+
}
96+
}
97+
}
5998
}

0 commit comments

Comments
 (0)