-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
80 lines (61 loc) · 2.41 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
71
72
73
74
75
76
77
78
79
apply plugin: "java"
apply plugin: "groovy"
apply plugin: "maven"
apply plugin: "eclipse"
apply plugin:'application'
sourceCompatibility = '1.7'
group = 'pnnl.goss.server'
version = '0.1.6-SNAPSHOT'
// Property added by application plugin
mainClassName = "pnnl.goss.server.ServerMain"
// Repository configuration.
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven{url "http://dl.bintray.com/gridoptics/goss/"}
}
dependencies {
compile "commons-cli:commons-cli:$commonsCliVersion"
compile "org.codehaus.groovy:groovy-all:$groovyVersion"
//compile (group: "com.esyfur", name: "gradle-config-plugin", version: "$gradleConfigVersion")
compile "org.eclipse.jetty.aggregate:jetty-all-server:$jettyVersion"
compile "org.apache.activemq:activemq-all:$activemqVersion"
compile "org.springframework:spring-beans:$springVersion"
compile "org.springframework:spring-context:$springVersion"
// Logging should be available to all projects
compile "org.slf4j:slf4j-api:$slf4jVersion"
compile "org.slf4j:slf4j-log4j12:$slf4jVersion"
// Both client and server need access to the following dependencies
compile "pnnl.goss:goss-core:$gossCoreVersion"
compile "pnnl.goss:goss-core-server:$gossCoreVersion"
//compile "pnnl.goss.powergrid:powergrid-common:$gossPowergridVersion"
//compile "pnnl.goss.powergrid:powergrid-server:$gossPowergridVersion"
compile "org.apache.xbean:xbean-spring:$xbeanVersion"
// For testing we are going to use these ubiquitous
testCompile "junit:junit:$junitVersion"
testCompile "org.mockito:mockito-core:$mockitoVersion"
testCompile "org.spockframework:spock-core:$spockVersion"
}
buildscript {
def gradleConfigVersion = '0.4.7'
repositories {
mavenCentral()
}
dependencies {
classpath group: "com.esyfur", name: "gradle-config-plugin", version: "$gradleConfigVersion"
}
}
jar {
manifest {
attributes 'Implementation-Title': 'Goss Server',
'Implementation-Version': version,
'Main-Class' : mainClassName,
'Class-Path': 'libs/',
'Created-By': 'Pacific Northwest National Laboratory'
}
}
// This task is for creating a wrap script that can simply be
// downloaded and executed. The doing of this remindes me
// allot of virtualenv for python.
task wrapper (type: Wrapper) { gradleVersion = "$gradleVersion" }