Skip to content

7.2 #243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 52 commits into
base: 7.3
Choose a base branch
from
Open

7.2 #243

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
72c9965
InfoListProvider sample
Mar 11, 2020
6e8c81a
Replicate to maven
lawrence-lee Mar 31, 2020
4679b19
Enable target platform for maven workspace
lawrence-lee Mar 31, 2020
df5461a
Remove versions for workspace
lawrence-lee Mar 31, 2020
1bb30e7
Remove versions from pom.xml
lawrence-lee Mar 31, 2020
525bcd5
managed by top level gitignore
lawrence-lee Mar 31, 2020
ae65509
Fix poms
lawrence-lee Mar 31, 2020
eae970e
Fix maven compile issues
lawrence-lee Mar 31, 2020
4ee844e
Fix Gradle workspace compile errors
lawrence-lee Mar 31, 2020
f7b3a18
SF
lawrence-lee Mar 31, 2020
d9b0712
Set TP to 7.2.1
lawrence-lee Mar 31, 2020
37b686c
spring dependency updated
lawrence-lee Apr 1, 2020
93c3684
SF
lawrence-lee Apr 1, 2020
006705e
Merge pr-92
lawrence-lee Apr 1, 2020
9a5e2ae
Upgrade to Maven workspace
lawrence-lee Apr 1, 2020
5d10dbd
Move maven plugins to root
lawrence-lee Apr 1, 2020
ebf327a
wrong version of util taglib for 7.2.1
lawrence-lee Apr 1, 2020
2137c0a
Merge pr-93
lawrence-lee Apr 1, 2020
88dd4d0
replacing dead link.
olafk May 1, 2020
4bf8728
SF
lawrence-lee May 6, 2020
0164a4c
replicate sources
lawrence-lee May 6, 2020
bda0f99
Merge pr-97
lawrence-lee May 6, 2020
7ccf135
SF
lawrence-lee May 12, 2020
363e89c
BLADE-562 Add Struts Action Override
lawrence-lee Jun 9, 2020
37614f9
BLADE-562 SF
lawrence-lee Jun 9, 2020
b557cf2
BLADE-562 Use liferay.workspace.product
lawrence-lee Jun 9, 2020
969104f
SF
lawrence-lee Jun 9, 2020
8d80f62
BLADE-562 Add maven struts action override
lawrence-lee Jun 9, 2020
36c01b8
Add DataSourceProvider (DSP) sample
Jun 26, 2020
018f743
Replicate Sources
lawrence-lee Jun 29, 2020
bfb6f7e
Fix maven workspace naming
lawrence-lee Jun 29, 2020
9a47e32
Update License to Apache 2.0
lawrence-lee Jun 29, 2020
c9ebff6
SF
lawrence-lee Jun 29, 2020
0bbabee
Merge branch 'pr-646' into 7.2
gamerson Jun 30, 2020
04f38f1
Add github actions
lawrence-lee Jun 30, 2020
78d6a1b
Add Checks for Liferay-workspace
lawrence-lee Jun 30, 2020
964ac92
Fix github actions commands
lawrence-lee Jun 30, 2020
801b9b6
Fix maven dir
lawrence-lee Jun 30, 2020
622c1e8
Adapt for 7.2
lawrence-lee Jun 30, 2020
3fcb125
Maven SF
lawrence-lee Jun 30, 2020
09bd65c
Add multiple branches
lawrence-lee Jun 30, 2020
22ac3c2
Cleanup Maven projects
lawrence-lee Jun 30, 2020
b5f3f1f
Merge pr-113
lawrence-lee Jun 30, 2020
7132d19
Merge pr-114
lawrence-lee Jul 20, 2020
448c626
SF
lawrence-lee Jul 20, 2020
df90ee3
Merge pr-115
lawrence-lee Jul 20, 2020
be1583b
Fix wsdd classpath issue
lawrence-lee Sep 11, 2020
7ca7188
Update CustomMVCResourceCommand.java
linealiferay Oct 7, 2020
925e81f
Remove trailing newline
gamerson Oct 8, 2020
2fcd5ae
Copy to maven and workspace samples
gamerson Oct 8, 2020
7a31eca
SF
gamerson Oct 8, 2020
b62da05
Merge pull request #653 from gamerson/pr-237
gamerson Oct 8, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
125 changes: 125 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
name: SF and Build Test
on:
pull_request:
branches: [ master, 7.3, 7.2 ]
jobs:
CheckSourceFormatting:
name: Check source formatting
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build
shell: bash
run: |
cd liferay-workspace
./gradlew --no-daemon checkSourceFormatting
cd ../maven
mvn source-formatter:format
Maven-Linux-JDK8:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: |
cd maven
mvn clean package
Maven-Linux-JDK11:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build with Maven
run: |
cd maven
mvn clean package
Maven-MacOS-JDK8:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: |
cd maven
mvn clean package
Maven-Windows-JDK8:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: |
cd maven
mvn clean package
Gradle-Linux-JDK8:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
run: |
cd liferay-workspace
./gradlew --no-daemon clean assemble
Gradle-Linux-JDK11:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build with Gradle
run: |
cd liferay-workspace
./gradlew --no-daemon clean assemble
Gradle-MacOS-JDK8:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
run: |
cd liferay-workspace
./gradlew --no-daemon clean assemble
Gradle-Windows-JDK8:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
run: |
cd liferay-workspace
./gradlew --no-daemon clean assemble
10 changes: 10 additions & 0 deletions gradle/apps/service-builder/dsp/dsp-api/bnd.bnd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Bundle-Name: dsp-api
Bundle-SymbolicName: com.liferay.blade.samples.dspservicebuilder.api
Bundle-Version: 1.0.0
Export-Package:\
com.liferay.blade.samples.dspservicebuilder.exception,\
com.liferay.blade.samples.dspservicebuilder.model,\
com.liferay.blade.samples.dspservicebuilder.service,\
com.liferay.blade.samples.dspservicebuilder.service.persistence
-check: EXPORTS
-includeresource: META-INF/service.xml=../dsp-service/service.xml
9 changes: 9 additions & 0 deletions gradle/apps/service-builder/dsp/dsp-api/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dependencies {
compileOnly group: "biz.aQute.bnd", name: "biz.aQute.bndlib", version: "3.5.0"
compileOnly group: "com.liferay", name: "com.liferay.petra.lang", version: "3.0.0"
compileOnly group: "com.liferay", name: "com.liferay.petra.string", version: "3.0.0"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "4.4.0"
compileOnly group: "org.osgi", name: "org.osgi.annotation.versioning", version: "1.1.0"
compileOnly group: "org.osgi", name: "org.osgi.core", version: "6.0.0"
compileOnly group: "org.osgi", name: "org.osgi.service.component.annotations", version: "1.3.0"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<%--
/**
* Copyright 2000-present Liferay, Inc.
*
Expand All @@ -14,20 +13,28 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
--%>
package com.liferay.blade.samples.dspservicebuilder.exception;

<%@ include file="/init.jsp" %>
import com.liferay.portal.kernel.exception.NoSuchModelException;

<%= (String)renderRequest.getAttribute(KotlinGreeterPortletKeys.GreeterMessage) %>
/**
* @author Brian Wing Shun Chan
*/
public class NoSuchCountryException extends NoSuchModelException {

public NoSuchCountryException() {
}

<liferay-ui:message key="blade_portlet_kotlinactioncommand_KotlinGreeterPortlet.caption" />
public NoSuchCountryException(String msg) {
super(msg);
}

<liferay-portlet:actionURL name="greet" var="greetURL" />
public NoSuchCountryException(String msg, Throwable cause) {
super(msg, cause);
}

<aui:form action="<%= greetURL %>" method="post" name="fm">
<aui:input name="name" type="text" />
public NoSuchCountryException(Throwable cause) {
super(cause);
}

<aui:button-row>
<aui:button type="submit"></aui:button>
</aui:button-row>
</aui:form>
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/**
* Copyright 2000-present Liferay, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.liferay.blade.samples.dspservicebuilder.model;

import com.liferay.portal.kernel.annotation.ImplementationClassName;
import com.liferay.portal.kernel.model.PersistedModel;
import com.liferay.portal.kernel.util.Accessor;

import org.osgi.annotation.versioning.ProviderType;

/**
* The extended model interface for the Country service. Represents a row in the &quot;country&quot; database table, with each column mapped to a property of this class.
*
* @author Brian Wing Shun Chan
* @see CountryModel
* @generated
*/
@ImplementationClassName(
"com.liferay.blade.samples.dspservicebuilder.model.impl.CountryImpl"
)
@ProviderType
public interface Country extends CountryModel, PersistedModel {

/*
* NOTE FOR DEVELOPERS:
*
* Never modify this interface directly. Add methods to <code>com.liferay.blade.samples.dspservicebuilder.model.impl.CountryImpl</code> and rerun ServiceBuilder to automatically copy the method declarations to this interface.
*/
public static final Accessor<Country, Long> COUNTRY_ID_ACCESSOR =
new Accessor<Country, Long>() {

@Override
public Long get(Country country) {
return country.getCountryId();
}

@Override
public Class<Long> getAttributeClass() {
return Long.class;
}

@Override
public Class<Country> getTypeClass() {
return Country.class;
}

};

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
/**
* Copyright 2000-present Liferay, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.liferay.blade.samples.dspservicebuilder.model;

import com.liferay.portal.kernel.bean.AutoEscape;
import com.liferay.portal.kernel.model.BaseModel;

import org.osgi.annotation.versioning.ProviderType;

/**
* The base model interface for the Country service. Represents a row in the &quot;country&quot; database table, with each column mapped to a property of this class.
*
* <p>
* This interface and its corresponding implementation <code>com.liferay.blade.samples.dspservicebuilder.model.impl.CountryModelImpl</code> exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in <code>com.liferay.blade.samples.dspservicebuilder.model.impl.CountryImpl</code>.
* </p>
*
* @author Brian Wing Shun Chan
* @see Country
* @generated
*/
@ProviderType
public interface CountryModel extends BaseModel<Country> {

/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. All methods that expect a country model instance should use the {@link Country} interface instead.
*/

/**
* Returns the primary key of this country.
*
* @return the primary key of this country
*/
public long getPrimaryKey();

/**
* Sets the primary key of this country.
*
* @param primaryKey the primary key of this country
*/
public void setPrimaryKey(long primaryKey);

/**
* Returns the country ID of this country.
*
* @return the country ID of this country
*/
public long getCountryId();

/**
* Sets the country ID of this country.
*
* @param countryId the country ID of this country
*/
public void setCountryId(long countryId);

/**
* Returns the country name of this country.
*
* @return the country name of this country
*/
@AutoEscape
public String getCountryName();

/**
* Sets the country name of this country.
*
* @param countryName the country name of this country
*/
public void setCountryName(String countryName);

}
Loading