-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
100 lines (88 loc) · 3.15 KB
/
build.gradle
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
plugins {
id 'io.github.gradle-nexus.publish-plugin' version '1.3.0'
id 'org.jreleaser' version '1.8.0'
id 'com.github.ben-manes.versions' version '0.50.0'
id 'org.jetbrains.kotlin.jvm' version '1.9.10' apply false
id 'com.google.devtools.ksp' version '1.9.10-1.0.13' apply false
}
nexusPublishing {
repositories {
sonatype()
}
}
allprojects {
group = 'com.github.gotson.bestbefore'
apply plugin: 'java'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.0'
testImplementation 'org.assertj:assertj-core:3.24.2'
}
tasks.compileTestJava {
javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(11)
}
}
test {
useJUnitPlatform()
javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(11)
}
}
}
wrapper {
gradleVersion = '8.2.1'
distributionType = Wrapper.DistributionType.ALL
}
jreleaser {
project {
description = 'BestBefore'
copyright = 'Gauthier Roebroeck'
}
release {
github {
discussionCategoryName = 'Announcements'
changelog {
formatted = 'ALWAYS'
preset = 'conventional-commits'
skipMergeCommits = true
links = true
format = '- {{#commitIsConventional}}{{#conventionalCommitIsBreakingChange}}🚨 {{/conventionalCommitIsBreakingChange}}{{#conventionalCommitScope}}**{{conventionalCommitScope}}**: {{/conventionalCommitScope}}{{conventionalCommitDescription}}{{#conventionalCommitBreakingChangeContent}}: *{{conventionalCommitBreakingChangeContent}}*{{/conventionalCommitBreakingChangeContent}} ({{commitShortHash}}){{/commitIsConventional}}{{^commitIsConventional}}{{commitTitle}} ({{commitShortHash}}){{/commitIsConventional}}{{#commitHasIssues}}, closes{{#commitIssues}} {{issue}}{{/commitIssues}}{{/commitHasIssues}}'
hide {
uncategorized = true
contributors = ['[bot]', 'github-actions', 'GitHub']
}
excludeLabels = ['chore']
category {
title = '🏎 Perf'
key = 'perf'
labels = ['perf']
order = 25
}
labeler {
label = 'perf'
title = 'regex:^(?:perf(?:\\(.*\\))?!?):\\s.*'
order = 120
}
extraProperties.put('categorizeScopes', true)
}
issues {
enabled = true
comment = '🎉 This issue has been resolved in `{{tagName}}` ([Release Notes]({{releaseNotesUrl}}))'
applyMilestone = 'ALWAYS'
label {
name = 'released'
description = 'Issue has been released'
color = '#ededed'
}
}
}
}
}