Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added the license to all jar files #191

Merged
merged 1 commit into from
Nov 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 12 additions & 7 deletions build.gradle.kts
@@ -1,4 +1,5 @@
import io.gitlab.arturbosch.detekt.Detekt
import org.gradle.jvm.tasks.Jar
import org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL

plugins {
Expand All @@ -25,10 +26,6 @@ nexusPublishing {
}
}

apply(plugin = "io.github.gradle-nexus.publish-plugin")
apply(plugin = "maven-publish")
apply(plugin = "signing")

kotlin {
explicitApi()
jvm {
Expand Down Expand Up @@ -107,6 +104,14 @@ tasks {
archiveClassifier.set("javadoc")
}

withType<Jar> {
metaInf.with(
copySpec {
from("${project.rootDir}/LICENSE")
}
)
}

withType<Test> {
testLogging {
showStandardStreams = true
Expand All @@ -130,21 +135,21 @@ publishing {
licenses {
license {
name.set("The Apache Software License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
name.set("Ohad Shai")
email.set("ohadshai@gmail.com")
organization.set("github")
organizationUrl.set("http://www.github.com")
organizationUrl.set("https://www.github.com")
}
}
scm {
connection.set("scm:git:git://github.com/MicroUtils/kotlin-logging.git")
developerConnection.set("scm:git:ssh://github.com:MicroUtils/kotlin-logging.git")
url.set("http://github.com/MicroUtils/kotlin-logging/tree/master")
url.set("https://github.com/MicroUtils/kotlin-logging/tree/master")
}
}
artifact(tasks["dokkaJar"])
Expand Down