-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
85 lines (66 loc) · 2.21 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.30"
application
id("org.jlleitschuh.gradle.ktlint") version "9.4.1"
}
val versionDetails: groovy.lang.Closure<org.gradle.tooling.internal.consumer.versioning.VersionDetails> by extra
val prismVersion = "1.2.0"
//group = "io.iohk.atala.prism.example"
group = "io.iohk.atala"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
mavenLocal()
google()
jcenter()
maven("https://plugins.gradle.org/m2/")
maven("https://vlad107.jfrog.io/artifactory/default-maven-virtual/")
maven {
url = uri("https://maven.pkg.github.com/input-output-hk/atala-prism-sdk")
credentials {
username = "NA"
password = "NA"
}
}
}
apply(plugin= "maven")
configurations { create("externalLibs") }
dependencies {
implementation(fileTree(mapOf("dir" to "lib", "include" to listOf("*.jar"))))
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.2.1")
implementation("io.iohk.atala:prism-api-jvm:1.2.0")
implementation("io.iohk.atala:prism-credentials-jvm:1.2.0")
implementation("io.iohk.atala:prism-crypto-jvm:1.2.0")
implementation("io.iohk.atala:prism-identity-jvm:1.2.0")
implementation("io.iohk.atala:prism-protos-jvm:1.2.0")
implementation("org.bouncycastle:bcprov-jdk15on:1.68")
// needed for the credential content, bring the latest version
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.2.2")
// needed for dealing with dates, bring the latest version
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.2.1")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "11"
}
kotlin.sourceSets.all {
languageSettings.optIn("io.iohk.atala.prism.common.PrismSdkInternal")
}
application {
mainClassName = "io.iohk.atala.prism.example.MainKt"
}
apply(plugin = "org.jlleitschuh.gradle.ktlint")
ktlint {
verbose.set(true)
outputToConsole.set(true)
// Exclude generated proto classes
filter {
exclude { element ->
element.file.path.contains("generated/") or
element.file.path.contains("externals/")
}
}
}