-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
39 lines (31 loc) · 957 Bytes
/
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
plugins {
id("java")
application
}
group = "com.auzeill.java.ast"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("org.sonarsource.api.plugin:sonar-plugin-api:latest.release") // tested with 9.8.0.203
implementation("org.sonarsource.sonarqube:sonar-plugin-api-impl:latest.release") // tested with 9.7.1.62043
implementation("org.sonarsource.java:java-frontend:latest.release") // tested with 7.15.0.30507
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1")
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
application {
mainClass.set("com.auzeill.java.ast.PrintAST")
}
tasks.withType<Jar> {
manifest {
attributes["Main-Class"] = "com.auzeill.java.ast.PrintAST"
}
}
tasks.getByName<Test>("test") {
useJUnitPlatform()
}