forked from SgtSilvio/gradle-proguard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
61 lines (54 loc) · 1.2 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
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
`kotlin-dsl`
`maven-publish`
alias(libs.plugins.plugin.publish)
alias(libs.plugins.metadata)
}
group = "com.github.sgtsilvio.gradle"
description = "Gradle plugin to ease using ProGuard"
metadata {
readableName.set("Gradle ProGuard Plugin")
license {
apache2()
}
developers {
register("SgtSilvio") {
fullName.set("Silvio Giebl")
}
}
github {
org.set("SgtSilvio")
repo.set("gradle-proguard")
issues()
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
withSourcesJar()
}
repositories {
mavenCentral()
}
gradlePlugin {
plugins {
create("proguard") {
id = "$group.$name"
displayName = metadata.readableName.get()
description = project.description
implementationClass = "$group.$name.ProguardPlugin"
}
}
}
pluginBundle {
website = metadata.url.get()
vcsUrl = metadata.scm.get().url.get()
tags = listOf("proguard", "obfuscation")
}
testing {
suites.named<JvmTestSuite>("test") {
useJUnitJupiter(libs.versions.junit.jupiter.get())
}
}