forked from PEXPlugins/PermissionsEx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
38 lines (29 loc) · 962 Bytes
/
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
plugins {
id("com.github.ben-manes.versions") version "0.38.0"
}
val pexDescription: String by project
group = "ca.stellardrift.permissionsex"
version = "2.0-SNAPSHOT"
description = pexDescription
val collectExcludes = ext["buildExcludes"].toString().split(',').toSet()
val collectImplementationArtifacts by tasks.registering(Copy::class) {
val config = configurations.detachedConfiguration(
*subprojects
.filter { it.name !in collectExcludes && it.path.contains("platform:")}
.map { dependencies.project(it.path, configuration = "shadow") }
.toTypedArray()
)
config.isTransitive = false
from(config)
rename("(.+)-all(.+)", "PermissionsEx $1$2")
into("$buildDir/libs")
doFirst {
if (destinationDir.exists()) {
destinationDir.deleteRecursively()
}
}
}
tasks.register("build") {
dependsOn(collectImplementationArtifacts)
group = "build"
}