-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
82 lines (68 loc) · 1.99 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version embeddedKotlinVersion
`kotlin-dsl`
`java-gradle-plugin`
`maven-publish`
}
//group = "dev.adamko.zally"
group = "com.github.adamko-dev.zally-gradle-plugin"
version = "0.0.1-SNAPSHOT"
dependencies {
implementation(platform(kotlin("bom")))
implementation("io.swagger.parser.v3:swagger-parser:2.1.1")
val zalandoZally = "2.1.0"
implementation("org.zalando:zally-core:$zalandoZally")
implementation("org.zalando:zally-rule-api:$zalandoZally")
implementation("org.zalando:zally-ruleset-zalando:$zalandoZally")
implementation("org.zalando:zally-ruleset-zally:$zalandoZally")
implementation("org.zalando:zally-test:$zalandoZally")
implementation("io.github.classgraph:classgraph:4.8.149")
}
gradlePlugin {
plugins {
// create("zally") {
// id = "dev.adamko.zally"
// displayName = "Zally OpenAPI Validator (unofficial Gradle Plugin"
// description = "A minimalistic, simple-to-use OpenAPI 2 and 3 linter"
// implementationClass = "dev.adamko.zally.ZallyPlugin"
// }
create("zally-jitpack") {
id = "com.github.adamko-dev.zally-gradle-plugin"
displayName = "Zally OpenAPI Validator (unofficial Gradle Plugin"
description = "A minimalistic, simple-to-use OpenAPI 2 and 3 linter"
implementationClass = "dev.adamko.zally.ZallyPlugin"
}
}
}
tasks.wrapper {
gradleVersion = "7.5"
distributionType = Wrapper.DistributionType.ALL
}
kotlin {
jvmToolchain {
(this as JavaToolchainSpec).languageVersion.set(JavaLanguageVersion.of(11))
}
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
this.freeCompilerArgs += listOf(
"-Xopt-in=kotlin.io.path.ExperimentalPathApi",
)
}
}
java {
withSourcesJar()
}
publishing {
repositories {
maven(file("$rootDir/build/maven-internal")) {
name = "ProjectLocalDir"
}
}
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
}
}
}