-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.jre1.7
51 lines (43 loc) · 1.52 KB
/
build.gradle.jre1.7
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
plugins {
id "java"
id "idea"
}
version = '1.1'
sourceCompatibility = 1.7
targetCompatibility = 1.7
//def bootClasspathStr = "/Program Files/Java/jdk1.7/jre/lib/rt.jar"
def bootClasspathStr = "/MarkLogic/Erie Insurance/rt.jar;/MarkLogic/Erie Insurance/jce.jar"
project.tasks.withType(AbstractCompile, { AbstractCompile ac ->
ac.options.bootClasspath = bootClasspathStr // options is always there but not defined on AbstractCompile so going to hit it anyway
})
//tasks.withType(JavaCompile) {
// options.bootstrapClasspath = files("/Program Files/Java/jdk1.7/jre/lib/rt.jar")
//}
//compileJava.options.bootClasspath = "/Program Files/Java/jdk1.7/jre/lib/rt.jar"
compileJava.options.encoding = 'UTF-8'
repositories {
jcenter()
mavenCentral()
}
sourceSets {
main {
java {
srcDirs 'src'
}
}
}
dependencies {
//compile group: 'se.jiderhamn.classloader-leak-prevention', name: 'classloader-leak-prevention-core', version: '2.6.1'
//compile group: 'se.jiderhamn', name: 'classloader-leak-prevention', version: '1.15.4'
//compile group: 'se.jiderhamn', name: 'classloader-leak-prevention', version: '1.15.4'
compile 'junit:junit:4.12'
testCompile 'junit:junit:4.12'
testCompile group: 'se.jiderhamn.classloader-leak-prevention', name: 'classloader-leak-prevention-core', version: '2.6.1'
}
jar {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version)
}
baseName 'mljdbc-jre7-nobegin'
}