-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
41 lines (33 loc) · 1 KB
/
build.gradle
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
plugins {
id 'java'
}
group 'fr.lorek'
version '1.0-Beta'
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
repositories {
mavenCentral()
}
configurations {
extraLibs
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
extraLibs group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.13'
extraLibs group: 'commons-io', name: 'commons-io', version: '2.11.0'
extraLibs group: 'org.json', name: 'json', version: '20211205'
extraLibs group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1'
configurations.implementation.extendsFrom(configurations.extraLibs)
}
jar {
manifest.attributes "Main-Class": "fr.lorek.notifnotes.MainNotif"
from {
configurations.extraLibs.collect { it.isDirectory() ? it : zipTree(it) }
}
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
}
test {
useJUnitPlatform()
}