forked from kstateome/canvas-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
72 lines (61 loc) · 1.66 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
plugins {
id("java-library")
id("maven-publish")
alias(libs.plugins.reckon)
alias(libs.plugins.ben.manes.versions)
alias(libs.plugins.sweng.publication)
alias(libs.plugins.version.catalog.update)
}
group = "edu.ksu.canvas"
description = "Canvas API Library"
reckon {
scopeFromProp()
snapshotFromProp()
}
repositories {
mavenCentral()
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
vendor = JvmVendorSpec.ADOPTIUM
withJavadocJar()
withSourcesJar()
}
}
tasks.named<Test>("test") {
useJUnitPlatform()
testLogging {
events("started", "passed", "failed", "skipped")
testLogging.showStandardStreams = true
showStackTraces = true
}
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = "${project.group}"
artifactId = project.name
version = "${project.version}"
from(components["java"])
}
}
}
dependencies {
implementation(libs.validation.api)
implementation(libs.gson)
implementation(libs.commons.lang3)
implementation(libs.guava)
implementation(libs.slf4j.api)
implementation(libs.slf4j.simple)
implementation(libs.httpclient)
implementation(libs.httpmime)
testImplementation(libs.junit.jupiter)
testImplementation(libs.httpclient) { artifact { classifier = "tests" } }
testImplementation(libs.spring.beans)
testImplementation(libs.spring.context)
testImplementation(libs.spring.test)
testImplementation(libs.mockito.core)
testImplementation(libs.mockito.junit.jupiter)
testImplementation(libs.hamcrest)
}