-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
70 lines (57 loc) · 1.59 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
/*
* Copyright 2020-present, Nike, Inc.
* All rights reserved.
*
* This source code is licensed under the Apache-2.0 license found in
* the LICENSE file in the root directory of this source tree.
*/
plugins {
id 'java-library'
id 'maven-publish'
id 'idea'
id 'com.jfrog.bintray' version "1.8.5"
}
repositories {
mavenCentral()
jcenter()
mavenLocal()
}
//http://www.gradle.org/docs/current/userguide/java_plugin.html
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
dependencies {
api 'com.beust:jcommander:1.72'
api 'org.springframework:spring-context:5.2.11.RELEASE'
api 'org.slf4j:slf4j-api:1.7.30'
implementation 'com.github.tomas-langer:chalk:1.0.2'
implementation 'commons-io:commons-io:2.8.0'
implementation 'org.apache.commons:commons-lang3:3.11'
implementation 'org.apache.commons:commons-collections4:4.4'
implementation 'org.reflections:reflections:0.9.12'
testImplementation "junit:junit:4.13.1"
testImplementation "ch.qos.logback:logback-classic:1.2.3"
}
idea {
module {
downloadSources = true
downloadJavadoc = true
}
}
jar {
doFirst {
ant.replace(file: "$buildDir/resources/main/gimme-a-cli.properties", token: "@@RELEASE@@", value: archiveVersion)
}
}
javadoc {
failOnError = false
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
archiveClassifier = 'javadoc'
}
apply from: 'gradle/publishing.gradle'
apply from: 'gradle/bintray.gradle'