-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.gradle
61 lines (48 loc) · 1.92 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
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 "edu.monument"
version "1.0-SNAPSHOT"
ext {
learnVersion = "9.1.120113.0"
deployServer = "localhost:8000"
deployInstance = "BBLEARN"
}
repositories {
mavenCentral()
maven {
url "https://maven.blackboard.com/content/repositories/releases/"
}
}
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 }
// 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"
}
// 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.6'
}