forked from ubc/enhanced-basiclti-b2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
103 lines (84 loc) · 2.94 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
apply plugin: "java"
apply plugin: "war"
apply plugin: "maven"
apply plugin: "eclipse"
apply plugin: "idea"
// Uncomment if your project has an API JAR
//apply from: "api.gradle"
// define the version for the project when publishing to maven
group "ca.ubc"
version "3.2.0002"
webAppDirName = file("web")
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
sourceSets {
main {
java {
srcDir 'src/java'
}
resources {
srcDir 'src/resources'
}
}
test {
java {
srcDir 'test/java'
}
resources {
srcDir 'test/resources'
}
}
}
ext {
learnVersion = "9.1.201410.160373"
deployServer = "127.0.0.1:9876"
deployInstance = "BBLEARN"
}
repositories {
mavenCentral()
maven {
url "https://maven.blackboard.com/content/repositories/releases/"
}
maven {
url "http://artifactory.ctlt.ubc.ca/artifactory/ctlt-release-local/"
}
}
configurations {
buildUtils
}
// define the project's dependencies
dependencies {
providedCompile "javax.servlet:servlet-api:2.5",
"javax.servlet.jsp:jsp-api:2.1"
// Dependencies are libraries needed to build, but should not be included in the B2 WAR.
// You should NEVER include Learn JARs (other than webapis) in your B2.
providedCompile("blackboard.platform:bb-platform:$ext.learnVersion") { transitive = false }
providedCompile("blackboard.platform:bb-taglibs:$ext.learnVersion") { transitive = false }
providedCompile('org.jdom:jdom:1.1.3') { transitive = false }
providedCompile('net.sf.json-lib:json-lib:2.4:jdk15') { transitive = true }
// Building a Spring B2? Use our Spring APIs!
// compile "blackboard.platform:bb-spring-webapi:10.1"
// Include the Blackboard security APIs for protecting your B2.
// providedCompile "blackboard.plugin:security:1.0:api"
// Dependencies that are only necessary at runtime so should be included in the WAR
// runtime "org.javassist:javassist:3.17.1-GA"
buildUtils "org.oscelot:b2deploy-task:0.1.0"
compile "com.spvsoftwareproducts:b2context:1.6.01",
'org.oscelot.blackboard:lti-assessment:1.0',
'org.oscelot.blackboard:lti-caliperprofile:1.0',
'com.google.code.gson:gson:2.2.4',
'commons-httpclient:commons-httpclient:3.1',
compile('net.oauth:oauth-core:20090105:mod1') { transitive = false }
testCompile 'org.testng:testng:6.8.7'
}
test {
useTestNG()
}
// 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: project.ext.deployServer, courseorgavailable: 'true', clean: 'true', webappName: 'bb-starting-block-' + project.ext.deployInstance)
}
task wrapper(type: Wrapper) {
gradleVersion = '1.8'
}