-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
97 lines (83 loc) · 2.39 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
import java.util.*
plugins {
java
jacoco
id("maven-publish")
kotlin("jvm") version "2.0.20"
id("java-gradle-plugin")
id("org.cadixdev.licenser") version "0.6.1"
id("com.gradle.plugin-publish") version "1.2.2"
}
gradlePlugin {
website.set("https://github.com/1c-syntax/bslls-dev-tools")
vcsUrl.set("https://github.com/1c-syntax/bslls-dev-tools.git")
plugins {
create("bslls-dev-tools") {
id = "io.github.1c-syntax.bslls-dev-tools"
implementationClass = "com.github._1c_syntax.bsllsdevtools.BSLDeveloperToolsPlugin"
displayName = "BSLLS Development tools gradle plugin"
description = "BSLLS Development tools gradle plugin"
tags.set(listOf("bslls", "dev-tools", "bsl-language-server", "1c-syntax"))
}
}
}
group = "io.github.1c-syntax"
version = "0.8.1"
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compileOnly(gradleApi())
implementation(kotlin("stdlib-jdk8"))
implementation("commons-io", "commons-io", "2.6")
testImplementation("org.junit.jupiter", "junit-jupiter-api", "5.6.1")
testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine", "5.6.1")
testImplementation("org.assertj", "assertj-core", "3.18.1")
}
kotlin {
compilerOptions {
apiVersion.set(KotlinVersion.KOTLIN_2_0)
jvmTarget.set(JvmTarget.JVM_17)
}
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
reports {
html.required.set(true)
}
}
tasks.check {
dependsOn(tasks.jacocoTestReport)
}
tasks.jacocoTestReport {
reports {
xml.required.set(true)
xml.outputLocation.set(File("$buildDir/reports/jacoco/test/jacoco.xml"))
}
}
license {
header(rootProject.file("license/HEADER.txt"))
newLine(false)
ext["year"] = "2020-" + Calendar.getInstance().get(Calendar.YEAR)
ext["name"] = "Valery Maximov <maximovvalery@gmail.com>"
ext["project"] = "BSLLS Development tools gradle plugin"
exclude("**/*.bin")
exclude("**/*.html")
exclude("**/*.properties")
exclude("**/*.xml")
exclude("**/*.json")
exclude("**/*.os")
exclude("**/*.bsl")
exclude("**/*.orig")
exclude("**/Template*")
}