-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
133 lines (110 loc) · 2.98 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
// Gdsflex Spring Security
description = 'Gdsflex Spring Security support'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'signing'
group = 'org.graniteds.grails'
version = granitedsGrailsVersion
description = 'Gdsflex Spring Security'
repositories {
mavenLocal()
mavenCentral()
}
configurations {
deployerJars
}
dependencies {
compile 'org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:1.0.2.Final'
compile 'org.graniteds:granite-server-core:3.1.1.GA'
compile 'org.graniteds:granite-server-spring:3.1.1.GA'
compile 'org.springframework.security:spring-security-web:3.2.5.RELEASE'
}
compileJava {
sourceCompatibility=1.6
targetCompatibility=1.6
}
jar {
baseName = 'granite-grails-springsecurity'
}
javadoc {
title "${project.description} API Documentation"
configure(options) {
version = true
author = true
use = true
windowTitle = "${project.description} API Documentation"
docTitle = "${project.description} API Documentation"
}
}
task sourcesJar(type: Jar, dependsOn: 'classes') {
baseName = 'granite-grails-springsecurity'
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: 'javadoc') {
baseName = 'granite-grails-springsecurity'
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
task wrapper(type: Wrapper) {
gradleVersion = '1.12'
}
signing {
required {
gradle.taskGraph.hasTask('uploadArchives')
}
sign configurations.archives
}
install {
repositories {
mavenInstaller {
// Generated dependencies are not suitable for maven pom, remove everything for now
pom.whenConfigured { pom -> pom.dependencies.clear() }
}
}
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment {
MavenDeployment deployment -> signing.signPom(deployment)
}
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: sonatypeOssUserName, password: sonatypeOssPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: sonatypeOssUserName, password: sonatypeOssPassword)
}
pom.project {
name 'Gdsflex Spring Security'
description project.description
url 'http://www.graniteds.org'
scm {
url 'scm:[email protected]:graniteds/graniteds-grails-springsecurity.git'
connection 'scm:[email protected]:graniteds/graniteds-grails-springsecurity.git'
developerConnection 'scm:[email protected]:graniteds/graniteds-grails-springsecurity.git'
}
licenses {
license {
name 'Apache License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0'
distribution 'repo'
}
}
developers {
developer {
id 'wdrai'
name 'William Drai'
}
}
}
// Generated dependencies are not suitable for maven pom, remove everything for now
pom.whenConfigured { pom -> pom.dependencies.clear() }
}
}
}