This repository has been archived by the owner on Dec 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle.kts
65 lines (54 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
64
65
plugins {
kotlin("jvm") version "1.3.40"
`java-gradle-plugin`
id("com.gradle.plugin-publish") version "0.10.0"
id("org.jetbrains.kotlin.plugin.allopen") version "1.3.40"
maven
}
group = "com.pivotstir"
version = "1.1.5"
repositories {
jcenter()
mavenLocal()
mavenCentral()
}
dependencies {
compile(gradleApi())
compile(kotlin("stdlib"))
compile(kotlin("reflect"))
compile("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.2")
compile("org.rauschig:jarchivelib:0.8.0")
compile("com.github.zafarkhaja:java-semver:0.9.0")
compile("org.apache.commons:commons-lang3:3.7")
compile("commons-io:commons-io:2.6")
compile("com.squareup.okhttp3:okhttp:3.11.0")
}
gradlePlugin {
plugins {
create("goPlugin") {
id = "$group.gogradle"
displayName = "gogradle, Golang plugin"
description = "A Golang plugin for building, testing, dependency management and popular frameworks (gRPC, Gin, Swagger, ...) supported"
implementationClass = "com.pivotstir.gogradle.GoPlugin"
}
}
}
pluginBundle {
website = "https://github.com/innobead/gogradle"
vcsUrl = "https://github.com/innobead/gogradle.git"
tags = listOf("go", "grpc", "protobuf")
(plugins) {
"goPlugin" {}
}
}
allOpen {
annotation("com.pivotstir.gogradle.GradleSupport")
}
afterEvaluate {
val publishKey = System.getenv("GRADLE_PUBLISH_KEY")
val publishSecret = System.getenv("GRADLE_PUBLISH_SECRET")
if (publishKey != null && publishSecret != null) {
System.setProperty("gradle.publish.key", publishKey)
System.setProperty("gradle.publish.secret", publishSecret)
}
}