File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff 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+ 90+ organization.set(" Université de Montréal" )
91+ }
92+ }
93+ scm {
94+ url.set(" https://github.com/breandan/kotlingrad" )
95+ }
96+ }
97+ }
5998}
You can’t perform that action at this time.
0 commit comments