-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
88 lines (73 loc) · 1.9 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
plugins {
id("dev.clojurephant.clojure")
id("java-library")
id("maven-publish")
id("org.ajoberstar.reckon")
}
group = "org.ajoberstar"
reckon {
setDefaultInferredScope("patch")
stages("alpha", "beta", "rc", "final")
setScopeCalc(calcScopeFromProp().or(calcScopeFromCommitMessages()))
setStageCalc(calcStageFromProp())
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
dependencies {
api("org.clojure:clojure:1.10.1")
api("org.clojure:tools.macro:0.1.5")
testRuntimeOnly("org.ajoberstar:jovial:0.3.0")
}
tasks.withType<Test>() {
useJUnitPlatform()
}
publishing {
repositories {
maven {
name = "Clojars"
url = uri("https://repo.clojars.org/")
credentials {
username = System.getenv("CLOJARS_USER")
password = System.getenv("CLOJARS_TOKEN")
}
}
}
publications {
create<MavenPublication>("main") {
from(components["java"])
versionMapping {
usage("java-api") { fromResolutionOf("runtimeClasspath") }
usage("java-runtime") { fromResolutionResult() }
}
pom {
name.set(project.name)
description.set(project.description)
url.set("https://github.com/ajoberstar/cljj")
developers {
developer {
name.set("Andrew Oberstar")
email.set("[email protected]")
}
}
licenses {
license {
name.set("MIT License")
url.set("https://github.com/ajoberstar/cljj/blob/main/LICENSE")
}
}
scm {
url.set("https://github.com/ajoberstar/cljj")
connection.set("scm:git:[email protected]:ajoberstar/cljj.git")
developerConnection.set("scm:git:[email protected]:ajoberstar/cljj.git")
}
}
}
}
}
// Clojars doesn't support module metadata yet
tasks.withType<GenerateModuleMetadata>() {
enabled = false
}