-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
47 lines (41 loc) · 1.4 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
plugins {
id 'java'
}
group = 'org.apache.solr'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
compileJava.options.encoding = 'UTF-8'
repositories {
mavenCentral()
}
dependencies {
implementation group: 'info.picocli', name: 'picocli', version: '4+'
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7+'
implementation group: 'org.slf4j', name: 'jcl-over-slf4j', version: '1.7+'
implementation group: 'org.slf4j', name: 'jul-to-slf4j', version: '1.7+'
implementation group: 'org.slf4j', name: 'log4j-over-slf4j', version: '1.7+'
implementation group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '2+'
implementation group: 'com.lmax', name: 'disruptor', version: '3+'
testImplementation('junit:junit:4+')
}
configurations.all {
exclude group: 'ch.qos.logback'
exclude group: 'commons-logging'
exclude group: 'log4j'
exclude group: 'org.apache.logging.log4j', module: 'log4j-to-slf4j'
}
tasks.named('test') {
useJUnitPlatform()
}
task dist(type: Jar) {
archiveBaseName = project.name + '-all'
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes 'Implementation-Title': 'Solr Control Program',
'Implementation-Version': version,
'Main-Class': 'org.apache.solr.cli.MainCommand',
'Multi-Release': 'true'
}
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}