generated from detekt/detekt-custom-rule-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
114 lines (100 loc) · 3.08 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 org.jreleaser.model.Active
plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.jreleaser)
`maven-publish`
}
group = properties["GROUP"].toString()
version = properties["VERSION_NAME"].toString()
description = "Detekt ruleset for Decompose project"
dependencies {
compileOnly(libs.detekt.api)
testImplementation(libs.detekt.test)
testImplementation(libs.kotest)
testImplementation(libs.jupiter)
}
java {
withJavadocJar()
withSourcesJar()
}
kotlin {
jvmToolchain(17)
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
systemProperty("junit.jupiter.testinstance.lifecycle.default", "per_class")
systemProperty("compile-snippet-tests", project.hasProperty("compile-test-snippets"))
}
publishing {
publications {
create<MavenPublication>("release") {
from(components["java"])
groupId = properties["GROUP"].toString()
artifactId = "decompose-detekt-rules"
pom {
name.set(project.properties["POM_NAME"].toString())
description.set(project.description)
url.set("https://github.com/AJIEKCX/decompose-detekt-rules")
issueManagement {
url.set("https://github.com/AJIEKCX/decompose-detekt-rules/issues")
}
scm {
url.set("https://github.com/AJIEKCX/decompose-detekt-rules")
connection.set("scm:git://github.com/AJIEKCX/decompose-detekt-rules.git")
developerConnection.set("scm:git://github.com/AJIEKCX/decompose-detekt-rules.git")
}
licenses {
license {
name.set("The Apache Software License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
distribution.set("repo")
}
}
developers {
developer {
id.set("AJIEKCX")
name.set("Alexey Panov")
email.set("panovalexsey@gmail.com")
}
}
}
}
}
repositories {
maven {
setUrl(layout.buildDirectory.dir("staging-deploy"))
}
}
}
jreleaser {
project {
inceptionYear = "2025"
author("@AJIEKCX")
}
release {
github {
skipRelease = true
skipTag = true
sign = true
branch = "main"
branchPush = "main"
overwrite = true
}
}
signing {
active = Active.ALWAYS
armored = true
verify = true
}
deploy {
maven {
mavenCentral.create("sonatype") {
active = Active.ALWAYS
url = "https://central.sonatype.com/api/v1/publisher"
stagingRepository(layout.buildDirectory.dir("staging-deploy").get().toString())
setAuthorization("Basic")
retryDelay = 60
}
}
}
}