Skip to content

Commit

Permalink
pongasoft#104: moved grails plugin out
Browse files Browse the repository at this point in the history
 - provide a binary version
  • Loading branch information
ypujante committed Nov 16, 2011
1 parent a007010 commit 32dda10
Show file tree
Hide file tree
Showing 22 changed files with 9 additions and 2,877 deletions.
11 changes: 7 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ build
out
console/org.linkedin.glu.console-webapp/target
console/org.linkedin.glu.console-webapp/lib
grails-plugins/org.linkedin.glu.grails.plugins.external-domain-classes/target
grails-plugins/org.linkedin.glu.grails.plugins.external-domain-classes/lib
grails-plugins/org.linkedin.glu.grails.plugins.external-domain-classes/plugin.xml

console/org.linkedin.glu.console-webapp/web-app/images/grails_logo.jpg
console/org.linkedin.glu.console-webapp/web-app/images/grails_logo.png
console/org.linkedin.glu.console-webapp/web-app/images/leftnav_btm.png
console/org.linkedin.glu.console-webapp/web-app/images/leftnav_midstretch.png
console/org.linkedin.glu.console-webapp/web-app/images/leftnav_top.png
console/org.linkedin.glu.console-webapp/web-app/images/springsource.png
console/org.linkedin.glu.console-webapp/web-app/js/prototype
22 changes: 1 addition & 21 deletions console/org.linkedin.glu.console-webapp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ dependencies {
runtime spec.external.log4j
}

def externalDomainClassesProject =
evaluationDependsOn(':grails-plugins:org.linkedin.glu.grails.plugins.external-domain-classes')

def facets = """
<component name="FacetManager">
<facet type="Spring" name="Spring">
Expand Down Expand Up @@ -77,23 +74,6 @@ ideaModule {
}
}

/**
* We need to install the plugin compiled locally
*/
task installPlugins(dependsOn: ':grails-plugins:org.linkedin.glu.grails.plugins.external-domain-classes:package-plugin') << {
File pluginFile = externalDomainClassesProject.tasks.getByPath('package-plugin').artifactFile

if(!new File(System.getProperty('user.home'), ".grails/${spec.versions.grails}/projects/${project.name}/plugins/${externalDomainClassesProject.pluginName}-${externalDomainClassesProject.pluginVersion}").exists())
{
logger.lifecycle "Installing ${externalDomainClassesProject.pluginName}-${externalDomainClassesProject.pluginVersion} plugin"
ant.exec(dir: '.', executable: "grails") {
arg(line: "install-plugin ${pluginFile.canonicalPath}")
}
}
else
logger.lifecycle "Plugin ${externalDomainClassesProject.pluginName}-${externalDomainClassesProject.pluginVersion} already installed..."
}

project.clean << {
fileTree(dir: 'lib').each { it.delete() }
}
Expand Down Expand Up @@ -151,7 +131,7 @@ console.truststorePath="${new File(keysDir, 'agent.truststore').canonicalPath}"

def warFile = new File("${buildDir}/distributions/${project.name}-${project.version}.war")

task war(dependsOn: [lib, installPlugins]) << {
task war(dependsOn: lib) << {
ant.exec(dir: '.', executable: "grails") {
arg(line: "-Dgrails.project.war.file=${warFile} -Dbuild.version=${project.version} war")
}
Expand Down
2 changes: 1 addition & 1 deletion docs/manual/src/main/sphinx/source/dev-setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Before doing anything go to::

and issue::

grails install-plugin ../../local-maven-repo/com/pongasoft/grails-external-domain-classes/1.0.0/grails-external-domain-classes-1.0.0.zip
grails upgrade

At the top simply run::
Expand All @@ -41,7 +42,6 @@ which should compile and run all the tests.
Note: if you do not run the 'grails upgrade' command, you may see this messages::

Plugin `shiro-1.1-SNAPSHOT <not installed. ...
Plugin [yui-2.7.0.1] not installed. ...
Plugin [hibernate-1.3.5] not installed. ...
Plugin [tomcat-1.3.5] not installed. ...

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 32dda10

Please sign in to comment.