forked from grails-plugins/cache-headers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
94 lines (79 loc) · 2.8 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
93
94
buildscript {
repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath "org.asciidoctor:asciidoctor-gradle-plugin:$asciidoctorGradlePluginVersion"
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.4.0"
}
}
def versionTxt = file('version.txt')
version versionTxt.exists() ? versionTxt.text.trim() : '0.1'
group "org.grails.plugins"
apply plugin:"eclipse"
apply plugin:"idea"
apply plugin:"org.grails.grails-plugin"
apply plugin:"org.grails.grails-plugin-publish"
apply from: "${rootProject.projectDir}/gradle/docs.gradle"
apply plugin: 'org.asciidoctor.convert'
apply plugin: "com.jfrog.artifactory"
repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
provided "org.springframework.boot:spring-boot-starter-logging"
provided "org.springframework.boot:spring-boot-starter-actuator"
provided "org.springframework.boot:spring-boot-autoconfigure"
provided "org.springframework.boot:spring-boot-starter-tomcat"
provided "org.grails:grails-web-boot"
provided "org.grails:grails-dependencies"
testCompile "org.grails:grails-plugin-testing"
console "org.grails:grails-console"
profile "org.grails.profiles:web-plugin"
}
bootRun {
jvmArgs('-Dspring.output.ansi.enabled=always')
addResources = true
}
// enable if you wish to package this plugin as a standalone application
bootRepackage.enabled = false
grailsPublish {
user = System.getenv('BINTRAY_USER') ?: project.bintrayUser
key = System.getenv('BINTRAY_KEY') ?: project.bintrayKey
portalUser = System.getenv('GRAILS_PORTAL_USER') ?: project.grailsPortalUser
portalPassword = System.getenv('GRAILS_PORTAL_PASSWORD') ?: project.grailsPortalPassword
repo = 'plugins'
userOrg = "grails"
githubSlug = 'grails-plugins/cache-headers'
license {
name = 'Apache-2.0'
}
title = 'Grails Cache Headers Plugin'
desc = 'Improve your application performance with browser caching, with easy ways to set caching headers\n' +
'in controller responses'
developers = [sdelamo: 'Sergio del Amo']
}
artifactory {
contextUrl = 'http://oss.jfrog.org'
publish {
repository {
repoKey = 'oss-snapshot-local'
username = System.getenv("BINTRAY_USER") ?: project.bintrayUser
password = System.getenv("BINTRAY_KEY") ?: project.bintrayKey
}
defaults {
publications('maven')
}
}
}
task docs {
dependsOn 'asciidoctor'
}
jar {
exclude "*TestController**"
}
apply from: "${rootProject.projectDir}/gradle/integrationTestVerbose.gradle"
apply from: "${rootProject.projectDir}/gradle/testVerbose.gradle"