-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
73 lines (61 loc) · 1.96 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
62
63
64
65
66
67
68
69
70
71
72
73
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
`kotlin-dsl`
`java-gradle-plugin`
id("com.gradle.plugin-publish") version "1.3.0"
id("io.gitlab.arturbosch.detekt") version "1.23.7"
}
repositories {
mavenCentral()
}
version = "1.1"
group = "io.github.fobo66.propertiesloader"
kotlin {
compilerOptions {
jvmTarget = JvmTarget.JVM_17
}
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
gradlePlugin {
website.set("https://github.com/fobo66/propertiesLoader")
vcsUrl.set("https://github.com/fobo66/propertiesLoader.git")
plugins.register("propertiesLoader") {
id = "io.github.fobo66.propertiesloader"
displayName = "PropertiesLoader – load data from .properties files into project extras"
description =
"""A plugin that helps you with loading sensitive data like API keys from .properties files into project extras,
| so you can use these sensitive keys right from ext
""".trimMargin()
tags.set(listOf("properties", "config", "extras"))
implementationClass = "io.github.fobo66.PropertiesLoaderPlugin"
}
}
testing {
suites {
// Configure the built-in test suite
val test by getting(JvmTestSuite::class) {
// Use Kotlin Test test framework
useKotlinTest()
dependencies {
implementation(project())
}
}
// Create a new test suite
val functionalTest by registering(JvmTestSuite::class) {
// Use Kotlin Test test framework
useKotlinTest()
dependencies {
implementation(project())
}
targets {
all {
// This test suite should run after the built-in test suite has run its tests
testTask.configure { shouldRunAfter(test) }
}
}
}
}
}