-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
86 lines (72 loc) · 2.74 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
plugins {
kotlin("jvm") version "1.6.10"
kotlin("plugin.serialization") version "1.6.10"
id("maven-publish")
}
group = "com.rootsid.wal"
version = project.property("version")!!
java.sourceCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
google()
// Required to resolve com.soywiz.korlibs.krypto:krypto-jvm:2.0.6
maven("https://plugins.gradle.org/m2/")
maven {
url = uri("https://maven.pkg.github.com/input-output-hk/better-parse")
credentials {
username = System.getenv("PRISM_SDK_USER")
password = System.getenv("PRISM_SDK_PASSWORD")
}
}
}
dependencies {
// Align versions of all Kotlin components
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
// Use the Kotlin JDK 8 standard library.
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.6.10")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0-native-mt")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2")
implementation("org.litote.kmongo:kmongo:4.7.1")
// needed for cryptography primitives implementation
implementation("io.iohk.atala:prism-crypto:v1.4.1")
implementation("io.iohk.atala:prism-identity:v1.4.1")
implementation("io.iohk.atala:prism-credentials:v1.4.1")
implementation("io.iohk.atala:prism-api:v1.4.1")
// Fixes a build issue
implementation("com.soywiz.korlibs.krypto:krypto-jvm:2.0.6")
// QR Code
implementation("org.boofcv:boofcv-core:0.40.1")
implementation("org.boofcv:boofcv-swing:0.40.1")
implementation("org.boofcv:boofcv-kotlin:0.40.1")
implementation("org.boofcv:boofcv-WebcamCapture:0.40.1")
// DIDComm
implementation("org.didcommx:didcomm:0.3.0")
implementation("org.didcommx:peerdid:0.3.0")
// Test
testImplementation("org.junit.jupiter:junit-jupiter:5.9.0")
}
publishing {
publications {
register<MavenPublication>("gpr") {
from(components["java"])
artifact(tasks["kotlinSourcesJar"])
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/roots-id/wal-library")
credentials {
username = System.getenv("GITHUB_USER")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "11"
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
}