-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
46 lines (41 loc) · 1.18 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
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.8.0'
id 'java-library'
id 'maven-publish'
}
group 'com.resnik'
version '1.0.0'
repositories {
mavenCentral()
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/mtresnik/graph")
credentials {
// Runner stored in env, else stored in ~/.gradle/gradle.properties
username = System.getenv("USERNAME") ?: findProperty("gpr.user") ?: "mtresnik"
password = System.getenv("TOKEN") ?: findProperty("gpr.token")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}
dependencies {
implementation fileTree(dir: "lib", include: ["*.jar"])
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version: '1.8.0'
implementation 'junit:junit:4.13.2'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}