-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
109 lines (101 loc) · 3.39 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
plugins {
`java-gradle-plugin`
`maven-publish`
`kotlin-dsl`
id("com.gradle.plugin-publish") version "1.0.0-rc-1"
}
group = "io.github.cdsap"
version = "0.1.6"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}
dependencies {
implementation("io.github.cdsap:jdk-tools-parser:0.1.1")
implementation("io.github.cdsap:commandline-value-source:0.1.0")
implementation("com.jakewharton.picnic:picnic:0.7.0")
implementation("com.gradle:develocity-gradle-plugin:3.17.2")
implementation("com.gradle.enterprise:com.gradle.enterprise.gradle.plugin:3.12.3")
testImplementation("junit:junit:4.13.2")
}
tasks.withType<Test>().configureEach {
filter {
if (project.hasProperty("excludeTests")) {
excludeTest(project.property("excludeTests").toString(),"")
}
}
}
gradlePlugin {
plugins {
create("InfoKotlinProcessPlugin") {
id = "io.github.cdsap.kotlinprocess"
displayName = "Info Kotlin Processes"
description = "Retrieve information of the Kotlin processes after the build execution"
implementationClass = "io.github.cdsap.kotlinprocess.InfoKotlinProcessPlugin"
}
}
}
pluginBundle {
website = "https://github.com/cdsap/InfoKotlinProcess"
vcsUrl = "https://github.com/cdsap/InfoKotlinProcess"
tags = listOf("kotlin", "process")
}
publishing {
repositories {
maven {
name = "Snapshots"
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
credentials {
username = System.getenv("USERNAME_SNAPSHOT")
password = System.getenv("PASSWORD_SNAPSHOT")
}
}
maven {
name = "Release"
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = System.getenv("USERNAME_SNAPSHOT")
password = System.getenv("PASSWORD_SNAPSHOT")
}
}
}
publications {
create<MavenPublication>("kotlinProcessPublication") {
from(components["java"])
artifactId = "kotlinprocess"
versionMapping {
usage("java-api") {
fromResolutionOf("runtimeClasspath")
}
usage("java-runtime") {
fromResolutionResult()
}
}
pom {
scm {
connection.set("scm:git:git://github.com/cdsap/InfoKotlinProcess/")
url.set("https://github.com/cdsap/InfoKotlinProcess/")
}
name.set("InfoKotlinProcess")
url.set("https://github.com/cdsap/InfoKotlinProcess/")
description.set(
"Retrieve information of the Kotlin process in your Build Scan or console"
)
licenses {
license {
name.set("The MIT License (MIT)")
url.set("https://opensource.org/licenses/MIT")
distribution.set("repo")
}
}
developers {
developer {
id.set("cdsap")
name.set("Inaki Villar")
}
}
}
}
}
}