This is an automated email from the ASF dual-hosted git repository.

ntimofeev pushed a commit to branch STABLE-4.1
in repository https://gitbox.apache.org/repos/asf/cayenne.git


The following commit(s) were added to refs/heads/STABLE-4.1 by this push:
     new 4e6c3f7  Proper license and notice processing in Gradle artifacts
4e6c3f7 is described below

commit 4e6c3f784d6580e8a98164fc5e37b1af737bcfd5
Author: Nikita Timofeev <[email protected]>
AuthorDate: Mon Dec 20 13:43:37 2021 +0300

    Proper license and notice processing in Gradle artifacts
---
 cayenne-gradle-plugin/build.gradle |  2 +-
 cayenne-gradle-plugin/pom.xml      | 10 ++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/cayenne-gradle-plugin/build.gradle 
b/cayenne-gradle-plugin/build.gradle
index 5b7a9f7..4da6ceb 100644
--- a/cayenne-gradle-plugin/build.gradle
+++ b/cayenne-gradle-plugin/build.gradle
@@ -70,7 +70,7 @@ task versionFile {
 
 // Copy license and notice files
 task licenseFiles(type: Copy) {
-    from '../build-tools/cayenne-legal/src/main/resources/'
+    from './target/classes/'
     into "$buildDir/resources/main/"
 }
 
diff --git a/cayenne-gradle-plugin/pom.xml b/cayenne-gradle-plugin/pom.xml
index 7c973c6..75a6bdc 100644
--- a/cayenne-gradle-plugin/pom.xml
+++ b/cayenne-gradle-plugin/pom.xml
@@ -83,6 +83,16 @@
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <artifactId>maven-remote-resources-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>process</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
             <!-- GRADLE TASKS EXECUTOR -->
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>

Reply via email to