Getting closer. The error I get now and my build.gradle are below.
What does the
compile name: 'struts2-core'
do? I have a library file struts2-core-2.2.1.jar, but that is not what
compiles my code. It just belongs in the javac classpath.
:compileJava
:: problems summary ::
:::: WARNINGS
module not found: #struts2-core;
==== clientModule: tried
==== internal-repository: tried
==== localRepository: tried
-- artifact #struts2-core;!struts2-core.jar:
C:\dean\src\projects\struts2-examples\Struts2HW-Part3\StrutsHelloWorld
\lib/struts2-core.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: #struts2-core;: not found
::::::::::::::::::::::::::::::::::::::::::::::
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':compile':
- unresolved dependency: #struts2-core;: not found
* Try:
Run with -s or -d option to get more details. Run with -S option to get the
full
(very verbose) stacktrace.
BUILD FAILED
apply plugin: 'war'
dependencies {
compile name: 'struts2-core'
}
repositories {
flatDir name: 'localRepository', dirs: 'lib'
}
sourceSets.main.java.srcDirs = ['src']
sourceSets.main.resources.srcDirs = ['src']
webAppDirName = "WebContent"
// compile name: 'struts2-core'
// runtime name: 'spring-core'
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Example-or-tutorial-of-migrating-from-Ant-to-Gradle-tp2852129p2853196.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email