-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle.kts
74 lines (64 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
import com.vanniktech.maven.publish.SonatypeHost
plugins {
kotlin("jvm") version "2.0.21"
id("java-library")
id("com.vanniktech.maven.publish") version "0.30.0"
}
val versionName = "10.2.0"
mavenPublishing {
coordinates("com.kylecorry", "sol", versionName)
pom {
name.set("Sol")
description.set("A Kotlin library for science and math in the real world.")
url.set("https://github.com/kylecorry31/sol")
licenses {
license {
name.set("MIT License")
url.set("https://opensource.org/licenses/MIT")
}
}
developers {
developer {
id.set("kylecorry31")
name.set("Kyle Corry")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://github.com/kylecorry31/sol.git")
developerConnection.set("scm:git:ssh://github.com:kylecorry31/sol.git")
url.set("https://github.com/kylecorry31/sol")
}
}
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
}
repositories {
maven {
url = uri("https://jitpack.io")
content {
includeGroupByRegex("com\\.github.*")
}
}
mavenCentral()
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.3")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.11.3")
testImplementation("com.willowtreeapps.assertk:assertk-jvm:0.28.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.3")
}
tasks.test {
useJUnitPlatform()
}
// Setup javadocs
tasks.withType<Javadoc> {
// Add the sources to the javadoc task
source = sourceSets.main.get().allJava
classpath += files(sourceSets.main.get().compileClasspath)
// Only include public and protected classes
include("**/public/**", "**/protected/**")
}
kotlin {
jvmToolchain(11)
}