Skip to content

Commit

Permalink
Fix gradle issues
Browse files Browse the repository at this point in the history
  • Loading branch information
natanieljr authored and natanieljr committed Jul 19, 2018
1 parent 7ecbb0b commit 1177651
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ allprojects {
from sourceSets.main.allSource
from sourceSets.test.allSource
}

apply plugin: 'maven'
artifacts {
archives sourcesJar
}
}

apply from: file("project/log.gradle")
Expand Down Expand Up @@ -80,10 +85,11 @@ jar {
attributes 'Main-Class': "org.droidmate.API.ExplorationAPI"
}
}

// include all dependencies (resolvedArtifacts) in publishing (i.e. for publishToMavenLocal)
apply plugin: 'maven-publish'

publishToMavenLocal.dependsOn {
publish.dependsOn {
configurations.compile.resolvedConfiguration.resolvedArtifacts.eachWithIndex { resolvedArtifact, n ->

if (resolvedArtifact.name != "all")
Expand Down

0 comments on commit 1177651

Please sign in to comment.