-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
76 lines (66 loc) · 1.93 KB
/
build.gradle.kts
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
group = "dev.yekta"
version = "1.0.2"
plugins {
kotlin("jvm") version "1.4.32"
`maven-publish`
`java-library`
}
java {
withJavadocJar()
withSourcesJar()
}
repositories {
jcenter()
maven("https://dl.bintray.com/kotlin/kotlin-eap")
}
sourceSets {
main { java.srcDirs("src/main") }
test { java.srcDirs("src/test") }
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
tasks {
withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class).all {
kotlinOptions {
jvmTarget = "1.8"
allWarningsAsErrors = true
useIR = true
}
}
test {
useJUnitPlatform()
}
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
artifactId = "anynum"
pom {
name.set("AnyNum")
description.set("Kotlin extensions to convert/generate English, Persian, and Arabic digits with ease.")
url.set("https://github.com/YektaDev/AnyNum")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("YektaDev")
name.set("Ali Khaleqi Yekta")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:ssh://[email protected]:YektaDev/AnyNum.git")
developerConnection.set("scm:git:ssh://[email protected]:YektaDev/AnyNum.git")
url.set("https://github.com/YektaDev/AnyNum")
}
}
}
}
}