-
Notifications
You must be signed in to change notification settings - Fork 40
/
build.gradle.kts
61 lines (52 loc) · 1.59 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
plugins {
id("com.gradle.plugin-publish") version "1.0.0"
id("io.gitlab.arturbosch.detekt") version "1.19.0"
`kotlin-dsl`
`maven-publish`
}
repositories {
mavenCentral()
google()
maven("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven") // Required by detekt
}
dependencies {
implementation("com.android.tools.build:gradle:4.2.2")
testImplementation("io.kotest:kotest-runner-junit5-jvm:5.4.2")
testImplementation("io.kotest:kotest-assertions-core-jvm:5.4.2")
testImplementation("io.kotest:kotest-framework-datatest-jvm:5.4.2")
testImplementation("junit:junit:4.13.2")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
pluginBundle {
website = "https://github.com/klaxit/hidden-secrets-gradle-plugin"
vcsUrl = "https://github.com/klaxit/hidden-secrets-gradle-plugin.git"
tags = listOf("android", "hide", "secret", "key", "string", "obfuscate")
}
gradlePlugin {
plugins {
create("HiddenSecretsPlugin") {
id = "com.klaxit.hiddensecrets"
displayName = "Hidden Secrets Plugin"
description = "This plugin allows any Android developer" +
" to deeply hide secrets in its project to prevent credentials harvesting."
implementationClass = "com.klaxit.hiddensecrets.HiddenSecretsPlugin"
}
}
}
detekt {
reports {
xml.enabled = false
sarif.enabled = false
}
}
tasks.withType<Copy> {
// Required by Gradle 7.0
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
tasks.withType<Test> {
useJUnitPlatform()
}