Multi module grails project: dependant jar is empty

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Multi module grails project: dependant jar is empty

smurfs
This post has NOT been accepted by the mailing list yet.
Hi Luke,

I tried a sample multi-module grails project as mentioned in [http://gr8conf.eu/Presentations/Building-Grails-apps-w-Gradle] But, instead of java project , i created a grails plugin[testPlugin] and added that as dependency in the grails application[testApp].

When i opened the war file, i was able to see the grails plugin as jar in the lib directory.But, it has only the manifest file and does not have any other files from the grails plugin project.
Structure is :

SampleProject
|___ testApp
|___testPlugin

build.gradle

settings

Please find the configurations below:

settings
----------
include ':testPlugin',':testApp'

Build.gradle of SanpleProject

allprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'base'
}
subprojects {
repositories {
mavenCentral()
}
dependencies {
compile "javax.servlet:servlet-api:2.5"
}
task install1(type: Upload){
configuration = configurations.archives
repositories{
mavenInstaller()
}
}
uploadArchives {
repositories.mavenDeployer {
repository(url: "http://localhost:8081/nexus/content/repositories/test/") {
authentication(userName: "admin", password: "admin123")
}
}
}
}
project(':test'){
dependencies {
compile project(':testPlugin')
}
}

Regards

Smurfs