-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
58 lines (50 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
55
56
57
58
plugins {
// Provide convenience executables for trying out the examples.
id 'application'
// ASSUMES GRADLE 2.12 OR HIGHER. Use plugin version 0.7.5 with earlier gradle versions
id 'com.google.protobuf' version '0.8.8'
// Generate IntelliJ IDEA's .idea & .iml project files
id 'idea'
}
repositories {
maven { // The google mirror is less flaky than mavenCentral()
url "https://maven-central.storage-download.googleapis.com/maven2/" }
mavenCentral()
mavenLocal()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
//create a single Jar with all dependencies
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'aws-soter',
'Implementation-Version': 1.0,
'Main-Class': 'com.amazon.soter.Soter'
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
dependencies {
// License: Apache-2.0
compileOnly "org.apache.tomcat:annotations-api:6.0.53"
// License: Eclipse-1.0
testImplementation "junit:junit:4.12"
testCompile 'junit:junit:4.12'
compile 'junit:junit:4.12'
// License: Apache-2.0
implementation "commons-cli:commons-cli:1.4"
}
// Inform IDEs like IntelliJ IDEA, Eclipse or NetBeans about the generated code.
sourceSets {
main {
java {
srcDirs 'src'
}
}
test {
java {
srcDirs 'tst'
}
}
}
startScripts.enabled = false