blob: 76e04b6e309156a74a2c0de3bc030719d953d5e1 (
plain)
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
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
`maven-publish`
kotlin("jvm") version "1.6.20"
id("org.jetbrains.dokka") version "1.6.20"
}
group = "me.bush"
version = "1.0.1"
repositories.mavenCentral()
dependencies {
testImplementation(kotlin("test"))
implementation("org.apache.logging.log4j:log4j-core:2.15.0")
implementation(kotlin("reflect", "1.6.20"))
implementation(kotlin("stdlib-jdk8", "1.6.20"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1")
}
java {
withSourcesJar()
withJavadocJar()
}
tasks {
test {
testLogging.showStandardStreams = true
useJUnitPlatform()
}
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
named<Jar>("javadocJar") {
from(named("dokkaJavadoc"))
}
}
publishing.publications.create<MavenPublication>("maven").from(components["java"])
|