@@ -16,39 +16,11 @@ buildscript {
1616}
1717
1818plugins {
19- id ' io.spring.dependency-management' version ' 0.5.2 .RELEASE'
19+ id ' io.spring.dependency-management' version ' 0.5.4 .RELEASE'
2020 id ' com.jfrog.bintray' version ' 1.2'
2121}
2222
23- version = file(' version.txt' ). text. trim()
24- group ' org.grails.plugins'
25-
26- apply plugin : ' maven-publish'
27- apply plugin : ' org.grails.grails-plugin'
28- apply plugin : ' org.asciidoctor.convert'
29-
30- apply from : ' https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/grailsCentralPublishing.gradle'
31- apply from : ' https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/bintrayPublishing.gradle'
32-
33- ext {
34- grailsVersion = project. grailsVersion
35- gradleWrapperVersion = project. gradleWrapperVersion
36- }
37-
38- sourceCompatibility = targetCompatibility = 1.7
39-
40- repositories {
41- mavenLocal()
42- mavenCentral()
43- maven { url ' https://repo.grails.org/grails/core' }
44- }
45-
46- dependencyManagement {
47- imports {
48- mavenBom " org.grails:grails-bom:$grailsVersion "
49- }
50- applyMavenExclusions false
51- }
23+ apply from : ' gradle/plugin.gradle'
5224
5325dependencies {
5426
@@ -62,34 +34,3 @@ dependencies {
6234
6335 compile ' org.hibernate:hibernate-core:4.3.10.Final'
6436}
65-
66- asciidoctor {
67- separateOutputDirs = false
68- sourceDir = file(' src/docs' )
69- sources {
70- include ' index.adoc'
71- }
72- outputDir file(' build/docs' )
73- backends ' html5' , ' pdf' , ' epub3'
74- attributes ' source-highlighter' : ' prettify' ,
75- icons : ' font' ,
76- setanchors : ' true' ,
77- idprefix : ' ' ,
78- idseparator : ' -' ,
79- toc2 : ' ' ,
80- numbered : ' ' ,
81- revnumber : project. version
82- }
83-
84- task docs (dependsOn : asciidoctor) << {
85- File dir = file(' build/docs' )
86-
87- [' pdf' , ' epub' ]. each { String ext ->
88- File f = new File (dir, ' index.' + ext)
89- if (f. exists()) {
90- f. renameTo new File (dir, project. name + ' -' + project. version + ' .' + ext)
91- }
92- }
93-
94- file(' build/docs/ghpages.html' ) << file(' src/docs/index.tmpl' ). text. replaceAll(' @VERSION@' , project. version)
95- }
0 commit comments