-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
60 lines (47 loc) · 1.39 KB
/
build.gradle
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
plugins {
id 'maven-publish'
id 'org.jetbrains.kotlin.jvm' version '1.3.72'
}
group 'com.sxtanna.odin'
version '1.5'
repositories {
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72"
testCompile "org.junit.jupiter:junit-jupiter-engine:5.6.2"
testRuntime "org.junit.jupiter:junit-jupiter-engine:5.6.2"
testCompile "org.jetbrains.kotlin:kotlin-reflect:1.3.72"
testCompile "com.willowtreeapps.assertk:assertk-jvm:0.22"
}
test {
useJUnitPlatform()
}
compileKotlin {
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
kotlinOptions.freeCompilerArgs += ["-XXLanguage:+NewInference",
"-Xopt-in=kotlin.time.ExperimentalTime",
"-Xopt-in=kotlin.ExperimentalStdlibApi"]
}
compileTestKotlin {
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
kotlinOptions.freeCompilerArgs += ["-XXLanguage:+NewInference",
"-Xopt-in=kotlin.time.ExperimentalTime",
"-Xopt-in=kotlin.ExperimentalStdlibApi"]
}
publishing {
repositories {
maven {
url = uri("https://maven.pkg.github.com/Sxtanna/odin")
credentials {
username = project.hasProperty("githubPackagesUser") ? githubPackagesUser : System.getenv("GITHUB_ACTOR")
password = project.hasProperty("githubPackagesAuth") ? githubPackagesAuth : System.getenv("GITHUB_TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}