-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
70 lines (60 loc) · 1.34 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
62
63
64
65
66
67
68
69
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
repositories {
mavenLocal()
mavenCentral()
}
configurations {
provided
compile.extendsFrom provided
}
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
options.debug = true
options.debugOptions.debugLevel = "source,lines,vars"
}
dependencies {
compile 'org.stagemonitor:stagemonitor-web:0.11.1'
compile 'org.slf4j:slf4j-simple:1.7.7'
provided 'javax.servlet:javax.servlet-api:3.0.1'
testCompile 'junit:junit:4.11'
testCompile 'org.mockito:mockito-all:1.10.8'
testCompile 'org.springframework:spring-webmvc:4.1.0.RELEASE'
testCompile 'org.springframework:spring-test:4.1.0.RELEASE'
}
// publish
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.0'
}
}
apply plugin: 'com.bmuschko.nexus'
modifyPom {
project {
dependencies {
(project.configurations.compile.allDependencies - project.configurations.provided.allDependencies)
.each { dep ->
dependency {
groupId dep.group
artifactId dep.name
version dep.version
scope 'compile'
}
}
project.configurations.provided.allDependencies.each { dep ->
dependency {
groupId dep.group
artifactId dep.name
version dep.version
scope 'provided'
}
}
}
name "stagemonitor ajax timer plugin"
}
}