Skip to content

Commit

Permalink
Build collection lib along with the Android app
Browse files Browse the repository at this point in the history
  • Loading branch information
cco3 committed Oct 14, 2015
1 parent 7cc0d95 commit a81028a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
4 changes: 4 additions & 0 deletions android/PhysicalWeb/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ repositories {
}

dependencies {
compile(project(':libs')) {
exclude group: 'org.json', module: 'json'
}

compile 'com.android.volley:volley@aar'
compile 'org.uribeacon:uribeacon-library-release@aar'

Expand Down
4 changes: 3 additions & 1 deletion android/PhysicalWeb/settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
include ':app'
include ':app', ':libs'

project(':libs').projectDir = new File('../../java/libs')
11 changes: 6 additions & 5 deletions java/libs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ findbugsMain {
}

findbugs {
reportsDir = file("$project.buildDir/reports/findbugs")
excludeFilter = file("$project.rootDir/config/findbugs/exclude-filter.xml")
reportsDir = new File(buildDir, "reports/findbugs")
excludeFilter = new File(projectDir, "config/findbugs/exclude-filter.xml")
}

checkstyle {
configProperties.checkstyleSuppressionsPath = file("$project.rootDir/config/checkstyle/suppressions.xml")
configProperties.checkstyleSuppressionsPath =
new File(projectDir, "config/checkstyle/suppressions.xml")
}

pmdMain {
Expand All @@ -70,9 +71,9 @@ pmdMain {

pmd {
ignoreFailures = false
ruleSetFiles = files("${project.rootDir}/config/pmd/pmd-ruleset.xml")
ruleSetFiles = files(new File(projectDir, "config/pmd/pmd-ruleset.xml"))
ruleSets = []
reportsDir = file("$project.buildDir/reports/findbugs")
reportsDir = new File(buildDir, "reports/findbugs")
}

javadoc {
Expand Down

0 comments on commit a81028a

Please sign in to comment.