-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
40 lines (33 loc) · 1.1 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
import com.gradle.publish.PublishTask
plugins {
alias libs.plugins.gradle.publish apply false
alias libs.plugins.project.convention
}
allprojects {
group = 'xyz.tynn.buildsrc'
}
subprojects {
pluginManager.withPlugin(libs.plugins.gradle.publish.get().pluginId) {
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
gradlePlugin {
website = 'https://github.com/tynn-xyz/BuildSrc'
vcsUrl = 'https://github.com/tynn-xyz/BuildSrc'
}
tasks.withType(PublishTask).configureEach {
final hiddenPlugins = objects.domainObjectSet(PluginDeclaration)
hiddenPlugins.addAllLater providers.provider {
gradlePlugin.plugins.matching {
it.with { !displayName || !description || !tags }
}
}
doFirst { gradlePlugin.plugins.removeAll hiddenPlugins }
doLast { gradlePlugin.plugins.addAll hiddenPlugins }
}
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
}
}
tasks.named('wrapper') {
gradleVersion '8.3'
}