You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by ab...@apache.org on 2019/03/28 08:46:54 UTC
[cayenne] branch STABLE-4.1 updated: Attach sources and javadoc in
cayenne-gradle-plugin build
This is an automated email from the ASF dual-hosted git repository.
abulatski 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 3ebd109 Attach sources and javadoc in cayenne-gradle-plugin build
3ebd109 is described below
commit 3ebd109586a8fb753d1aa6a10472d8ac539dbe02
Author: Arseni Bulatski <an...@gmail.com>
AuthorDate: Mon Mar 25 17:55:01 2019 +0300
Attach sources and javadoc in cayenne-gradle-plugin build
(cherry picked from commit a5e525ee13b1183458a7cd41068985d0affb19da)
---
cayenne-gradle-plugin/build.gradle | 15 +++++++++++++++
cayenne-gradle-plugin/pom.xml | 10 ++++++++++
2 files changed, 25 insertions(+)
diff --git a/cayenne-gradle-plugin/build.gradle b/cayenne-gradle-plugin/build.gradle
index b75d626..dc13018 100644
--- a/cayenne-gradle-plugin/build.gradle
+++ b/cayenne-gradle-plugin/build.gradle
@@ -74,5 +74,20 @@ task licenseFiles(type: Copy) {
into "$buildDir/resources/main/"
}
+task sourcesJar(type: Jar, dependsOn: classes) {
+ classifier = 'sources'
+ from sourceSets.main.allSource
+}
+
+task javadocJar(type: Jar, dependsOn: javadoc) {
+ classifier = 'javadoc'
+ from javadoc.destinationDir
+}
+
+artifacts {
+ archives sourcesJar
+ archives javadocJar
+}
+
processResources.dependsOn licenseFiles
processResources.dependsOn versionFile
\ No newline at end of file
diff --git a/cayenne-gradle-plugin/pom.xml b/cayenne-gradle-plugin/pom.xml
index 7244f7e..01e8e36 100644
--- a/cayenne-gradle-plugin/pom.xml
+++ b/cayenne-gradle-plugin/pom.xml
@@ -122,6 +122,16 @@
<file>build/libs/${project.artifactId}-${project.version}.jar</file>
<type>jar</type>
</artifact>
+ <artifact>
+ <file>build/libs/${project.artifactId}-${project.version}-sources.jar</file>
+ <type>jar</type>
+ <classifier>sources</classifier>
+ </artifact>
+ <artifact>
+ <file>build/libs/${project.artifactId}-${project.version}-javadoc.jar</file>
+ <type>jar</type>
+ <classifier>javadoc</classifier>
+ </artifact>
</artifacts>
</configuration>
</execution>