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