[Android] Add generateSources tasks for each module
Geoffrey Métais
git at videolan.org
Tue Feb 21 16:08:14 CET 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb 21 16:07:40 2017 +0100| [1a3860904787d0a09225440d08636873ae3e2c38] | committer: Geoffrey Métais
Add generateSources tasks for each module
> https://code.videolan.org/videolan/vlc-android/commit/1a3860904787d0a09225440d08636873ae3e2c38
---
api/build.gradle | 5 +++++
libvlc/build.gradle | 6 ++++++
medialibrary/build.gradle | 5 +++++
vlc-android/build.gradle | 5 +++++
4 files changed, 21 insertions(+)
diff --git a/api/build.gradle b/api/build.gradle
index d1209b7..fa06937 100644
--- a/api/build.gradle
+++ b/api/build.gradle
@@ -39,6 +39,11 @@ android {
}
}
+task generateSources (type: Jar) {
+ classifier = 'sources'
+ from android.sourceSets.main.java.srcDirs
+}
+
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.1.1'
diff --git a/libvlc/build.gradle b/libvlc/build.gradle
index 486d202..19446af 100644
--- a/libvlc/build.gradle
+++ b/libvlc/build.gradle
@@ -93,6 +93,12 @@ task buildDebugMIPS(type:BuildNative) {
task buildDebugMIPS64(type:BuildNative) {
args('-a', "mips64")
}
+
+task generateSources (type: Jar) {
+ classifier = 'sources'
+ from android.sourceSets.main.java.srcDirs
+}
+
dependencies {
compile 'com.android.support:support-annotations:25.1.1'
}
diff --git a/medialibrary/build.gradle b/medialibrary/build.gradle
index df74b89..ce10815 100644
--- a/medialibrary/build.gradle
+++ b/medialibrary/build.gradle
@@ -52,6 +52,11 @@ android {
}
}
+task generateSources (type: Jar) {
+ classifier = 'sources'
+ from android.sourceSets.main.java.srcDirs
+}
+
dependencies {
compile project(':libvlc')
compile 'com.android.support:support-v4:25.1.1'
diff --git a/vlc-android/build.gradle b/vlc-android/build.gradle
index 38b3bc0..63284e7 100644
--- a/vlc-android/build.gradle
+++ b/vlc-android/build.gradle
@@ -193,6 +193,11 @@ android {
}
}
+task generateSources (type: Jar) {
+ classifier = 'sources'
+ from android.sourceSets.main.java.srcDirs
+}
+
dependencies {
compile project(':libvlc')
compile project(':medialibrary')
More information about the Android
mailing list