-
Notifications
You must be signed in to change notification settings - Fork 27
/
build.gradle
92 lines (78 loc) · 2.05 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
buildscript {
repositories {
maven { url "http://repo.springsource.org/plugins-release" }
}
dependencies {
classpath("org.springframework.build.gradle:propdeps-plugin:0.0.4")
}
}
ext {
springVersion = '3.1.1.RELEASE'
artifactRepoBase = "https://repo.fugu.io/artifactory/"
}
configure(allprojects) { project ->
apply plugin: 'propdeps'
apply plugin: 'maven-publish'
group = "net.rossillo.mvc.cache"
version = '1.1.1' + (project.hasProperty('release') && project.ext.release ? '-RELEASE' : '-SNAPSHOT')
}
configure(subprojects) { project ->
apply plugin: 'java'
apply plugin: 'eclipse'
sourceCompatibility=1.6
targetCompatibility=1.6
repositories {
maven { url 'https://repo.springsource.org/release' }
maven { url 'https://repo1.maven.org/maven2/'}
}
dependencies {
compile "org.springframework:spring-context:${springVersion}"
compile "org.springframework:spring-webmvc:${springVersion}"
provided "javax.servlet:servlet-api:2.5"
testCompile "junit:junit:4.9"
testCompile "org.springframework:spring-test:${springVersion}"
}
jar {
manifest.attributes['Specification-Title'] = 'Spring MVC Cache Control'
manifest.attributes['Implementation-Title'] = project.name
manifest.attributes['Implementation-Version'] = project.version
}
}
project('spring-mvc-cache-control') {
description = "Spring MVC Cache Control"
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
task apiJar(type: Jar) {
classifier "javadoc"
from javadoc
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourceJar {
classifier "sources"
}
artifact apiJar {
classifier "javadoc"
}
}
}
repositories {
maven {
url "$artifactRepoBase/${project.version.endsWith('SNAPSHOT') ? 'libs-snapshot-local' : 'libs-release-local' }"
credentials {
username = project.ext.repoUser
password = project.ext.repoPass
}
}
}
}
}
project('spring-mvc-cache-control-demo') {
apply plugin: 'war'
dependencies {
compile project(':spring-mvc-cache-control')
}
}