-
Notifications
You must be signed in to change notification settings - Fork 28
/
build.gradle
104 lines (87 loc) · 3.11 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
buildscript {
ext {
grailsVersion = project.grailsVersion
}
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
maven { url 'https://repo.grails.org/grails/core' }
jcenter()
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath "org.asciidoctor:asciidoctor-gradle-jvm:3.1.0"
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:latest.release"
}
}
plugins {
id 'io.spring.dependency-management' version '0.5.2.RELEASE'
id 'com.jfrog.bintray' version '1.2'
}
version = file('version.txt').text.trim()
group 'org.grails.plugins'
apply plugin: 'org.grails.grails-plugin'
apply plugin: 'org.grails.grails-plugin-publish'
apply plugin: "org.asciidoctor.jvm.convert"
apply plugin: "com.jfrog.artifactory"
ext {
grailsVersion = project.grailsVersion
}
sourceCompatibility = targetCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://repo.grails.org/grails/core' }
}
dependencyManagement {
imports {
mavenBom "org.grails:grails-bom:$grailsVersion"
}
applyMavenExclusions false
}
dependencies {
provided 'javax.servlet:javax.servlet-api:3.1.0'
provided 'org.grails:grails-dependencies'
provided 'org.grails:grails-web-boot'
compile 'org.grails.plugins:spring-security-core:4.0.0'
compile "org.springframework.security:spring-security-ldap:$springSecurityVersion", {
['apacheds-core', 'apacheds-core-entry', 'apacheds-protocol-ldap', 'apacheds-protocol-shared',
'apacheds-server-jndi', 'commons-logging', 'fest-assert', 'jcl-over-slf4j', 'junit',
'ldapsdk', 'logback-classic', 'mockito-core', 'shared-ldap', 'slf4j-api', 'spring-beans',
'spring-context', 'spring-core', 'spring-ldap-core', 'spring-security-core',
'spring-test', 'spring-tx'].each { exclude module: it }
}
compile "org.springframework.ldap:spring-ldap-core:$springLdapCoreVersion", {
['commons-lang', 'gsbase', 'junit', 'mockito-core', 'powermock-api-mockito',
'powermock-api-support', 'powermock-core', 'powermock-module-junit4',
'powermock-module-junit4-common', 'powermock-reflect', 'slf4j-log4j12', 'spring-beans',
'spring-core', 'spring-data-commons', 'spring-test', 'spring-tx'].each { exclude module: it }
}
console 'org.grails:grails-console'
testCompile "org.grails:grails-web-testing-support"
}
apply from: "${rootProject.projectDir}/gradle/grailsPublish.gradle"
apply from: "${rootProject.projectDir}/gradle/artifactoryPublish.gradle"
apply from: "${rootProject.projectDir}/gradle/testVerbose.gradle"
asciidoctor {
sources {
include 'index.adoc'
}
outputDir file('build/docs')
attributes 'source-highlighter': 'prettify',
icons: 'font',
setanchors: 'true',
idprefix: '',
idseparator: '-',
toc2: '',
numbered: '',
revnumber: project.version
}
task docs(dependsOn: asciidoctor) {
group 'documentation'
doLast() {
File dir = file('build/docs')
file('build/docs/ghpages.html') << file('src/docs/asciidoc/index.tmpl').text.replaceAll('@VERSION@', project.version)
}
}