-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
60 lines (53 loc) · 1.9 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
60 lines (53 loc) · 1.9 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "2.5.1"
id("io.spring.dependency-management") version "1.0.11.RELEASE"
id("idea")
kotlin("jvm") version "1.5.10"
kotlin("plugin.spring") version "1.5.10"
kotlin("plugin.serialization") version "1.5.10"
}
group = "ehn.techiop.hcert"
version = "1.2.0-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_1_8
idea {
module {
isDownloadSources = true
isDownloadJavadoc = true
}
}
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/ehn-digital-green-development/hcert-kotlin")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
}
}
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("com.google.zxing:core:3.4.1")
implementation("ehn.techiop.hcert:hcert-kotlin-jvmdatagen:1.2.0-SNAPSHOT")
implementation("eu.europa.ec.dgc:dgc-lib:1.0.0-SNAPSHOT")
developmentOnly("org.springframework.boot:spring-boot-devtools")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("com.augustcellars.cose:cose-java:1.1.0")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict", "-Xopt-in=kotlin.ExperimentalUnsignedTypes", "-Xopt-in=kotlinx.serialization.ExperimentalSerializationApi")
jvmTarget = "1.8"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}