generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
38 lines (28 loc) · 916 Bytes
/
build.gradle.kts
File metadata and controls
38 lines (28 loc) · 916 Bytes
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
description = "A package used to define custom trait with a Java validator"
plugins {
id("com.github.spotbugs").version("4.7.1")
id("software.amazon.smithy.gradle.smithy-trait-package")
}
dependencies {
val smithyVersion: String by project
smithyCli("software.amazon.smithy:smithy-cli:$smithyVersion")
implementation("software.amazon.smithy:smithy-model:$smithyVersion")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.12.1")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.12.1")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.12.1")
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
// Use Junit5's test runner.
tasks.withType<Test> {
useJUnitPlatform()
}
repositories {
mavenLocal()
mavenCentral()
}