-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
91 lines (84 loc) · 2.7 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
plugins {
kotlin("jvm") version "1.8.10"
`maven-publish`
`java-library`
signing
}
group = "konichiva.geom"
version = "0.9"
java {
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral()
mavenLocal()
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
artifactId = "geom-konichiva-interpreter"
from(components["java"])
versionMapping {
usage("java-api") {
fromResolutionOf("runtimeClasspath")
}
usage("java-runtime") {
fromResolutionResult()
}
}
pom {
name.set("Geometry Checker")
description.set("Interpreter and DSL for geometry tasks")
url.set("https://github.com/konichiva-geom/GeometryChecker")
properties.set(mapOf(
"myProp" to "value",
"prop.with.dots" to "anotherValue"
))
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("llesha")
name.set("Alexey Kononov")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://github.com/konichiva-geom/GeometryChecker.git")
developerConnection.set("scm:git:ssh://github.com/konichiva-geom/GeometryChecker.git")
url.set("https://github.com/konichiva-geom/GeometryChecker")
}
}
}
}
repositories {
maven {
// change URLs to point to your repos, e.g. http://my.org/repo
val releasesRepoUrl = uri(layout.buildDirectory.dir("repos/releases"))
val snapshotsRepoUrl = uri(layout.buildDirectory.dir("repos/snapshots"))
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
}
}
}
//
//signing {
// sign(publishing.publications["mavenJava"])
//}
dependencies {
testImplementation(kotlin("test"))
implementation("com.github.h0tk3y.betterParse:better-parse:0.4.4")
implementation(kotlin("reflect"))
}
//tasks.withType<KotlinCompile> {
// kotlinOptions.jvmTarget = "11"
//}
//tasks.javadoc {
// if (JavaVersion.current().isJava9Compatible) {
// (options as StandardJavadocDocletOptions).addBooleanOption("html5", true)
// }
//}