-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
66 lines (53 loc) · 2.43 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
apply plugin: "java"
apply plugin: "war"
apply plugin: "maven"
// define the version for the project when publishing to maven
group "blackboard.plugin"
version "1.0-SNAPSHOT"
project.ext {
learnVersion = "9.1.110082.0"
springVersion = "3.1.1.RELEASE"
hibernateVersion = "4.1.10.Final"
}
repositories {
mavenCentral()
maven {
url "https://maven.blackboard.com/content/repositories/releases/"
}
}
configurations {
buildUtils
}
// define the project's dependencies
dependencies {
// providedCompile dependencies are libraries needed to build, but should not be included in the B2 WAR.
providedCompile( "blackboard.platform:bb-platform:$ext.learnVersion" ) { transitive = false }
providedCompile( "blackboard.platform:bb-cms-admin:$ext.learnVersion" ) { transitive = false }
providedCompile( "blackboard.platform:bb-taglibs:$ext.learnVersion" ) { transitive = false }
compile( "blackboard.platform:bb-spring-webapi:$ext.learnVersion" ) { transitive = false }
compile "org.springframework:spring-aop:$ext.springVersion",
"org.springframework:spring-asm:$ext.springVersion",
"org.springframework:spring-beans:$ext.springVersion",
"org.springframework:spring-context:$ext.springVersion",
"org.springframework:spring-core:$ext.springVersion",
"org.springframework:spring-expression:$ext.springVersion",
"org.springframework:spring-web:$ext.springVersion",
"org.springframework:spring-webmvc:$ext.springVersion",
"org.springframework:spring-context-support:$ext.springVersion",
"org.springframework:spring-jdbc:$ext.springVersion",
"org.springframework:spring-orm:$ext.springVersion",
"org.springframework:spring-tx:$ext.springVersion"
compile( "org.hibernate:hibernate-core:$ext.hibernateVersion" ) { transitive = true }
compile "org.hibernate:hibernate-entitymanager:$ext.hibernateVersion"
runtime "org.javassist:javassist:3.17.1-GA",
"dom4j:dom4j:1.6.1"
buildUtils "org.oscelot:b2deploy-task:0.1.0"
}
// Add a task to deploy a B2 using starting block
task deployB2( dependsOn: "war" ) << {
ant.taskdef( name: "b2deploy", classname: "org.oscelot.ant.B2DeployTask", classpath: project.configurations.buildUtils.asPath )
ant.b2deploy( localfilepath: project.war.archivePath, host: System.getProperty("server"), courseorgavailable: 'true', clean: 'true' )
}
task wrapper(type: Wrapper) {
gradleVersion = '1.5'
}