Skip to content

Commit 56b5175

Browse files
committed
moving directory-watcher dependency to bom and loads onto classpath on bootRun runtime only
1 parent 339595f commit 56b5175

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ ext {
4848
spockVersion = '1.0-groovy-2.4'
4949
springBootVersion = "1.4.6.RELEASE"
5050
springLoadedVersion = "1.2.8.RELEASE"
51+
directoryWatcherVersion = "0.3.0"
5152
springLoadedCommonOptions = "-Xverify:none -Dspringloaded.synchronize=true -Djdk.reflect.allowGetCallerClass=true"
5253
springVersion = "4.3.9.RELEASE"
5354
ehcacheVersion = "2.4.6"

grails-bom/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ publishing {
157157
}
158158
}
159159

160+
mkp.dependency {
161+
mkp.groupId 'io.methvin'
162+
mkp.artifactId "directory-watcher"
163+
mkp.version(directoryWatcherVersion) //0.3.0
164+
}
165+
160166
mkp.dependency {
161167
mkp.groupId 'org.springframework'
162168
mkp.artifactId "springloaded"

grails-bootstrap/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ dependencies {
44
compile ( "org.codehaus.groovy:groovy-xml:$groovyVersion" )
55
compile ( "org.codehaus.groovy:groovy-templates:$groovyVersion" )
66
compile "org.yaml:snakeyaml:1.14"
7-
compile "io.methvin:directory-watcher:0.3.0" //TODO: Needs JNA to run
8-
7+
8+
compileOnly("io.methvin:directory-watcher:0.3.0")
99
compileOnly("org.fusesource.jansi:jansi:$jansiVersion")
1010
compileOnly("jline:jline:$jlineVersion")
1111
compileOnly("net.java.dev.jna:jna:$jnaVersion")

grails-gradle-plugin/src/main/groovy/org/grails/gradle/plugin/core/GrailsGradlePlugin.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ class GrailsGradlePlugin extends GroovyPlugin {
474474
}
475475
project.dependencies {
476476
agent "org.springframework:springloaded"
477+
runtime "io.methvin:directory-watcher"
477478
}
478479
project.afterEvaluate(new AgentTasksEnhancer())
479480
}

0 commit comments

Comments
 (0)