-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
44 lines (35 loc) · 1.09 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
// dotenv plugin
plugins {
kotlin("jvm") version libs.versions.kotlin
alias(libs.plugins.plugin.publish)
}
assert(JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17))
group = "com.sinch.gradle"
version = "0.1.0"
repositories {
mavenCentral()
}
dependencies {
testImplementation(libs.kotest.runner.junit5)
testImplementation(libs.kotest.assertions.core)
}
tasks.test {
useJUnitPlatform()
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
}
val gitRepoUrl = "https://github.com/sinch/gradle-settings-dotenv"
@Suppress("UnstableApiUsage")
gradlePlugin {
website = gitRepoUrl
vcsUrl = "$gitRepoUrl.git"
plugins {
create("settingsDotenvPlugin") {
id = "$group.${rootProject.name}"
displayName = "Gradle Settings .env (dotenv) parser"
description =
"A plugin allowing easy access to variables defined in .env at both settings- and project-level."
tags = listOf("env", "dotenv", "envfile", "environment", "settings")
implementationClass = "$id.DotenvPlugin"
}
}
}