-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle.kts
72 lines (59 loc) · 1.82 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
plugins {
// Apply the Java Gradle Plugin Development plugin
`java-gradle-plugin`
// Apply the Kotlin DSL Plugin for enhanced IDE support
`kotlin-dsl`
// Apply the Plugin Publishing Plugin to publish plugins to the Gradle Plugins Portal
id("com.gradle.plugin-publish") version "0.20.0"
}
group = "io.github.krakowski"
version = "0.5.0"
repositories {
mavenCentral()
}
dependencies {
// Align versions of all Kotlin components
implementation(platform(kotlin("bom")))
// Use the Kotlin JDK 8 standard library
implementation(kotlin("stdlib-jdk8"))
// Gradle test kit using JUnit
testImplementation(gradleTestKit())
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
}
java {
// explicitly target Java 8 (this is not updated when the kotlin jvmTarget is set)
// this can be removed when https://youtrack.jetbrains.com/issue/KT-35003 is fixed
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlin {
target {
compilations.configureEach {
kotlinOptions {
// explicitly target Java 8
jvmTarget = "1.8"
}
}
}
}
gradlePlugin {
plugins {
create("jextract") {
id = "io.github.krakowski.jextract"
displayName = "jextract gradle plugin"
description = "Integrates jextract with the Gradle build system"
implementationClass = "io.github.krakowski.jextract.JextractPlugin"
}
}
}
pluginBundle {
website = "https://github.com/krakowski/gradle-jextract"
vcsUrl = "https://github.com/krakowski/gradle-jextract.git"
tags = listOf("native", "panama", "jextract")
}
tasks.withType<Wrapper> {
gradleVersion = "8.1.1"
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}