-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
45 lines (40 loc) · 1.23 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
`java-gradle-plugin`
alias(libs.plugins.gradle.publish)
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.style)
id("algomate-publish")
}
group = "org.tudalgo"
version = file("version").readLines().first()
dependencies {
implementation(gradleKotlinDsl())
implementation("org.sourcegrade:jagr-launcher-gradle-plugin:${libs.versions.jagr.get()}")
}
tasks {
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "21"
}
withType<JavaCompile> {
options.encoding = "UTF-8"
sourceCompatibility = "21"
targetCompatibility = "21"
}
withType<PublishToMavenRepository> {
onlyIf { project.version.toString().endsWith("-SNAPSHOT") }
}
}
gradlePlugin {
plugins {
create("algomate") {
id = "org.tudalgo.algomate"
displayName = "AlgoMate"
description = "Gradle plugin for TU Darmstadt Algorithmik assignments"
implementationClass = "org.tudalgo.algomate.AlgoMatePlugin"
tags = listOf("jagr", "assignment", "submission", "grading")
}
}
website = "https://wiki.tudalgo.org"
vcsUrl = "https://github.com/tudalgo/algomate"
}