-
Notifications
You must be signed in to change notification settings - Fork 104
/
build.gradle
91 lines (77 loc) · 2.6 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
buildscript {
repositories {
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsGradlePluginVersion"
}
}
plugins {
id 'org.asciidoctor.jvm.convert' version '3.3.2'
id 'java-library'
}
version project.projectVersion
group 'org.grails.plugins'
apply plugin: 'org.grails.grails-plugin'
apply plugin: 'org.grails.grails-gsp'
apply plugin: "org.grails.grails-doc"
apply plugin: "org.grails.internal.grails-plugin-publish"
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
repositories {
mavenCentral()
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
compileOnly 'org.springframework.boot:spring-boot-starter-logging'
compileOnly "org.springframework.boot:spring-boot-starter-actuator"
compileOnly "org.springframework.boot:spring-boot-autoconfigure"
compileOnly "org.springframework.boot:spring-boot-starter-tomcat"
compileOnly "org.grails:grails-plugin-controllers"
compileOnly "org.grails.plugins:gsp:${grailsVersion}"
testImplementation "org.grails:grails-web-testing-support"
testImplementation "org.grails:grails-gorm-testing-support"
testImplementation 'org.javassist:javassist:3.29.0-GA'
testImplementation "org.apache.groovy:groovy-dateutil"
testImplementation("org.jodd:jodd-wot:$joddWotVersion") {
exclude module: 'slf4j-api'
exclude module: 'asm'
}
testRuntimeOnly "net.bytebuddy:byte-buddy:$byteBuddyVersion"
testImplementation "org.grails:grails-datastore-gorm-hibernate5:$gormHibernate5Version"
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
}
grailsPublish {
userOrg = "grails"
githubSlug = 'gpc/fields'
license {
name = 'Apache-2.0'
}
title = "Grails Fields Plugin"
desc = "Fields integration for Grails"
developers = [robfletcher: 'Rob Fletcher', graemerocher: "Graeme Rocher", sdelamo: "Sergio del Amo", sbglasius: 'Søren Berg Glasius']
}
asciidoctor {
resources {
from('src/docs/images')
into "./images"
}
sources {
include 'index.adoc'
}
attributes 'experimental': 'true',
'compat-mode': 'true',
'toc': 'left',
'icons': 'font',
'version': project.projectVersion,
'sourcedir': 'src/main/groovy'
baseDirFollowsSourceDir()
outputDir = "${buildDir}/asciidoc"
}
tasks.register('apiDocs', Copy) {
from groovydoc.outputs.files
into file("${buildDir}/asciidoc/api")
}
asciidoctor.dependsOn(apiDocs)