forked from klaxit/hidden-secrets-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
53 lines (45 loc) · 1.46 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
plugins {
id("com.gradle.plugin-publish") version "0.14.0"
id("io.gitlab.arturbosch.detekt") version "1.16.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.1.3")
testImplementation("io.kotest:kotest-runner-junit5-jvm:4.4.3")
testImplementation("io.kotest:kotest-assertions-core-jvm:4.4.3")
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("gradle", "plugin", "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"
}
}
}
tasks.withType<Copy> {
//Required by Gradle 7.0
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
tasks.withType<Test> {
useJUnitPlatform()
}