-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
54 lines (45 loc) · 1.46 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
42
43
44
45
46
47
48
49
50
51
52
53
54
plugins {
// id 'pmd'
id 'jacoco'
id 'com.gorylenko.gradle-git-properties' version '2.4.1'
}
gitProperties {
keys = ['git.commit.id.abbrev', 'git.branch', 'git.commit.time']
}
apply plugin: 'java'
sourceCompatibility = 21
tasks.withType(JavaCompile) {
options.deprecation = true
}
jar {
manifest {
attributes "Main-Class": "edu.generalpuzzle.main.JMain"
}
duplicatesStrategy = DuplicatesStrategy.WARN
from {
// todo copy config/ into resources
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
afterTest { descriptor, result ->
def totalTime = result.endTime - result.startTime
println "\n$totalTime msec"
}
}
repositories {
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
dependencies {
implementation group: 'org.beanshell', name: 'bsh', version: '3.0.0-SNAPSHOT' // migrate to Groovy 4 ?!
implementation group: 'org.apache.logging.log4j', name: 'log4j-1.2-api', version: '2.24.2'
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.24.2'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.24.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.3'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.11.3'
}