This repository has been archived by the owner on Dec 27, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Zellius/feature/fix_publishing
Fix maven publishing
- Loading branch information
Showing
8 changed files
with
112 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
...src/androidTest/java/ru/solodovnikov/rxlocationmanager/kotlin/sample/ApplicationTest.java
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...sample/src/test/java/ru/solodovnikov/rxlocationmanager/kotlin/sample/ExampleUnitTest.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
ext.lib_version = '' | ||
ext.lib_name = '' | ||
ext.lib_description = '' | ||
|
||
def repository_url = 'https://github.com/Zellius/RxLocationManager' | ||
|
||
apply plugin: 'com.jfrog.bintray' | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
|
||
afterEvaluate { | ||
group 'com.github.zellius' | ||
version lib_version | ||
|
||
install { | ||
repositories.mavenInstaller { | ||
pom { | ||
project { | ||
packaging 'aar' | ||
|
||
name lib_name | ||
description lib_description | ||
url repository_url | ||
|
||
licenses { | ||
license { | ||
name 'MIT' | ||
url 'https://raw.github.com/zellius/RxLocationManager/master/LICENSE' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'zellius' | ||
name 'Sergey Solodovnikov' | ||
email 'elementa.ru@gmail.com' | ||
} | ||
} | ||
|
||
scm { | ||
url repository_url | ||
connection "scm:${repository_url}.git" | ||
developerConnection "scm:${repository_url}.git" | ||
|
||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
bintray { | ||
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER') | ||
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY') | ||
|
||
configurations = ['archives'] | ||
pkg { | ||
repo = 'maven' | ||
name = lib_name | ||
desc = lib_description | ||
licenses = ['MIT'] | ||
websiteUrl = repository_url | ||
issueTrackerUrl = "$repository_url/issues" | ||
vcsUrl = "${repository_url}.git" | ||
|
||
labels = ['android', 'location', 'rxJava', 'locationmanager'] | ||
|
||
githubRepo = "Zellius/RxLocationManager" | ||
githubReleaseNotesFile = 'README.md' | ||
|
||
version { | ||
name = lib_version | ||
vcsTag = "v$lib_version" | ||
released = new Date() | ||
} | ||
} | ||
} | ||
|
||
apply plugin: 'org.jetbrains.dokka-android' | ||
|
||
dokka { | ||
outputFormat = 'javadoc' | ||
sourceDirs = android.sourceSets.main.java.srcDirs | ||
outputDirectory = "$buildDir/javadoc" | ||
} | ||
|
||
task androidJavadocsJar(type: Jar, dependsOn: dokka) { | ||
classifier 'javadoc' | ||
from dokka.outputDirectory | ||
} | ||
|
||
|
||
task androidSourcesJar(type: Jar) { | ||
classifier 'sources' | ||
from android.sourceSets.main.java.srcDirs | ||
} | ||
|
||
artifacts { | ||
archives androidSourcesJar | ||
archives androidJavadocsJar | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
publish { | ||
groupId = 'com.github.zellius' | ||
artifactId = 'rxlocationmanager' | ||
publishVersion = '0.1.2' | ||
desc = 'Android library that helps to get location using standart LocationManager and RxJava' | ||
licences = ['MIT'] | ||
website = 'https://github.com/Zellius/RxLocationManager' | ||
} | ||
ext.lib_version = '0.1.2' | ||
ext.lib_name = 'RxLocationManager' | ||
ext.lib_description = 'Android library that helps to get location using standart LocationManager and RxJava' |
13 changes: 0 additions & 13 deletions
13
sample/src/androidTest/java/ru/solodovnikov/rxlocationmanager/sample/ApplicationTest.java
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
sample/src/test/java/ru/solodovnikov/rxlocationmanager/sample/ExampleUnitTest.java
This file was deleted.
Oops, something went wrong.