forked from Kr328/golang-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
74 lines (65 loc) · 1.98 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
plugins {
java
`java-gradle-plugin`
`maven-publish`
}
group = "com.github.MetaCubeX.gradle.golang"
version = "3.0.0"
dependencies {
val agp = "8.0.1"
val lombok = "1.18.26"
annotationProcessor("org.projectlombok:lombok:$lombok")
compileOnly("com.android.tools.build:gradle:$agp")
compileOnly("org.projectlombok:lombok:$lombok")
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
withSourcesJar()
}
gradlePlugin {
plugins {
create("golang") {
id = project.group.toString()
displayName = "Golang Gradle"
description = "A gradle plugin for go module building."
implementationClass = "$id.GoPlugin"
}
}
}
publishing {
publications {
withType(MavenPublication::class) {
version = project.version.toString()
group = project.group.toString()
pom {
name.set("Golang Gradle")
description.set("A gradle plugin for go module building.")
url.set("https://github.com/MetaCubeX/golang-gradle-plugin")
licenses {
license {
name.set("MIT License")
url.set("https://github.com/Metacubex/golang-gradle-plugin/blob/main/LICENSE")
}
}
developers {
developer {
name.set("MetaCubeX")
}
}
scm {
connection.set("scm:git:https://github.com/Metacubex/golang-gradle-plugin.git")
url.set("https://github.com/MetaCubeX/golang-gradle-plugin")
}
}
}
}
repositories {
mavenLocal()
maven {
name = "MetaCubeXapp"
url = uri("https://maven.MetaCubeX.app/releases")
credentials(PasswordCredentials::class.java)
}
}
}