Message Boards

Liferay 7.0 Calendar source code import to Workspace

madhukara patel, modified 5 Years ago.

Liferay 7.0 Calendar source code import to Workspace

New Member Posts: 8 Join Date: 10/8/14 Recent Posts
Hi All,

I have to customize my liferay 7.0 calender . I am trying to import that calendar to myWorkspce while trying i am facing below error : 

FAILURE: Build failed with an exception.

* Where:
Build file 'D:\Project\IPAC\IPACWorkspace\modules\com-liferay-calendar-7.0.x\build.gradle' line: 15

* What went wrong:
A problem occurred evaluating project ':modules:com-liferay-calendar-7.0.x'.
> org.gradle.api.plugins.JavaPluginConvention.setSourceCompatibility(Lorg/gradle/api/JavaVersion;)V

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.52 secs


Gradle File is : 

buildscript {
    dependencies {
        classpath group: "com.liferay", name: "com.liferay.gradle.plugins.defaults", version: "latest.release"
    }

    repositories {
        mavenLocal()

        maven {
            url "https://repository-cdn.liferay.com/nexus/content/groups/public"
        }
    }
}

apply plugin: "com.liferay.root.defaults.plugin" ----------->
Error line

Kindly help me . Thanks in Advance.


thumbnail
David H Nebinger, modified 5 Years ago.

RE: Liferay 7.0 Calendar source code import to Workspace

Liferay Legend Posts: 14919 Join Date: 9/2/06 Recent Posts
You cannot just pull Liferay code into your own space and expect it to work. The Liferay build process is a large and unfortunately complicated beast, with dependencies to gradle and maven and ant all over the place.

Besides, that's not how you customize functionality in an OSGi-based world.

Instead, you inspect the @Component and find the one(s) you need to override and decorate them with a higher service ranking. That way your overrides are applied w/o needing the whole source.
madhukara patel, modified 5 Years ago.

RE: Liferay 7.0 Calendar source code import to Workspace

New Member Posts: 8 Join Date: 10/8/14 Recent Posts
David H NebingerYou cannot just pull Liferay code into your own space and expect it to work. The Liferay build process is a large and unfortunately complicated beast, with dependencies to gradle and maven and ant all over the place.

Besides, that's not how you customize functionality in an OSGi-based world.

Instead, you inspect the @Component and find the one(s) you need to override and decorate them with a higher service ranking. That way your overrides are applied w/o needing the whole source.
Thanks for your Replay David,

Can you explain more , what service i need to use like fragment or service wrapper .

My requirement is

I have to create calendar for organization with set of permission with schedular function .

User can view calender based on organization . They can call schedular function from deiffernt modules .
​​​​​​​

thumbnail
David H Nebinger, modified 5 Years ago.

RE: Liferay 7.0 Calendar source code import to Workspace

Liferay Legend Posts: 14919 Join Date: 9/2/06 Recent Posts