-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle.kts
93 lines (70 loc) · 2.57 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
plugins {
java
jacoco
id("io.franzbecker.gradle-lombok") version "4.0.0"
id("com.github.johnrengelman.shadow") version "5.2.0"
id("org.sonarqube") version "3.0"
}
group = "com.github.yukon39"
version = "1.1-SNAPSHOT"
repositories {
mavenCentral()
maven ( "https://jitpack.io" )
}
val junitVersion = "5.6.1"
dependencies {
implementation( "org.eclipse.lsp4j", "org.eclipse.lsp4j.debug", "0.9.0")
implementation( "com.github.1c-syntax", "mdclasses", "0.5.0")
implementation("info.picocli", "picocli", "4.4.0")
implementation("org.slf4j", "slf4j-api", "1.8.0-beta4")
implementation("org.slf4j", "slf4j-simple", "1.8.0-beta4")
implementation("org.jetbrains", "annotations", "19.0.0")
implementation("jakarta.xml.bind", "jakarta.xml.bind-api", "3.0.0-RC3")
implementation("org.glassfish.jaxb", "jaxb-runtime", "3.0.0-M4")
implementation("com.google.code.findbugs", "jsr305", "3.0.2")
implementation("com.intellij", "annotations", "12.0")
compileOnly("org.projectlombok", "lombok", lombok.version)
testImplementation("org.junit.jupiter", "junit-jupiter-api", junitVersion)
testImplementation("org.junit.jupiter", "junit-jupiter-params", junitVersion)
testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine", junitVersion)
testImplementation("org.assertj", "assertj-core", "3.16.1")
testImplementation("com.ginsberg", "junit5-system-exit", "1.0.0")
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
sonarqube {
properties {
property("sonar.sourceEncoding", "UTF-8")
property("sonar.host.url", "https://sonarcloud.io")
property("sonar.organization", "yukon39")
property("sonar.projectKey", "bsl-debug-server")
property("sonar.projectName", "BSL Debug Server")
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.compilerArgs.add("-Xlint:unchecked")
options.compilerArgs.add("-Xlint:deprecation")
}
tasks.test {
systemProperty("file.encoding", "utf-8")
useJUnitPlatform()
}
tasks.jar {
manifest {
attributes["Main-Class"] = "com.github.yukon39.bsl.debugserver.BSLDebugLauncher"
attributes["Implementation-Version"] = archiveVersion.get()
}
enabled = false
dependsOn(tasks.shadowJar)
}
tasks.shadowJar {
project.configurations.implementation.get().isCanBeResolved = true
configurations = listOf(project.configurations["implementation"])
archiveClassifier.set("")
}
tasks.sonarqube {
dependsOn(tasks.test)
}