This repository was archived by the owner on Dec 25, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
64 lines (53 loc) · 1.29 KB
/
build.gradle.kts
File metadata and controls
64 lines (53 loc) · 1.29 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
61
62
63
64
import org.checkerframework.gradle.plugin.CheckerFrameworkExtension
plugins {
`java-library`
`maven-publish`
id("org.checkerframework") version "0.6.33"
}
repositories {
mavenLocal()
maven {
url = uri("https://repo.maven.apache.org/maven2/")
}
}
dependencies {
implementation("org.checkerframework:checker-qual:3.42.0")
implementation("com.google.code.gson:gson:2.10.1")
testImplementation("junit:junit:4.13.2")
checkerFramework("org.checkerframework:checker:3.42.0")
}
configure<CheckerFrameworkExtension> {
checkers = listOf(
"org.checkerframework.checker.nullness.NullnessChecker"
)
}
group = "org.openapijsonschematools"
version = "1.0.0"
description = "OpenAPI Java"
val testsJar by tasks.registering(Jar::class) {
archiveClassifier = "tests"
from(sourceSets["test"].output)
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
withSourcesJar()
withJavadocJar()
}
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
artifact(testsJar)
}
}
tasks.wrapper {
gradleVersion = "8.7"
}
tasks.withType<JavaCompile>() {
options.encoding = "UTF-8"
}
tasks.withType<Javadoc>() {
enabled = false
options.encoding = "UTF-8"
}