-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.gradle.kts
98 lines (80 loc) · 2.67 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
plugins {
kotlin("jvm") version "2.0.21"
`maven-publish`
signing
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
id("org.jetbrains.kotlin.jupyter.api") version "0.12.0-285"
}
group = "com.github.holgerbrandl"
version = "1.0.4"
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
// compileOnly("org.jetbrains.kotlin:kotlin-reflect:2.0.21")
api("org.jetbrains.kotlinx:dataframe-core:0.15.0")
api("com.github.holgerbrandl:kdfutils:1.5.0")
api("org.apache.commons:commons-math3:3.6.1")
implementation("org.rosuda.REngine:REngine:2.1.0")
implementation("org.rosuda.REngine:Rserve:1.8.1")
testImplementation("junit:junit:4.13.1")
testImplementation("io.kotest:kotest-assertions-core:5.0.3")
testImplementation("org.jetbrains.kotlin:kotlin-script-runtime:2.0.21")
}
tasks.processJupyterApiResources {
libraryProducers = listOf("kravis.device.jupyter.JupyterIntegration")
}
tasks.javadoc {
exclude("**/PlotResultPanel.java")
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
pom {
name.set("kravis")
description.set("kravis is a Kotlin wrapper around ggplot2 to enable data visualization on the JVM")
url.set("https://github.com/holgerbrandl/kravis")
licenses {
license {
name.set("BSD-2")
url.set("https://github.com/holgerbrandl/kravis/blob/master/LICENSE.txt")
}
}
developers {
developer {
id.set("holgerbrandl")
name.set("Holger Brandl")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:github.com/holgerbrandl/kravis.git")
developerConnection.set("scm:git:ssh://github.com/holgerbrandl/kravis.git")
url.set("https://github.com/holgerbrandl/kravis.git")
}
}
}
}
}
nexusPublishing {
repositories {
sonatype()
// {
// snapshotRepositoryUrl.set(uri(project.findProperty("sonatypeStagingProfileId") ?: "not_defined"))
// username.set(project.findProperty("ossrhUsername")?.toString() ?: "not_defined")
// password.set(project.findProperty("ossrhPassword")?.toString() ?: "not_defined")
// }
}
}
signing {
sign(publishing.publications["mavenJava"])
}
kotlin {
jvmToolchain(17)
}