forked from grails/grails-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use Nebula Extra Configurations plugin for gradle provided/optional c…
…onfiguration - additional changes for master branch
- Loading branch information
Showing
8 changed files
with
18 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,18 @@ | ||
import org.apache.tools.ant.filters.ReplaceTokens | ||
|
||
configurations { | ||
optional | ||
} | ||
dependencies { | ||
|
||
compile( "org.codehaus.groovy:groovy-xml:$groovyVersion" ){ | ||
ext.notInPom = true | ||
} | ||
provided ( "org.codehaus.groovy:groovy-xml:$groovyVersion" ) | ||
compile "org.yaml:snakeyaml:1.14" | ||
|
||
optional ("org.fusesource.jansi:jansi:$jansiVersion") | ||
optional("jline:jline:$jlineVersion") | ||
optional("net.java.dev.jna:jna:$jnaVersion") | ||
provided ("org.fusesource.jansi:jansi:$jansiVersion") | ||
provided("jline:jline:$jlineVersion") | ||
provided("net.java.dev.jna:jna:$jnaVersion") | ||
|
||
// Ant | ||
compile "org.codehaus.groovy:groovy-ant:$groovyVersion" | ||
|
||
} | ||
|
||
|
||
sourceSets { | ||
main { | ||
compileClasspath += files(configurations.optional) | ||
} | ||
test { | ||
compileClasspath += files(configurations.optional) | ||
runtimeClasspath += files(configurations.optional) | ||
} | ||
} | ||
javadoc.classpath += files(configurations.optional) | ||
|
||
processResources { | ||
inputs.property "version", version | ||
filter(ReplaceTokens, tokens:[version:version]) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,16 @@ | ||
configurations { | ||
optional | ||
} | ||
dependencies { | ||
compile project(':grails-plugin-mimetypes'), | ||
project(':grails-plugin-controllers'), | ||
project(':grails-validation') | ||
|
||
// These dependencies are not required, but due to a Groovy compiler bug they are loaded by Groovy and hence | ||
// have to be on the path for compilation even though they shouldn't be | ||
optional "org.apache.ant:ant:${antVersion}" | ||
optional "jline:jline:$jlineVersion" | ||
optional "org.fusesource.jansi:jansi:$jansiVersion" | ||
optional("org.codehaus.gant:gant_groovy1.8:${gantVersion}") { | ||
provided "org.apache.ant:ant:${antVersion}" | ||
provided "jline:jline:$jlineVersion" | ||
provided "org.fusesource.jansi:jansi:$jansiVersion" | ||
provided("org.codehaus.gant:gant_groovy1.8:${gantVersion}") { | ||
exclude group:'commons-cli', module:'commons-cli' | ||
exclude group:'org.apache.ant', module:'ant' | ||
} | ||
optional "org.apache.ivy:ivy:${ivyVersion}" | ||
|
||
provided "org.apache.ivy:ivy:${ivyVersion}" | ||
} | ||
|
||
sourceSets { | ||
main { | ||
compileClasspath += files(configurations.optional) | ||
} | ||
test { | ||
compileClasspath += files(configurations.optional) | ||
runtimeClasspath += files(configurations.optional) | ||
} | ||
} | ||
javadoc.classpath += files(configurations.optional) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,6 @@ | ||
configurations { | ||
optional | ||
} | ||
dependencies { | ||
compile "commons-lang:commons-lang:$commonsLangVersion" | ||
compile project(":grails-web") | ||
|
||
optional "org.codehaus.groovy:groovy-ant:$groovyVersion" | ||
} | ||
|
||
sourceSets { | ||
main { | ||
compileClasspath += files(configurations.optional) | ||
} | ||
test { | ||
compileClasspath += files(configurations.optional) | ||
runtimeClasspath += files(configurations.optional) | ||
} | ||
provided "org.codehaus.groovy:groovy-ant:$groovyVersion" | ||
} | ||
javadoc.classpath += files(configurations.optional) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters