-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
54 lines (46 loc) · 1.8 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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java library project to get you started.
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
* User Manual available at https://docs.gradle.org/6.8/userguide/building_java_projects.html
*/
plugins {
id 'java'
id 'application'
}
repositories {
// Use JCenter for resolving dependencies.
jcenter()
}
dependencies {
implementation group: 'commons-codec', name: 'commons-codec', version: '1.15'
implementation group: 'commons-logging', name: 'commons-logging', version: '1.2'
implementation group: 'org.apache.httpcomponents', name: 'httpasyncclient', version: '4.1.4'
implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.13'
implementation group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.4.14'
implementation group: 'org.apache.httpcomponents', name: 'httpcore-nio', version: '4.4.14'
implementation group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.5.13'
implementation group: 'org.json', name: 'json', version: '20210307'
implementation group: 'com.mashape.unirest', name: 'unirest-java', version: '1.4.9'
// Use JUnit test framework.
testImplementation 'junit:junit:4.13'
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation 'com.google.guava:guava:29.0-jre'
}
application {
mainClassName = 'org.spray.keyauth.Application'
}
test {
useJUnitPlatform()
}
task customFatJar(type: Jar) {
manifest {
attributes 'Main-Class': application.mainClassName
}
baseName = rootProject.name
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
}