1+ /*
2+ * Licensed to the Apache Software Foundation (ASF) under one
3+ * or more contributor license agreements. See the NOTICE file
4+ * distributed with this work for additional information
5+ * regarding copyright ownership. The ASF licenses this file
6+ * to you under the Apache License, Version 2.0 (the
7+ * "License"); you may not use this file except in compliance
8+ * with the License. You may obtain a copy of the License at
9+ *
10+ * https://www.apache.org/licenses/LICENSE-2.0
11+ *
12+ * Unless required by applicable law or agreed to in writing,
13+ * software distributed under the License is distributed on an
14+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+ * KIND, either express or implied. See the License for the
16+ * specific language governing permissions and limitations
17+ * under the License.
18+ */
19+ plugins {
20+ id ' org.apache.grails.buildsrc.properties'
21+ id ' org.apache.grails.buildsrc.compile'
22+ }
23+
24+ version = ' 0.1'
25+ group = ' compilestatictests'
26+
27+ // Not Published to Gradle Plugin Portal
28+ apply plugin : " org.apache.grails.gradle.grails-web"
29+ apply plugin : " org.apache.grails.gradle.grails-gsp"
30+ apply plugin : " cloud.wondrify.asset-pipeline"
31+
32+ group = " com.example.compilestatic"
33+
34+ dependencies {
35+ profile " org.apache.grails.profiles:web"
36+ testAndDevelopmentOnly platform(project(' :grails-bom' ))
37+ testAndDevelopmentOnly " org.webjars.npm:bootstrap"
38+ testAndDevelopmentOnly " org.webjars.npm:bootstrap-icons"
39+ testAndDevelopmentOnly " org.webjars.npm:jquery"
40+
41+ implementation platform(project(' :grails-bom' ))
42+ implementation " org.apache.grails:grails-core"
43+ implementation " org.apache.grails:grails-data-hibernate5"
44+ implementation " org.apache.grails:grails-databinding"
45+ implementation " org.apache.grails:grails-events"
46+ implementation " org.apache.grails:grails-gsp"
47+ implementation " org.apache.grails:grails-interceptors"
48+ implementation " org.apache.grails:grails-layout"
49+ implementation " org.apache.grails:grails-logging"
50+ implementation " org.apache.grails:grails-rest-transforms"
51+ implementation " org.apache.grails:grails-scaffolding"
52+ implementation " org.apache.grails:grails-services"
53+ implementation " org.apache.grails:grails-url-mappings"
54+ implementation " org.apache.grails:grails-web-boot"
55+ implementation " org.springframework.boot:spring-boot-autoconfigure"
56+ implementation " org.springframework.boot:spring-boot-starter"
57+ implementation " org.springframework.boot:spring-boot-starter-actuator"
58+ implementation " org.springframework.boot:spring-boot-starter-logging"
59+ implementation " org.springframework.boot:spring-boot-starter-tomcat"
60+ implementation " org.springframework.boot:spring-boot-starter-validation"
61+ console " org.apache.grails:grails-console"
62+ runtimeOnly " cloud.wondrify:asset-pipeline-grails"
63+ runtimeOnly " com.h2database:h2"
64+ runtimeOnly " com.zaxxer:HikariCP"
65+ runtimeOnly " org.fusesource.jansi:jansi"
66+ integrationTestImplementation testFixtures(" org.apache.grails:grails-geb" )
67+ testImplementation " org.apache.grails:grails-testing-support-datamapping"
68+ testImplementation " org.apache.grails:grails-testing-support-web"
69+ testImplementation " org.spockframework:spock-core"
70+ }
71+
72+
73+ // option to switch off invoke dynamic
74+ tasks. withType(GroovyCompile ). configureEach {
75+ groovyOptions. with {
76+ optimizationOptions. indy = true
77+ }
78+ }
79+
80+ apply {
81+ from rootProject. layout. projectDirectory. file(' gradle/functional-test-config.gradle' )
82+ from rootProject. layout. projectDirectory. file(' gradle/test-webjar-asset-config.gradle' )
83+ from rootProject. layout. projectDirectory. file(' gradle/grails-extension-gradle-config.gradle' )
84+ }
0 commit comments