-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
78 lines (65 loc) · 2.04 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.sonarqube").version("4.0.0.2929")
`kotlin-dsl`
`maven-publish`
jacoco
id("java-gradle-plugin")
id("com.gradle.plugin-publish").version("1.2.0")
kotlin("jvm")
}
group = "io.hndrs.gradle"
version = "3.1.0"
java.sourceCompatibility = JavaVersion.VERSION_17
java.targetCompatibility = JavaVersion.VERSION_17
var publishingInfoPlugin: NamedDomainObjectProvider<PluginDeclaration>? = null
repositories {
mavenCentral()
}
val tagList = listOf("maven", "publish", "repository", "library", "pom", "pom.xml", "kotlin")
gradlePlugin {
website.set("https://github.com/hndrs/gradle-publishing-info-plugin")
vcsUrl.set("https://github.com/hndrs/gradle-publishing-info-plugin.git")
plugins {
create("publishingInfoPlugin") {
id = "io.hndrs.publishing-info"
displayName = "Gradle Publishing Info plugin"
implementationClass = "io.hndrs.gradle.plugin.PublishingInfoPlugin"
description = "Simplifies adding publishing meta data to maven publications"
tags.set(tagList)
}
}
}
dependencies {
testImplementation(platform("org.junit:junit-bom:5.9.3"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("io.mockk:mockk:1.13.5")
testImplementation(group = "io.kotest", name = "kotest-assertions-core", version = "5.6.2")
}
sonarqube {
properties {
property("sonar.projectKey", "hndrs_gradle-publishing-info-plugin")
property("sonar.organization", "hndrs")
property("sonar.host.url", "https://sonarcloud.io")
property("sonar.exclusions", "**/sample/**")
}
}
configure<JacocoPluginExtension> {
toolVersion = "0.8.9"
}
tasks.withType<JacocoReport> {
reports {
xml.apply {
this.required.set(true)
}
}
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "17"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}