Message Boards

is it a bug? miss method cloneWithOriginalValues after generate code by SB

Scarletake Bwi, modified 2 Years ago.

is it a bug? miss method cloneWithOriginalValues after generate code by SB

Expert Posts: 326 Join Date: 12/20/10 Recent Posts

hi

i am using Liferay Portal 7.4 GA4 (liferay-ce-portal-7.4.3.4-ga4)

i try generate code - buildService by gradle task, but it shows error in -Wrapper(api) and -ModelImpl(service), because miss cloneWithOriginalValues.

is it a bug? sould i change setting.gradle of workspace?

thank you

Scarletake Bwi, modified 2 Years ago.

RE: is it a bug? miss method cloneWithOriginalValues after generate code by

Expert Posts: 326 Join Date: 12/20/10 Recent Posts

after i update settings.gradle of workspace, it works

buildscript {
	dependencies {
		classpath group: "biz.aQute.bnd", name: "biz.aQute.bnd", version: "5.2.0"
		classpath(group: "com.liferay", name: "com.liferay.gradle.plugins.workspace", version: "3.4.16") {
			exclude group: "biz.aQute.bnd", module: "biz.aQute.bnd"
		}
		classpath group: "net.saliman", name: "gradle-properties-plugin", version: "1.4.6"
	}

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

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

apply plugin: "net.saliman.properties"

apply plugin: "com.liferay.workspace"

 

thumbnail
Dan Griffiths, modified 2 Years ago.

RE: is it a bug? miss method cloneWithOriginalValues after generate code by

New Member Posts: 8 Join Date: 6/25/20 Recent Posts

Thanks for this, Scarletake. It worked for me too! 

In my case at least, the only diference to the default settings.gradle (created when the service-builder project itself was created) was the version number of com.liferay.gradle.plugin.workspace  (line 4 in the example above); from 3.4.12 to 3.4.16.

SHAHRUL AZHAR, modified 2 Years ago.

RE: is it a bug? miss method cloneWithOriginalValues after generate code by

New Member Posts: 7 Join Date: 1/6/22 Recent Posts

may i know, how to solve this problem..

 

I also encounter this problem when built the SB

when i build, it says

error: SwimSubscribeWeatherModelImpl is not abstract and does not override abstract method cloneWithOriginalValues() in BaseModel
public class SwimSubscribeWeatherModelImpl

i use gradle..