-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
72 lines (57 loc) · 1.08 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
plugins {
id 'java'
id 'eclipse'
id 'maven-publish'
id "com.github.ben-manes.versions" version "0.49.0"
id 'synapticloop.copyrightr' version '1.3.1'
}
group = 'synapticloop'
description = """Templar templating engine"""
version = '1.5.6'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
test {
include '**/*Test.class'
maxParallelForks = 1
forkEvery = 50
}
repositories {
mavenLocal()
mavenCentral()
maven {
url 'https://jitpack.io'
}
}
dependencies {
implementation 'org.json:json:20231013'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.mockito:mockito-core:5.6.0'
}
// we always want to fail on version conflict
configurations.all {
resolutionStrategy {
failOnVersionConflict()
force 'xerces:xmlParserAPIs:2.6.2',
'xerces:xercesImpl:2.6.2',
'xml-apis:xml-apis:2.0.2'
}
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId 'synapticloop'
artifactId "templar"
version version
from components.java
}
}
}
copyrightr {
dryRun = false
excludes = [
"src/test/java/**/*.java"
]
}