-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
162 lines (147 loc) · 5.83 KB
/
build.gradle
File metadata and controls
162 lines (147 loc) · 5.83 KB
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
158
159
160
161
162
buildscript {
repositories {
// mavenLocal()
mavenCentral()
maven { url "https://repo.gradle.org/gradle/libs-releases" }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "io.github.gradle-nexus:publish-plugin:2.0.0"
classpath "org.graceframework:grace-gradle-plugin:$graceVersion"
classpath "org.graceframework.plugins:asset-pipeline-gradle:6.0.0"
classpath "com.github.erdi:webdriver-binaries-gradle-plugin:3.2"
classpath "org.graceframework.plugins:database-migration:6.0.0"
}
}
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: "org.graceframework.asset-pipeline"
apply plugin: "com.github.erdi.webdriver-binaries"
apply plugin: "org.graceframework.grace-gsp"
apply from: 'gradle/docs.gradle'
repositories {
// mavenLocal()
mavenCentral()
maven {
name = 'Maven Central Portal Snapshots'
url = 'https://central.sonatype.com/repository/maven-snapshots/'
content {
includeGroup 'org.graceframework.plugins'
}
mavenContent {
snapshotsOnly()
}
}
}
configurations {
developmentOnly
}
grails {
plugins {
implementation project(":plugin")
}
}
dependencies {
developmentOnly('org.springframework.boot:spring-boot-devtools')
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-gsp"
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:dynamic-modules:$dynamicModulesVersion"
implementation "org.graceframework.plugins:scaffolding"
implementation "org.graceframework.plugins:events"
implementation "org.graceframework.plugins:fields"
implementation "org.graceframework.plugins:database-migration"
implementation "org.graceframework.plugins:hibernate"
profile "org.graceframework.profiles:web"
runtimeOnly "org.graceframework.plugins:asset-pipeline-plugin:6.0.0"
runtimeOnly "com.h2database:h2"
runtimeOnly "org.apache.tomcat:tomcat-jdbc"
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_17
targetCompatibility = JavaVersion.VERSION_17
}
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()
}
assets {
minifyJs = true
minifyCss = true
skipNonDigests = true
}
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')
}
nexusPublishing {
packageGroup = 'org.graceframework.plugins'
repositories {
sonatype {
def mavenUser = System.getenv("MAVEN_CENTRAL_USER") ?: project.hasProperty("mavenCentralUsername") ? project.mavenCentralUsername : ''
def mavenPass = System.getenv("MAVEN_CENTRAL_PASSWORD") ?: project.hasProperty("mavenCentralPassword") ? project.mavenCentralPassword : ''
nexusUrl = uri("https://ossrh-staging-api.central.sonatype.com/service/local/")
snapshotRepositoryUrl = uri("https://central.sonatype.com/repository/maven-snapshots/")
username = mavenUser
password = mavenPass
}
}
}