generated from cortinico/kotlin-gradle-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
65 lines (52 loc) · 1.68 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
plugins {
base
idea
id("argo.release-conventions")
}
tasks {
register("publish-plugin") {
group = "publishing"
description = "Publishes 'argo' to the Gradle Plugin Portal."
dependsOn(":argo-plugin:publishPlugins")
}
register("publish-cli") {
group = "publishing"
description = "Publishes 'columba-cli' to Sonatype and releases it."
dependsOn(
":columba-cli:clean",
":columba-cli:publishToSonatype",
":closeAndReleaseSonatypeStagingRepository"
)
}
wrapper {
distributionType = Wrapper.DistributionType.ALL
}
}
project(":columba-cli")
.beforeEvaluate {
val lib = getDependency("columba-cli")
group = lib.group
version = lib.versionConstraint.toString()
extra["local.description"] =
"""
A command line interface that supports Java code generation from JSON schema declaration files(.avsc),
JSON protocol declaration files(.avpr), and Avro IDL(.avdl) source files.
""".trimIndent()
}
project(":argo-plugin")
.beforeEvaluate {
val lib = getDependency("argo")
group = lib.group
version = lib.versionConstraint.toString()
extra["local.description"] =
"""
A Gradle Plugin that supports Java code generation from JSON schema declaration files(.avsc),
JSON protocol declaration files(.avpr), and Avro IDL(.avdl) source files
""".trimIndent()
}
fun getDependency(name: String) =
project.extensions.getByType<VersionCatalogsExtension>()
.named("libs")
.findLibrary(name)
.get()
.get()