Files
OpenGraphKt/opengraphkt/build.gradle.kts
julien Lengrand-Lambert 95069c10a3 Uploading Code Coverage info (#20)
* Setting up Kover
* Adding CodeCov setup
* Adding badge
2025-05-19 12:30:15 +02:00

82 lines
1.8 KiB
Kotlin

import com.vanniktech.maven.publish.SonatypeHost
plugins {
kotlin("jvm")
id("com.vanniktech.maven.publish") version "0.32.0"
id("org.jetbrains.kotlinx.kover") version "0.9.1"
}
group = "fr.lengrand"
version = "0.0.3-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("org.jsoup:jsoup:1.20.1")
testImplementation(kotlin("test"))
}
java {
withSourcesJar()
}
tasks.test {
useJUnitPlatform()
}
tasks.jar {
manifest {
attributes(mapOf("Implementation-Title" to project.name,
"Implementation-Version" to project.version))
}
}
kotlin {
jvmToolchain(23)
}
mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
coordinates(group.toString(), "opengraphkt", version.toString())
pom {
name = "OpenGraphKt"
description = "A minimalist Kotlin library to work with the Open Graph protocol."
inceptionYear = "2025"
url = "https://github.com/jlengrand/OpenGraphKt"
licenses {
license {
name = "The MIT License"
url = "https://mit-license.org/"
distribution = "https://mit-license.org/"
}
}
developers {
developer {
id = "jlengrand"
name = "Julien Lengrand-Lambert"
url = "https://github.com/jlengrand"
}
}
scm {
url = "https://github.com/jlengrand/OpenGraphKt"
connection = "scm:git:git://github.com/jlengrand/OpenGraphKt.git"
developerConnection = "scm:git:ssh://git@github.com/jlengrand/OpenGraphKt.git"
}
}
}
kover {
reports {
verify {
rule {
minBound(70)
}
}
}
}