forked from kaltura/media-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
45 lines (36 loc) · 1.12 KB
/
build.gradle
File metadata and controls
45 lines (36 loc) · 1.12 KB
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
subprojects {
apply plugin: 'java'
def javaVersion = JavaVersion.VERSION_1_7;
sourceCompatibility = javaVersion;
targetCompatibility = javaVersion;
configurations {
forInstaller
provided
compile.extendsFrom provided
}
compileJava {
options.compilerArgs << "-Xlint:unchecked"
}
repositories {
mavenCentral()
maven {
//TODO replace to master
url "https://raw.github.com/kaltura/KalturaGeneratedAPIClientsJava/PLAT-2504/maven"
}
}
dependencies {
//TODO use the + sign for latest version when we start to use repository manager
compile 'com.kaltura:KalturaClientLib:3.3.1'
provided 'log4j:log4j:1.2.17'
}
task enforceJavaVersion() {
def foundVersion = JavaVersion.current();
if (foundVersion != javaVersion)
throw new IllegalStateException("Wrong Java version; required is "
+ javaVersion + ", but found " + foundVersion);
}
compileJava.dependsOn(enforceJavaVersion);
}
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}