-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
95 lines (82 loc) · 2.71 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
92
93
94
95
plugins {
kotlin("jvm")
id("maven-publish")
id("me.champeau.jmh")
signing
}
group = "com.github.sszuev"
version = "1.1.0-kotlin"
repositories {
mavenCentral()
}
dependencies {
val junitVersion: String by project
val jenaVersion: String by project
val kotlinCoroutinesVersion: String by project
implementation("org.apache.jena:jena-arq:$jenaVersion")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:$kotlinCoroutinesVersion")
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter-params:$junitVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
jmh("org.openjdk.jmh:jmh-core:1.36")
jmh("org.openjdk.jmh:jmh-generator-annprocess:1.36")
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()
from(components["java"])
pom {
name.set("${project.group}:${project.name}")
description.set("Thread-safe RDF Graphs")
url.set("https://github.com/sszuev/concurrent-rdf-graph")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
scm {
connection.set("scm:git:git://github.com/sszuev/concurrent-rdf-graph.git")
developerConnection.set("scm:git:ssh://github.com/sszuev/concurrent-rdf-graph.git")
url.set("https://github.com/sszuev/concurrent-rdf-graph")
}
developers {
developer {
id.set("sszuev")
name.set("Sergei Zuev")
email.set("[email protected]")
}
}
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/sszuev/${project.name}")
credentials {
username = project.findProperty("gpr.user") as String?
password = project.findProperty("gpr.key") as String?
}
}
}
}
}
java {
withSourcesJar()
withJavadocJar()
}
signing {
sign(publishing.publications["maven"])
}
tasks.test {
useJUnitPlatform()
}
tasks.getByName("signMavenPublication") {
enabled = project.hasProperty("sign")
}
kotlin {
jvmToolchain(11)
}