This repository has been archived by the owner on May 17, 2023. It is now read-only.
forked from jasper-smit/spring-b2-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
66 lines (53 loc) · 2.34 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.201410.160373"
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:9.1.201410.160373" ) { transitive = false }
providedCompile( "blackboard.platform:bb-cms-admin:9.1.201410.160373" ) { transitive = false }
providedCompile( "blackboard.platform:bb-taglibs:9.1.201410.160373" ) { transitive = false }
compile( "blackboard.platform:bb-spring-webapi:10.5" ) { transitive = false }
compile "org.springframework:spring-aop:3.1.1.RELEASE",
"org.springframework:spring-asm:3.1.1.RELEASE",
"org.springframework:spring-beans:3.1.1.RELEASE",
"org.springframework:spring-context:3.1.1.RELEASE",
"org.springframework:spring-core:3.1.1.RELEASE",
"org.springframework:spring-expression:3.1.1.RELEASE",
"org.springframework:spring-web:3.1.1.RELEASE",
"org.springframework:spring-webmvc:3.1.1.RELEASE",
"org.springframework:spring-context-support:3.1.1.RELEASE",
"org.springframework:spring-jdbc:3.1.1.RELEASE",
"org.springframework:spring-orm:3.1.1.RELEASE",
"org.springframework:spring-tx:3.1.1.RELEASE"
compile( "org.hibernate:hibernate-core:4.1.10.Final" ) { transitive = true }
compile "org.hibernate:hibernate-entitymanager:4.1.10.Final"
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'
}