-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
157 lines (143 loc) · 6.01 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
buildscript {
repositories {
mavenCentral()
maven { url "https://s01.oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://repo.gradle.org/gradle/libs-releases" }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "io.github.gradle-nexus:publish-plugin:1.3.0"
classpath "org.graceframework:grace-gradle-plugin:$graceVersion"
classpath "com.github.erdi:webdriver-binaries-gradle-plugin:3.2"
classpath "org.graceframework.plugins:asset-pipeline-gradle:5.2.6"
}
}
group "grace.demos"
version projectVersion
apply plugin: "eclipse"
apply plugin: "idea"
apply plugin: "war"
apply plugin: "io.github.gradle-nexus.publish-plugin"
apply plugin: "org.graceframework.grace-web"
apply plugin: "com.github.erdi.webdriver-binaries"
apply plugin: "org.graceframework.asset-pipeline"
apply plugin: "org.graceframework.grace-gsp"
repositories {
mavenCentral()
maven { url "https://s01.oss.sonatype.org/content/repositories/snapshots/" }
}
configurations {
developmentOnly
}
grails {
plugins {
implementation project(":plugins:stimulus")
implementation project(":plugins:turbo")
}
}
dependencies {
developmentOnly('org.springframework.boot:spring-boot-devtools')
compileOnly "io.micronaut:micronaut-inject-groovy"
console "org.graceframework:grace-console"
implementation "org.springframework.boot:spring-boot-starter-logging"
implementation "org.springframework.boot:spring-boot-starter-validation"
implementation "org.springframework.boot:spring-boot-autoconfigure"
implementation "org.graceframework:grace-core"
implementation "org.springframework.boot:spring-boot-starter-actuator"
implementation "org.springframework.boot:spring-boot-starter-tomcat"
implementation "org.graceframework:grace-boot"
implementation "org.graceframework:grace-logging"
implementation "org.graceframework:grace-plugin-controllers"
implementation "org.graceframework:grace-plugin-codecs"
implementation "org.graceframework:grace-plugin-databinding"
implementation "org.graceframework:grace-plugin-datasource"
implementation "org.graceframework:grace-plugin-domain-class"
implementation "org.graceframework:grace-plugin-i18n"
implementation "org.graceframework:grace-plugin-interceptors"
implementation "org.graceframework:grace-plugin-management"
implementation "org.graceframework:grace-plugin-rest"
implementation "org.graceframework:grace-plugin-services"
implementation "org.graceframework:grace-plugin-url-mappings"
implementation "org.graceframework.plugins:cache"
implementation "org.graceframework.plugins:async"
implementation "org.graceframework.plugins:scaffolding"
implementation "org.graceframework.plugins:fields"
implementation "org.graceframework.plugins:events"
implementation "org.graceframework.plugins:hibernate5"
implementation "org.hibernate:hibernate-core:5.6.15.Final"
implementation "org.graceframework:grace-plugin-gsp"
profile "org.graceframework.profiles:web"
runtimeOnly "com.h2database:h2"
runtimeOnly "org.apache.tomcat:tomcat-jdbc"
runtimeOnly "jakarta.xml.bind:jakarta.xml.bind-api:2.3.3"
runtimeOnly "jakarta.el:jakarta.el-api:3.0.3"
runtimeOnly "org.glassfish:jakarta.el:3.0.4"
runtimeOnly "org.graceframework.plugins:asset-pipeline-plugin:5.2.6"
testImplementation "io.micronaut:micronaut-inject-groovy"
testImplementation "org.graceframework:grace-test-support"
testImplementation "org.mockito:mockito-core"
testImplementation "org.graceframework.plugins:geb"
testImplementation "org.seleniumhq.selenium:selenium-remote-driver:4.2.2"
testImplementation "org.seleniumhq.selenium:selenium-api:4.2.2"
testImplementation "org.seleniumhq.selenium:selenium-support:4.2.2"
testRuntimeOnly "org.seleniumhq.selenium:selenium-chrome-driver:4.2.2"
testRuntimeOnly "org.seleniumhq.selenium:selenium-firefox-driver:4.2.2"
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
bootRun {
ignoreExitValue true
jvmArgs(
'-Dspring.output.ansi.enabled=always',
'-noverify',
'-XX:TieredStopAtLevel=1',
'-Xmx1024m')
sourceResources sourceSets.main
String springProfilesActive = 'spring.profiles.active'
systemProperty springProfilesActive, System.getProperty(springProfilesActive)
}
tasks.withType(GroovyCompile) {
configure(groovyOptions) {
forkOptions.jvmArgs = ['-Xmx1024m']
}
}
tasks.withType(Test) {
useJUnitPlatform()
}
webdriverBinaries {
chromedriver {
version = '122.0.6260.0'
fallbackTo32Bit = true
}
geckodriver '0.33.0'
}
tasks.withType(Test) {
useJUnitPlatform()
systemProperty "geb.env", System.getProperty('geb.env')
systemProperty "geb.build.reportsDir", reporting.file("geb/integrationTest")
systemProperty 'webdriver.chrome.driver', System.getProperty('webdriver.chrome.driver')
systemProperty 'webdriver.gecko.driver', System.getProperty('webdriver.gecko.driver')
}
assets {
minifyJs = false
minifyCss = false
enableDigests = false
enableGzip = false
enableSourceMaps = false
}
nexusPublishing {
repositories {
sonatype {
def ossUser = System.getenv("SONATYPE_USERNAME") ?: project.hasProperty("sonatypeOssUsername") ? project.sonatypeOssUsername : ''
def ossPass = System.getenv("SONATYPE_PASSWORD") ?: project.hasProperty("sonatypeOssPassword") ? project.sonatypeOssPassword : ''
def ossStagingProfileId = System.getenv("SONATYPE_STAGING_PROFILE_ID") ?: project.hasProperty("sonatypeOssStagingProfileId") ? project.sonatypeOssStagingProfileId : ''
nexusUrl = uri("https://s01.oss.sonatype.org/service/local/")
snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
username = ossUser
password = ossPass
stagingProfileId = ossStagingProfileId
}
}
}