diff --git a/org.eclipse.paho.android.service/org.eclipse.paho.android.service/build.gradle b/org.eclipse.paho.android.service/org.eclipse.paho.android.service/build.gradle index f8d79100..89bad686 100755 --- a/org.eclipse.paho.android.service/org.eclipse.paho.android.service/build.gradle +++ b/org.eclipse.paho.android.service/org.eclipse.paho.android.service/build.gradle @@ -75,8 +75,8 @@ task("renameLibraryJar", type: Copy, dependsOn: "clearLibraryJar") { rename('classes.jar', archivesBaseName + '-' + version + '.jar') } -task ("generateLibraryJar", type: Jar, dependsOn: "renameLibraryJar") { - from('build/libs/' + archivesBaseName + '-' + version + '.jar') +task ("generateLibraryJar", type: Jar) { + from('build/intermediates/classes/release') } publishing { @@ -99,6 +99,10 @@ publishing { password eclipseRepoPassword } } + } else { + maven { + url "$buildDir/repo" + } } } }