-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
99 lines (83 loc) · 2.8 KB
/
build.gradle
File metadata and controls
99 lines (83 loc) · 2.8 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'eclipse'
sourceCompatibility = 1.8
targetCompatibility = 1.8
project.ext.currentVersion = '1.0'
project.ext.artifactGroupId =
version = currentVersion
group = "pl.microhackaton"
description = 'Twitter topics analyzer'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath group: 'eu.appsatori', name: 'gradle-fatjar-plugin', version: '0.2'
}
}
apply plugin: 'fatjar'
fatJar {
classifier 'fat'
// We need to add the main class to the manifest, otherwise the JAR won't start.
manifest {
attributes 'Main-Class': 'pl.microhackaton.analyzer.twitter.topics.TwitterTopicsAnalyzerApplication'
}
exclude 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/license/*'
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
project.ext.dropwizardVersion = '0.7.1'
project.ext.cassandraDriverVersion = "2.0.3"
project.ext.curatorVersion = '2.6.0'
project.ext.groovyVersion = "2.3.6"
configurations {
compile.exclude group: "org.slf4j", module: "slf4j-log4j12"
compile.exclude group: "org.slf4j", module: "log4j-over-slf4j"
}
sourceSets {
main {
groovy {
// override the default locations, rather than adding additional ones
srcDirs = ['src/main/groovy', 'src/main/java']
}
java {
srcDirs = [] // don't compile Java code twice
}
}
}
uploadArchives {
repositories.mavenDeployer {
repository(url: "http://nexus.microhackathon.pl/content/repositories/releases/") {
authentication(userName: 'deployment', password: 'deployment123')
}
pom.version = currentVersion
pom.artifactId = project.name
pom.groupId = artifactGroupId
}
}
//task deployToAws(dependsOn: uploadArchives) << {
// String json = """{"artifactId": "${project.name}", "groupId": "$artifactGroupId","version": "$currentVersion",
// "jvmParams": "-Dspring.profiles.active=prod}"""
// println "Sending the following json [$json]"
// new groovyx.net.http.HTTPBuilder('http://54.73.40.79:18081/deploy').post([body: json, headers: ['Content-Type': 'application/json']])
//}
dependencies {
compile "org.codehaus.groovy:groovy-all:$groovyVersion:indy"
compile "io.dropwizard:dropwizard-core:$dropwizardVersion"
compile "com.google.guava:guava:17.0"
compile "com.sun.jersey:jersey-client:1.8"
compile "org.apache.curator:curator-x-discovery:$curatorVersion"
compile "org.apache.curator:curator-test:$curatorVersion"
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile 'org.mockito:mockito-core:1.9.5'
testCompile "org.assertj:assertj-core:1.6.1"
}
test {
jvmArgs '-noverify'
}