This repository has been archived by the owner on Oct 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
/
build.gradle
118 lines (96 loc) · 3.39 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'io.spring.dependency-management'
apply from: 'http://tellurianring.com/projects/gradle-plugins/gradle-release/apply.groovy'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
}
dependencies {
compile "org.springframework.boot:spring-boot-starter:${springBootVersion}"
compile "javax.validation:validation-api:${validationApiVersion}"
//Deps for CAS client
compile "org.jasig.cas.client:cas-client-core:${casClientVersion}"
compile "org.jasig.cas.client:cas-client-support-saml:${casClientVersion}"
compileOnly "javax.servlet:javax.servlet-api:${servletApiVersion}"
//Configuration metadata generation - for a nice IDE intellisence support
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}"
}
//Configuration metadata generation
compileJava.dependsOn(processResources)
//turning off unacceptable Javadoc lint in JDK 8+ which prevents builds with "non-strict" HTML5 javadoc tags
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
javadoc {
classpath = configurations.compile + configurations.compileOnly
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = "javadoc"
from 'build/docs/javadoc'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = "sources"
}
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}
signing {
required { gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
wrapper {
gradleVersion = '4.10.1'
}
createReleaseTag.dependsOn uploadArchives
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: 'https://api.bintray.com/maven/uniconiam/maven/cas-client-autoconfig-support') {
authentication(userName: bintrayUsername, password: bintrayAPIKey)
}
pom.project {
name 'CAS client autoconfig support'
packaging 'jar'
description 'Annotation-based configuration support for Apereo CAS Java clients'
url 'https://github.com/Unicon/cas-client-autoconfig-support'
scm {
url 'scm:[email protected]:Unicon/cas-client-autoconfig-support.git'
connection 'scm:[email protected]:Unicon/cas-client-autoconfig-support.git'
developerConnection 'scm:[email protected]:Unicon/cas-client-autoconfig-support.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'dima767'
name 'Dmitriy Kopylenko'
}
}
}
}
}
}