forked from projet-gl2/Hashimiste
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
48 lines (38 loc) · 1.04 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("java")
id("application")
id("org.sonarqube") version "3.5.0.2730"
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "fr.hashimiste"
version = "1.0-SNAPSHOT"
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
targetCompatibility = JavaVersion.VERSION_1_8.toString()
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.xerial:sqlite-jdbc:3.7.2")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1")
}
tasks.getByName<Test>("test") {
useJUnitPlatform()
}
application {
mainClass.set("fr.hashimiste.impl.Main")
}
sonar {
properties {
property("sonar.projectKey", "projet-gl2_Hashimiste_AY4o2rljbqkgiLWt9-aA")
}
}
tasks.named<ShadowJar>("shadowJar") {
archiveBaseName.set("Grp1")
archiveClassifier.set("")
archiveVersion.set("")
}