Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ gen
*.project
.DS_Store
target/
.gradle
build/
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
buildscript {
repositories {
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:0.5+'
}
}

allprojects {
group = 'com.jeremyfeinstein.slidingmenu'
version = '1.3-SNAPSHOT'
}
19 changes: 19 additions & 0 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apply plugin: 'android-library'

dependencies {
compile 'com.android.support:support-v4:18.0.+'
}

android {
compileSdkVersion 17
buildToolsVersion '17'

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
}
}
}

7 changes: 5 additions & 2 deletions library/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@
<nativeLibrariesDirectory>ignored</nativeLibrariesDirectory>
</configuration>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<version>1.8</version>
<executions>
<execution>
<phase>package</phase>
Expand All @@ -54,6 +53,10 @@
<type>jar</type>
<file>${project.build.directory}/${project.build.finalName}.jar</file>
</artifact>
<artifact>
<type>aar</type>
<file>${project.basedir}/build/libs/library-${project.version}.aar</file>
</artifact>
</artifacts>
</configuration>
</execution>
Expand Down
23 changes: 23 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,29 @@
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<inherited>false</inherited>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>gradle</executable>
<arguments>
<argument>clean</argument>
<argument>assemble</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include 'library'