forked from kaleidos/grails-postgresql-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
137 lines (117 loc) · 4 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
buildscript {
ext {
grailsVersion = project.grailsVersion
gormVersion = project.gormVersion
}
repositories {
mavenLocal()
maven { url 'https://repo.grails.org/grails/core' }
mavenCentral()
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath "org.grails.plugins:hibernate5:$gormVersion"
classpath 'net.saliman:gradle-cobertura-plugin:2.3.2'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.6.3'
}
}
plugins {
id 'com.jfrog.bintray' version '1.2'
}
version '5.2.0'
group 'org.grails.plugins'
apply plugin: 'maven-publish'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'org.grails.grails-plugin'
apply plugin: 'org.grails.grails-plugin-publish'
apply plugin: 'cobertura'
apply plugin: 'com.github.kt3k.coveralls'
ext {
gradleWrapperVersion = project.gradleWrapperVersion
grailsVersion = project.grailsVersion
gormVersion = project.gormVersion
hibernateVersion = project.hibernateVersion
}
sourceCompatibility = 1.7
targetCompatibility = 1.7
cobertura {
coverageExcludes = ['.*BootStrap.*', '.*test.*']
coverageFormats = ['html', 'xml']
}
jar {
exclude 'test/**'
exclude 'UrlMappings.groovy'
exclude 'error.gsp'
exclude 'messages.properties'
exclude 'hibernate/**'
exclude 'layouts/**'
exclude 'spring/**'
doFirst {
File pd = new File(buildDir, 'classes/main/META-INF/grails-plugin.xml')
pd.text = pd.text.readLines().findAll { !it.contains('<resource>test.') }.join('\n')
}
}
repositories {
mavenLocal()
jcenter()
maven { url 'https://repo.grails.org/grails/core' }
}
dependencyManagement {
imports {
mavenBom "org.grails:grails-bom:$grailsVersion"
}
applyMavenExclusions false
}
dependencies {
// Grails deps
compile 'org.springframework.boot:spring-boot-starter-logging'
compile 'org.springframework.boot:spring-boot-autoconfigure'
compile 'org.grails:grails-core'
compile 'org.springframework.boot:spring-boot-starter-actuator'
compile 'org.springframework.boot:spring-boot-starter-tomcat'
compile 'org.grails:grails-dependencies'
compile 'org.grails:grails-web-boot'
console 'org.grails:grails-console'
profile 'org.grails.profiles:web-plugin:3.1.0'
provided 'org.grails:grails-plugin-services'
provided 'org.grails:grails-plugin-domain-class'
testCompile 'org.grails:grails-plugin-testing'
testCompile 'org.grails.plugins:geb'
testRuntime 'org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1'
testRuntime 'net.sourceforge.htmlunit:htmlunit:2.18'
provided 'org.postgresql:postgresql:9.4.1211.jre7'
// plugins
provided 'org.grails.plugins:hibernate5'
// libraries
provided "org.hibernate:hibernate-core:$hibernateVersion"
provided("org.hibernate:hibernate-ehcache:$hibernateVersion") {
exclude group: 'net.sf.ehcache', module: 'ehcache'
}
}
task wrapper(type: Wrapper) {
gradleVersion = gradleWrapperVersion
}
bintray {
pkg {
userOrg = 'kaleidos'
name = 'postgresql-extensions'
issueTrackerUrl = 'https://github.com/kaleidosnet/grails-grails-postgresql-extensions/issues'
vcsUrl = 'https://github.com/kaleidosnet/grails-grails-postgresql-extensions/issues'
}
}
grailsPublish {
user = System.getenv("BINTRAY_USER") ?: ''
key = System.getenv("BINTRAY_KEY") ?: ''
userOrg = 'kaleidos'
repo = 'plugins'
websiteUrl = 'https://github.com/kaleidos/grails-postgresql-extensions'
license {
name = 'Apache-2.0'
}
issueTrackerUrl = 'https://github.com/kaleidosnet/grails-grails-postgresql-extensions/issues'
vcsUrl = 'https://github.com/kaleidos/grails-postgresql-extensions.git'
title = 'PostgreSQL Extensions'
desc = 'This is a grails plugin that provides hibernate user types to use Postgresql native types. It also provides new criterias to query this new native types.'
developers = [ivan: 'Iván López']
}