Skip to content

Commit

Permalink
update.
Browse files Browse the repository at this point in the history
  • Loading branch information
aoli-al committed Aug 7, 2024
1 parent 4996f4e commit 6852100
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
kotlin("jvm") version "2.0.0"
id("com.ncorti.ktfmt.gradle") version "0.17.0"
id("maven-publish")
id("org.jetbrains.dokka") version "1.9.20"
}


Expand Down Expand Up @@ -33,14 +34,34 @@ configure(allprojects - project(":jvmti")) {

configure(allprojects - project("jvmti") - rootProject) {
plugins.apply("maven-publish")
plugins.apply("org.jetbrains.dokka")

afterEvaluate {
tasks.register<Jar>("dokkaJavadocJar") {
dependsOn(tasks.dokkaJavadoc)
from(tasks.dokkaJavadoc.flatMap { it.outputDirectory })
archiveClassifier.set("javadoc")
}
java {
withSourcesJar()
}
publishing {
publications {
create<MavenPublication>("fray") {
create<MavenPublication>("maven") {
pom {
name = "Fray Testing Framework"
description = "Fray testing framework for concurrency programs."
url = "github.com/cmu-pasta/fray"
licenses {
license {
name = "GPL-3.0"
url = "https://www.gnu.org/licenses/gpl-3.0.html"
}
}

}
from(components["java"])
artifact(tasks["dokkaJavadocJar"])
}
}
}
Expand Down

0 comments on commit 6852100

Please sign in to comment.