This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
67 lines (57 loc) · 1.52 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
@file:Suppress("DSL_SCOPE_VIOLATION")
plugins {
`java-gradle-plugin`
`maven-publish`
alias(libs.plugins.kotlin.jvm)
`kotlin-dsl`
alias(libs.plugins.gradle.plugin.publish)
alias(libs.plugins.versions)
alias(libs.plugins.version.catalog.update)
}
group = "enterprises.stardust"
version = "4.0.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
compileOnly(gradleApi())
implementation(libs.bundles.kotlin)
implementation(libs.stargrad)
}
configurations.all {
resolutionStrategy.eachDependency {
if (requested.group == "org.jetbrains.kotlin") {
useVersion(libs.kotlin.jvm.get().versionConstraint.displayName)
}
}
}
tasks {
val jvmTarget = "1.8"
// Configure JVM versions
compileKotlin {
kotlinOptions.jvmTarget = jvmTarget
kotlinOptions.languageVersion = "1.7"
kotlinOptions.freeCompilerArgs += listOf(
"-opt-in=kotlin.RequiresOptIn"
)
}
compileJava {
targetCompatibility = jvmTarget
sourceCompatibility = jvmTarget
}
}
gradlePlugin {
plugins {
create("burstRoot") {
displayName = "Burst - root"
description = "Missing."
id = "enterprises.stardust.burst.root"
implementationClass = "enterprises.stardust.burst.gradle.plugin.RootPlugin"
}
}
}
pluginBundle {
vcsUrl = "https://github.com/stardust-enterprises/burst"
website = "https://github.com/stardust-enterprises/burst"
tags = listOf()
}