-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
84 lines (68 loc) · 1.86 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
84 lines (68 loc) · 1.86 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
79
80
81
82
83
84
val kotlinVersion = "1.5.31"
val sdVersion = "7.7.3"
val jupiterVersion = "5.8.1"
repositories {
mavenCentral()
maven("https://maven.stardog.com")
}
plugins {
kotlin("jvm") version "1.5.31"
`maven-publish`
idea
}
idea {
module {
isDownloadJavadoc = true
isDownloadSources = true
}
}
dependencies {
implementation(kotlin("stdlib", kotlinVersion))
// implementation(kotlin("stdlib-jdk8", kotlinVersion))
api("com.complexible.stardog:client-http:$sdVersion")
testApi("org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion")
testApi("org.junit.jupiter:junit-jupiter-api:$jupiterVersion")
testApi("org.junit.jupiter:junit-jupiter-params:$jupiterVersion")
testApi("com.complexible.stardog:client-embedded:$sdVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$jupiterVersion")
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/docrozza/normalization")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
create<MavenPublication>("normalization") {
from(components["java"])
}
}
}
tasks.compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
javaParameters = true
}
}
tasks {
test {
useJUnitPlatform()
val stardogHome: String? by project
val stardogLibs: String? by project
stardogHome?.also { systemProperty("stardog.home", it) }
stardogLibs?.also { systemProperty("java.library.path", it) }
}
kotlin {
jvmToolchain {
(this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(11))
}
}
java {
withSourcesJar()
}
}