/
build.gradle.kts
114 lines (97 loc) · 2.71 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import com.novoda.gradle.release.PublishExtension
plugins {
`java-gradle-plugin`
`kotlin-dsl`
`maven-publish`
groovy
kotlin("jvm") version "1.3.11"
id("com.gradle.plugin-publish") version "0.10.0"
id("com.novoda.bintray-release")
}
val versionTalaiot = "0.4.0"
group = "com.cdsap"
version = versionTalaiot
gradlePlugin {
plugins {
register("Talaiot") {
id = "talaiot"
implementationClass = "com.cdsap.talaiot.TalaiotPlugin"
}
dependencies {
api("io.github.rybalkinsd:kohttp:0.8.0")
api("guru.nidi:graphviz-java:0.8.3")
testImplementation("io.kotlintest:kotlintest-runner-junit5:3.1.11")
testImplementation(gradleTestKit())
testImplementation("com.nhaarman.mockitokotlin2:mockito-kotlin:2.0.0-RC1")
}
}
}
pluginBundle {
website = "https://github.com/cdsap/Talaiot/"
vcsUrl = "https://github.com/cdsap/Talaiot/"
tags = listOf("kotlin", "gradle", "kotlin-dsl")
mavenCoordinates {
groupId = project.group as String
artifactId = "talaiot"
}
}
publishing {
repositories {
maven {
name = "Snapshots"
url = uri("")
credentials {
username = ""
password = ""
}
}
}
}
val sourcesJar by tasks.registering(Jar::class) {
classifier = "sources"
from(sourceSets["main"].allSource)
dependsOn(tasks["classes"])
}
val test by tasks.getting(Test::class) {
useJUnitPlatform { }
}
afterEvaluate {
publishing.publications.named<MavenPublication>("pluginMaven") {
artifactId = "talaiot"
artifact(sourcesJar.get())
pom {
name.set("Talaiot")
url.set("https://github.com/cdsap/Talaiot/")
description.set(
"is a simple and extensible plugin to track timing in your Gradle Project."
)
licenses {
license {
name.set("The MIT License (MIT)")
url.set("http://opensource.org/licenses/MIT")
distribution.set("repo")
}
}
developers {
developer {
id.set("inaki.seri@gmail.com")
name.set("Inaki Villar")
}
}
}
}
}
configure<PublishExtension> {
userOrg = ""
groupId = "com.cdsap"
artifactId = "talaiot"
publishVersion = versionTalaiot
desc = "Simple and extensible plugin to track task times in your Gradle Project."
website = "https://github.com/cdsap/Talaiot"
}
repositories {
jcenter()
mavenCentral()
google()
mavenLocal()
}