-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
53 lines (44 loc) · 1.4 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
import java.util.*
plugins {
kotlin("jvm") version "1.9.21"
id("com.gradle.plugin-publish") version "1.2.1"
`kotlin-dsl`
}
group = "io.github.isning.gradle.plugins"
version = "0.1.5"
Properties().apply {
rootProject.file("local.properties").takeIf { it.exists() && it.isFile }?.let { load(it.reader()) }
}.onEach { (key, value) ->
if (key is String) ext[key] = value
}
if (!ext.has("gradle.publish.key")) ext["gradle.publish.key"] =
System.getenv("GRADLE_PUBLISH_KEY")
if (!ext.has("gradle.publish.secret")) ext["gradle.publish.secret"] =
System.getenv("GRADLE_PUBLISH_SECRET")
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
implementation("org.apache.commons:commons-text:1.10.0")
testImplementation("org.jetbrains.kotlin:kotlin-test")
}
gradlePlugin {
website.set("https://github.com/ISNing/CMakePlugin")
vcsUrl.set("https://github.com/ISNing/CMakePlugin")
plugins {
create("cmake") {
id = "io.github.isning.gradle.plugins.cmake"
implementationClass = "io.github.isning.gradle.plugins.cmake.CMakePlugin"
displayName = "Integrate CMake into your Gradle build"
description = "Seamlessly integrate CMake into your Gradle build"
tags.set(listOf("c", "cxx", "cmake", "clang", "crosscompile"))
}
}
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}