@@ -2,13 +2,9 @@ import java.time.Instant
22import java.time.ZoneOffset
33import java.time.format.DateTimeFormatter
44
5- plugins {
6- id " com.adarshr.test-logger" version " 4.0.0"
7- id " maven-publish"
8- id ' org.asciidoctor.jvm.convert'
9- id ' org.apache.grails.gradle.grails-plugin'
10- id ' org.apache.grails.gradle.grails-publish'
11- }
5+ apply plugin : ' groovy'
6+ apply plugin : ' org.apache.grails.gradle.grails-plugin'
7+ apply plugin : ' org.apache.grails.gradle.grails-publish'
128
139group " org.grails.plugins"
1410
@@ -44,23 +40,7 @@ dependencies {
4440java {
4541 withSourcesJar()
4642 withJavadocJar()
47- sourceCompatibility = JavaVersion . toVersion(" 17" )
48- }
49-
50- asciidoctor {
51- baseDir file(' src/main/asciidoc' )
52- sourceDir file(' src/main/asciidoc' )
53- outputDir project. layout. buildDirectory. file(" docs" )
54- options doctype : ' book'
55- attributes ' source-highlighter' : ' coderay' ,
56- toc : ' left' ,
57- toclevels : ' 2' ,
58- ' toc-title' : ' Table of Contents' ,
59- icons : ' font' ,
60- id : project. name + ' :' + project. version,
61- idprefix : ' ' ,
62- idseparator : ' -' ,
63- version : version
43+ sourceCompatibility = JavaVersion . toVersion(javaVersion)
6444}
6545
6646tasks. withType(Test ). configureEach {
@@ -69,9 +49,6 @@ tasks.withType(Test).configureEach {
6949 events " failed"
7050 exceptionFormat " full"
7151 }
72- testlogger {
73- theme ' mocha'
74- }
7552}
7653groovydoc {
7754 excludes = [' **/*GrailsPlugin.groovy' , ' **/Application.groovy' ]
@@ -83,7 +60,6 @@ groovydoc {
8360 link(' http://gorm.grails.org/latest/hibernate/api/' , ' grails.gorm' , ' grails.orm' , ' org.grails.datastore' , ' org.grails.orm' )
8461}
8562
86-
8763grailsPublish {
8864 githubSlug = ' grails-plugins/i18n-enums'
8965 license {
@@ -98,3 +74,7 @@ grailsPublish {
9874 bkoehm : ' Brian Koehmstedt'
9975 ]
10076}
77+
78+ compileJava. options. release = javaVersion. toInteger()
79+
80+ apply from : layout. projectDirectory. file(' gradle/docs-config.gradle' )
0 commit comments