-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkryptnostic.gradle
160 lines (152 loc) · 4.84 KB
/
kryptnostic.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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
//Easy semantic version based off describe + tags
def getVersionName = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'describe', '--tags', '--dirty', '--long'
standardOutput = stdout
}
def tagVer = stdout.toString().trim()
def semVer = (tagVer =~ /v?([\d\.]+)/)[0][1]
if (tagVer.contains('dev')) {
semVer += "-SNAPSHOT"
}
return semVer
}
version = getVersionName()
//This gets the version plus build number, no -SNAPSHOTs
def getFullVersion = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'describe', '--tags', '--dirty', '--long'
standardOutput = stdout
}
def tagVer = stdout.toString().trim()
def semVer = (tagVer =~ /v?([\d\.]+)/)[0][1]
if (tagVer.contains('dev')) {
ext.bambooBuild =".${System.getenv("bamboo_buildNumber")}"
if ( ext.bambooBuild == ".null" ) {
ext.bambooBuild = "-SNAPSHOT"
}
semVer += ext.bambooBuild
}
return semVer
}
ext.fullVersion = getFullVersion()
tasks.withType(Tar){
compression = Compression.GZIP
}
apply from: "https://raw.githubusercontent.com/kryptnostic/gradles/master/mavenRepos.gradle"
apply from: "https://raw.githubusercontent.com/kryptnostic/gradles/master/publish.gradle"
task wrapper(type: Wrapper) {
gradleVersion = '3.3'
}
//Run jacoco after tests.
if( project.hasProperty('projectName') && project.hasProperty('scmUrl') ) {
test { finalizedBy jacocoTestReport }
}
/*
* Allow maintaing shared client git hooks in the repository. At some point should consider making task
* or making it depend on eclipse so it doesn't run everytime you run gradle
afterEvaluate {
copy {
if ( project.hasProperty('projectName') ) {
logger.info "Copying hooks for ${getProjectDir()} from ${projectName}/hooks to ${projectName}/.git/hooks"
}
from ("${getProjectDir()}/hooks")
into "${getProjectDir()}/.git/hooks"
}
}
*/
/**
* To make use of this, mark a dependency as `changing: true` if it is a snapshot dependency
* This way it won't be cached and you'll always get the newest code.
* This should automagically work for '-SNAPSHOT' dependencies
*
* Ex:
* dependencies {
* compile group: "group", name: "projectA", version: "1.1-SNAPSHOT", changing: true
* }
*/
configurations.all {
// check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
/**
* Kryptnostic versions
**/
ext.billing_version='0.1.0-SNAPSHOT'
ext.conductor_client_version='0.0.5-SNAPSHOT'
ext.fhe_core_version='0.1.2-SNAPSHOT'
ext.heracles_version='4.0.0-SNAPSHOT'
ext.hz_server_version='0.1.0-SNAPSHOT'
ext.iris_version='5.0.0-SNAPSHOT'
ext.k_annotations_version='0.0.0-SNAPSHOT'
ext.kindling_version='0.0.1-SNAPSHOT'
ext.parasol_version='0.0.0-SNAPSHOT'
ext.datastore_version='0.0.0-SNAPSHOT'
ext.kodex_version='6.2.1-SNAPSHOT'
ext.kryptnostic_instrumentation_version='0.4.3-SNAPSHOT'
ext.kryptnostic_metrics_version='0.4.0-SNAPSHOT'
ext.kryptnostic_types_version='0.0.0-SNAPSHOT'
ext.krypto_version='0.3.0-SNAPSHOT'
ext.mail_service_version='0.0.3-SNAPSHOT'
ext.mail_service_client_version='0.0.1-SNAPSHOT'
ext.mapstores_version='0.4.1-SNAPSHOT'
ext.notifications_version='5.1.0-SNAPSHOT'
ext.rhizome_version='2.7.2-SNAPSHOT'
ext.services_version='5.0.1-SNAPSHOT'
ext.conductor_version='0.0.1-SNAPSHOT'
ext.datastore_version='0.0.0-SNAPSHOT'
ext.shuttle_java_version='0.1.8-SNAPSHOT'
ext.loom_api_version='0.0.4-SNAPSHOT'
ext.rhizome_client_version='0.0.7-SNAPSHOT'
ext.courier_version='0.0.1-SNAPSHOT';
ext.scribe_version='0.0.1-SNAPSHOT';
/**
* External versions
**/
ext.apache_httpcomponents_version='4.4'
ext.auth0_version='0.4.0'
ext.auth0_spring_version='0.3.1'
ext.cassandra_client_utils_version='3.5'
ext.cassandra_driver_version='3.1.3'
ext.commons_codec_version='1.10'
ext.commonsio_version='2.5'
ext.commonsLang_version='3.4'
ext.dropwizard_metrics_version='3.1.2'
ext.elastic_version='5.1.1'
ext.findbugs_version='3.0.1'
ext.guava_version='19.0'
ext.hazelcast_version='3.8.3'
ext.hazelcast_wm_version='3.8.1'
ext.hibernate_version='5.3.4.Final'
ext.immutables_version='2.3.9'
ext.jackson_version='2.6.5'
ext.javax_inject_version='1'
ext.javax_servlet_version='2.3.1'
ext.javax_servlet_api_version='3.1.0'
ext.jetty_version='9.3.14.v20161028'
ext.jmustache_version = '1.11'
ext.jodatime_version='2.9.1'
ext.log4j_version='2.7'
ext.lz4_version='1.3'
ext.netty_epoll_version='4.0.44.Final'
ext.netty_os_arch='linux-x86_64'
ext.odata_version='4.2.0'
ext.okhttp_version='2.3.0'
ext.retrofit_version='1.9.0'
ext.retrofit2_version='2.1.0'
ext.ryantenney_metrics_version='3.1.3'
ext.slf4j_version='1.7.22'
ext.snappy_version='1.1.2.1'
ext.spark_version='2.1.0'
ext.spark_cassandra_connector_version='2.0.1'
ext.spongy_castle_version='1.51.0.0'
ext.spring_framework_version='4.3.0.RELEASE'
ext.spring_security_version='4.1.0.RELEASE'
ext.uuid_version='3.4'
/**
* Testing versions
**/
ext.junit_version='4.12'
ext.mockito_version='1.9.5'