@@ -8,7 +8,7 @@ buildscript {
8
8
}
9
9
dependencies {
10
10
classpath " org.grails:grails-gradle-plugin:$grailsVersion "
11
- classpath ' com .jfrog.bintray.gradle:gradle-bintray-plugin:1.4 '
11
+ classpath " org .jfrog.buildinfo:build-info-extractor-gradle:latest.release "
12
12
}
13
13
}
14
14
@@ -26,13 +26,7 @@ apply plugin: "idea"
26
26
apply plugin : " org.grails.grails-plugin"
27
27
apply plugin : " org.grails.grails-plugin-publish"
28
28
apply plugin : " org.grails.grails-gsp"
29
- apply plugin : ' com.jfrog.bintray'
30
-
31
-
32
-
33
- // Used for publishing to central repository, remove if not needed
34
- // apply from: 'https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/grailsCentralPublishing.gradle'
35
- // apply from:'https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/bintrayPublishing.gradle'
29
+ apply plugin : " com.jfrog.artifactory"
36
30
37
31
ext {
38
32
grailsVersion = project. grailsVersion
41
35
42
36
repositories {
43
37
mavenLocal()
38
+ mavenCentral()
44
39
maven { url " https://repo.grails.org/grails/core" }
45
40
}
46
41
42
+ sourceCompatibility = targetCompatibility = 1.8
43
+
47
44
dependencies {
48
45
profile " org.grails.profiles:web-plugin"
49
46
@@ -80,69 +77,10 @@ task wrapper(type: Wrapper) {
80
77
gradleVersion = gradleWrapperVersion
81
78
}
82
79
83
- grailsPublish {
84
- user = System . getenv(' BINTRAY_USER' )
85
- key = System . getenv(' BINTRAY_KEY' )
86
- githubSlug = ' robertoschwald/grails-audit-logging-plugin'
87
- license {
88
- name = project. hasProperty(' license' ) ? [project. license] : [' Apache-2.0' ]
89
- }
90
- title = " Grails Audit-Logging Plugin"
91
- desc = " Grails Audit-Logging Plugin for Grails 3.3.x"
92
- developers = [robertoschwald :" Robert Oschwald" , longwa :" Aaron Long" , elkr :" Elmar Kretzer" ]
93
- }
80
+ apply from : " ${ rootProject.projectDir} /gradle/grailsPublish.gradle"
81
+ apply from : " ${ rootProject.projectDir} /gradle/artifactoryPublish.gradle"
82
+ apply from : " ${ rootProject.projectDir} /gradle/docs.gradle"
94
83
95
- asciidoctor {
96
- logDocuments true
97
- baseDirFollowsSourceDir()
98
84
99
- sourceDir = file(' src/docs' )
100
- sources {
101
- include ' index.adoc'
102
- }
103
85
104
- outputDir new File (buildDir, ' docs' )
105
86
106
- outputOptions {
107
- backends = [' html5' , ' pdf' , ' epub3' ]
108
- separateOutputDirs = false
109
- }
110
-
111
- attributes ' experimental' : ' true' ,
112
- ' source-highlighter' : ' coderay' ,
113
- ' compat-mode' : ' true' ,
114
- toc : ' left' ,
115
- icons : ' font' ,
116
- setanchors : ' true' ,
117
- idprefix : ' ' ,
118
- idseparator : ' -' ,
119
- toc2 : ' ' ,
120
- numbered : ' ' ,
121
- version : project. version,
122
- groupId : project. group,
123
- artifactId : project. name,
124
- revnumber : project. version,
125
- revdate : buildDate()
126
- }
127
-
128
- task docs (dependsOn : ' asciidoctor' ) {
129
- doLast {
130
- File dir = new File (buildDir, ' docs' )
131
- dir. mkdirs()
132
-
133
- [' pdf' , ' epub' ]. each { String ext ->
134
- File f = new File (dir, ' index.' + ext)
135
- if (f. exists()) {
136
- f. renameTo new File (dir, project. name + ' -' + project. version + ' .' + ext)
137
- }
138
- }
139
-
140
- new File (buildDir, ' docs/ghpages.html' ) << file(' src/docs/templates/index.tmpl' ). text. replaceAll(" @VERSION@" , project. version). replaceAll(" @DOCDATE@" , buildDate())
141
-
142
- copy {
143
- from ' src/docs'
144
- into new File (buildDir, ' docs' ). path
145
- include ' **/*.png'
146
- }
147
- }
148
- }
0 commit comments