@@ -8,7 +8,7 @@ buildscript {
88 }
99 dependencies {
1010 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 "
1212 }
1313}
1414
@@ -26,13 +26,7 @@ apply plugin: "idea"
2626apply plugin : " org.grails.grails-plugin"
2727apply plugin : " org.grails.grails-plugin-publish"
2828apply 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"
3630
3731ext {
3832 grailsVersion = project. grailsVersion
4135
4236repositories {
4337 mavenLocal()
38+ mavenCentral()
4439 maven { url " https://repo.grails.org/grails/core" }
4540}
4641
42+ sourceCompatibility = targetCompatibility = 1.8
43+
4744dependencies {
4845 profile " org.grails.profiles:web-plugin"
4946
@@ -80,69 +77,10 @@ task wrapper(type: Wrapper) {
8077 gradleVersion = gradleWrapperVersion
8178}
8279
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"
9483
95- asciidoctor {
96- logDocuments true
97- baseDirFollowsSourceDir()
9884
99- sourceDir = file(' src/docs' )
100- sources {
101- include ' index.adoc'
102- }
10385
104- outputDir new File (buildDir, ' docs' )
10586
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