the build.gradle file of dotcms

100 views
Skip to first unread message

7berenger

unread,
Apr 29, 2015, 8:11:07 AM4/29/15
to dot...@googlegroups.com
hi!

i'm new user of dotcms. i can't build my project because gradle tell me: could not find method from() for argument compile on root project 'name of the project'

my build.gradle file is:

apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin : 'war'
apply plugin: 'application'


configurations {
    compile 
    antLibs 
    ext.dotcmsFolder = "dotCMS"
    ext.libsFolder = "dotCMS/WEB-INF/lib"
    ext.felixFolder = "dotCMS/WEB-INF/felix/bundle"
}
//Import and apply the dependencies from the dependencies scripts
apply from: "$rootDir/dependencies.gradle"

repositories {
}

task copyToLib {

    sync {
        from configurations.compile
        into configurations.felixFolder

        include '**/dot.org.apache.felix.bundlerepository*.jar'
        include '**/dot.org.apache.felix.fileinstall*.jar'
        include '**/dot.org.apache.felix.gogo.*.jar'
        include '**/dot.org.apache.felix.http.bundle*.jar'
    }

    sync {
        from configurations.compile
        into configurations.libsFolder

        exclude '**/dot.org.apache.felix.bundlerepository*.jar'
        exclude '**/dot.org.apache.felix.fileinstall*.jar'
        exclude '**/dot.org.apache.felix.gogo.*.jar'
        exclude '**/*.zip'
    }

    copy {
        from configurations.compile
        into configurations.dotcmsFolder

        include '**/starter*.zip'
        rename ( /starter(.+)\.zip/, "starter.zip" )
    }
}
copyToLib.description = 'Synchronizes the dependencies with the libs folders (dotCMS/WEB-INF/lib, dotCMS/WEB-INF/felix/bundle) and copies the starter.zip'

dependencies { 
    antLibs group: 'org.apache.ant', name: 'ant-junit', version: '1.9.3'
    antLibs group: 'ant-contrib', name: 'ant-contrib', version: '1.0b3'
}

ClassLoader antClassLoader = org.apache.tools.ant.Project.class.classLoader
configurations.antLibs.each { File f -> antClassLoader.addURL(f.toURI().toURL()) }

//Move the dependencies to the WEB-INF/lib folder
tasks.copyToLib.execute()


ant.importBuild 'build.xml'


task wrapper(type: Wrapper) {
    gradleVersion = '1.11'
}

defaultTasks 'help', 'tasks'


thank for your help!!!!

Jason Tesser

unread,
Apr 29, 2015, 9:05:27 AM4/29/15
to dot...@googlegroups.com
We can help here but first let me ask you a question. Why not just run
from the disto?
> --
> You received this message because you are subscribed to the Google Groups
> "dotCMS User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dotcms+un...@googlegroups.com.
> To post to this group, send email to dot...@googlegroups.com.
> Visit this group at http://groups.google.com/group/dotcms.
> For more options, visit https://groups.google.com/d/optout.



--

3250 Mary Street
Suite 405
Miami, FL 33133
Main: 305-900-2001 | Direct: 305.209.8104

jason....@dotcms.com | dotcms.com

7berenger

unread,
Apr 30, 2015, 8:48:39 AM4/30/15
to dot...@googlegroups.com, jason....@dotcms.com
WHAT IS THE DISTO ? I DON'T KNOW IT. PLEASE CAN YOU TELL ME MORE? I WANT TO BUILD THE PROJECT USING THE BUILD.GRADLE FILE.
THANKS

Nathan Keiter

unread,
Apr 30, 2015, 8:53:08 AM4/30/15
to dot...@googlegroups.com

The distribution copy is pre-compiled.  If you use that you only need to compile and deploy your static plugins.  OSGI plugins are compiled separately also, and added to the file system or through the backend UI.

 

Nathan

 

Nathan I. Keiter

Lead Network Applications Programmer

DataSystems

Gettysburg College

Campus Box 2453

717-337-6993

 

Measure your success by the level of service you provide.

Si hoc legere scis nimium eruditionis habes.

Brent Griffin

unread,
Apr 30, 2015, 9:57:05 AM4/30/15
to dot...@googlegroups.com
You can access the latest release here:  http://dotcms.com/download/

Brent Griffin
Sr. Java Architect
Director of Quality Assurance
dotCMS

To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+unsubscribe@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages