-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathbuild.gradle
50 lines (42 loc) · 1.2 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
ext {
gradleVersion = '1.9'
hibernateVersion = '4.3.1.Final'
javaLanguageLevel = '1.7'
}
subprojects {
apply plugin: 'eclipse'
apply plugin: 'java'
group = 'org.hibernate.brmeyer.demo'
version = rootProject.hibernateVersion
targetCompatibility = rootProject.javaLanguageLevel
sourceCompatibility = rootProject.javaLanguageLevel
repositories {
mavenCentral()
mavenLocal()
maven {
name 'jboss-nexus'
url "http://repository.jboss.org/nexus/content/groups/public/"
}
maven {
name "jboss-snapshots"
url "http://snapshots.jboss.org/maven2/"
}
}
dependencies {
compile( 'org.hibernate:hibernate-core:' + rootProject.hibernateVersion )
compile( 'org.hibernate:hibernate-entitymanager:' + rootProject.hibernateVersion )
runtime( 'com.h2database:h2:1.3.175' )
}
tasks.withType( JavaCompile.class ).all { task->
task.options.compilerArgs += [
"-nowarn",
"-proc:none",
"-encoding", "UTF-8",
"-source", rootProject.javaLanguageLevel,
"-target", rootProject.javaLanguageLevel
]
}
}
task wrapper(type: Wrapper) {
gradleVersion = gradleVersion
}