-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
67 lines (58 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
plugins {
id ("com.gradle.plugin-publish") version "0.12.0"
`java-gradle-plugin`
kotlin("jvm") version "1.4.20"
`maven-publish`
id("com.diffplug.spotless") version "5.9.0"
}
repositories {
maven("https://plugins.gradle.org/m2/")
jcenter()
mavenCentral()
mavenLocal()
}
publishing {
repositories {
mavenLocal()
}
}
dependencies {
implementation(gradleKotlinDsl())
runtimeOnly(kotlin("reflect","1.4.20"))
testImplementation("org.junit.jupiter:junit-jupiter-api:5.4.2")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.4.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.4.2")
testImplementation(gradleTestKit())
}
version = "1.0.0"
group = "io.github.starlight"
gradlePlugin {
plugins {
val kojni by creating {
id = "io.github.starlight.KoJni"
implementationClass = "io.github.starlight.kojni.KoJniPlugin"
displayName = "KoJni"
}
}
}
pluginBundle {
website = "https://github.com/Starlight220/KoJni"
vcsUrl = "https://github.com/Starlight220/KoJni"
description = "A Gradle plugin for generating JNI headers."
tags = listOf("jni", "kotlin")
}
tasks.test {
useJUnitPlatform()
}
tasks.compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
spotless {
kotlin {
ktfmt()
indentWithSpaces(2)
endWithNewline()
}
}