-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
78 lines (66 loc) · 1.97 KB
/
build.gradle.kts
File metadata and controls
78 lines (66 loc) · 1.97 KB
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
plugins {
kotlin("jvm") version libs.versions.kotlin.get()
`java-library`
alias(libs.plugins.deployer)
alias(libs.plugins.dokka)
}
group = "dev.nextftc"
version = property("version") as String
repositories {
mavenCentral()
}
dependencies {
testImplementation(libs.bundles.kotest)
testImplementation(libs.mockk)
api(libs.functional.interfaces)
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(8)
}
val dokkaJar = tasks.register<Jar>("dokkaJar") {
dependsOn(tasks.named("dokkaGenerate"))
from(dokka.basePublicationsDirectory.dir("html"))
archiveClassifier = "html-docs"
}
deployer {
projectInfo {
name = "NextControl"
description = "A user-friendly control library for the FIRST Tech Challenge"
url = "https://nextftc.dev/control"
scm {
fromGithub("NextFTC", "NextControl")
}
license("GNU General Public License, version 3", "https://www.gnu.org/licenses/gpl-3.0.html")
developer("Davis Luxenberg", "davis.luxenberg@outlook.com", url = "https://github.com/BeepBot99")
developer("Zach Harel", "ftc@zharel.me", url = "https://github.com/zachwaffle4")
developer("Rowan McAlpin", "rowan@nextftc.dev", url = "https://rowanmcalpin.com")
}
signing {
key = secret("MVN_GPG_KEY")
password = secret("MVN_GPG_PASSWORD")
}
content {
kotlinComponents {
kotlinSources()
docs(dokkaJar)
}
}
localSpec()
nexusSpec("snapshot") {
repositoryUrl = "https://central.sonatype.com/repository/maven-snapshots/"
auth {
user = secret("SONATYPE_USERNAME")
password = secret("SONATYPE_PASSWORD")
}
}
centralPortalSpec {
auth {
user = secret("SONATYPE_USERNAME")
password = secret("SONATYPE_PASSWORD")
}
allowMavenCentralSync = (property("automaticMavenCentralSync") as String).toBoolean()
}
}