-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
64 lines (47 loc) · 1.35 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
allprojects {
apply plugin: 'java'
apply plugin: 'maven'
sourceCompatibility = 1.8
group = 'com.korwe'
version = '2.2.0'
ext {
siteUrl = 'https://github.com/korwe/the-core-java'
gitUrl = 'https://github.com/korwe/the-core-java.git'
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
task javadocJar(type: Jar, dependsOn: javadoc) {
from 'build/docs/javadoc'
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
testCompile 'junit:junit:4.10'
}
test {
ignoreFailures = true
}
}
apply plugin: 'application'
mainClassName = 'com.korwe.thecore.service.CoreServices'
dependencies {
runtime project(':service-api')
runtime project(':sessions')
runtime project(':webcore')
runtime project(':common-api')
runtime project(':router')
runtime 'postgresql:postgresql:8.4-702.jdbc4'
runtime 'org.slf4j:slf4j-log4j12:1.6.1'
}
distZip {
baseName = 'thecore-javaservices'
}
task configureQueues(type: Exec) << {
Properties properties = new Properties()
properties.loadFromXML(new FileInputStream('coreconfig.xml'))
commandLine file('thecore-queue-config'), properties.getProperty('amqp_host', 'localhost'), Integer.parseInt(properties.getProperty('amqp_port', '5672'))
}