forked from zengkid/SmartTomcat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
50 lines (40 loc) · 985 Bytes
/
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
plugins {
id "org.jetbrains.intellij" version "0.2.13"
}
//apply plugin: 'org.jetbrains.intellij'
apply plugin: 'java'
// On travis, we don't want to deploy to Jetbrains that requires credentials
if (project.file('gradle.properties').exists()) {
apply from: "gradle.properties"
}
intellij {
version = '2016.3.4'
updateSinceUntilBuild = false
pluginName = 'SmartTomcat'
}
repositories {
mavenCentral()
}
sourceSets {
//noinspection GroovyAssignabilityCheck
main {
java.srcDirs = ['src']
resources.srcDirs = ['resources']
}
test {
java.srcDirs = ['tests']
resources.srcDirs = ['testData']
}
}
task copyResourcesToClasses(type: Copy) {
from "${projectDir}/testData"
into "${buildDir}/classes/test"
}
instrumentTestCode.dependsOn copyResourcesToClasses
dependencies {
compile fileTree(dir: 'lib', include: ['*.jar'])
}
task wrapper(type: Wrapper) {
gradleVersion = '3.5'
}
version '2.6'