This repository was archived by the owner on Feb 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
103 lines (95 loc) · 3.11 KB
/
build.gradle.kts
File metadata and controls
103 lines (95 loc) · 3.11 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
plugins {
groovy
`kotlin-dsl`
`maven-publish`
`java-gradle-plugin`
id("com.gradle.plugin-publish") version "0.10.1"
id("com.gorylenko.gradle-git-properties") version "2.0.0"
}
repositories {
jcenter()
}
base.archivesBaseName = project.name
dependencies {
implementation("com.squareup.okhttp3:okhttp:3.14.1")
implementation("com.squareup.okhttp3:logging-interceptor:3.14.1")
}
gradlePlugin {
plugins {
create(project.name) {
id = "com.github.registry"
implementationClass = "GithubRepositoryPlugin"
}
}
}
pluginBundle {
website = "https://github.com/stachu540/github-registry-plugin"
vcsUrl = "https://github.com/stachu540/github-registry-plugin.git"
description = project.description
tags = listOf("github", "github-registry", "publications")
(plugins) {
(project.name) {
displayName = "Github Registry Plugin"
}
}
}
gitProperties {
keys = listOf(
"git.branch",
"git.commit.id",
"git.commit.id.abbrev",
"git.commit.id.describe"
)
dateFormatTimeZone = "GMT"
customProperty("application.name", name)
customProperty("application.version", version)
}
publishing {
publications {
register<MavenPublication>("maven") {
artifactId = base.archivesBaseName
from(components["java"])
pom {
url.set("https://github.com/stachu540/github-registry-plugin")
issueManagement {
system.set("GitHub")
url.set("https://github.com/stachu540/github-registry-plugin/issues")
}
ciManagement {
system.set("Travis-CI")
url.set("https://travis-ci.com/stachu540/github-registry-plugin")
}
inceptionYear.set("2018")
developers {
developer {
id.set("stachu540")
name.set("Damian Staszewski")
url.set("https://github.com/stachu540")
timezone.set("Europe/Warsaw")
}
}
licenses {
license {
name.set("MIT")
url.set("https://github.com/stachu540/github-registry-plugin/blob/master/LICENCE.md")
distribution.set("repo")
}
}
scm {
connection.set("scm:git:https://github.com/stachu540/github-registry-plugin.git")
developerConnection.set("scm:git:git@github.com:stachu540/github-registry-plugin.git")
url.set("https://github.com/stachu540/github-registry-plugin")
}
distributionManagement {
downloadUrl.set("https://github.com/stachu540/github-registry-plugin/releases")
}
}
}
}
}
tasks {
withType<Wrapper> {
gradleVersion = "5.4.1"
distributionType = Wrapper.DistributionType.ALL
}
}