-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
52 additions
and
71 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
/build | ||
/debug | ||
/release |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<lint> | ||
<issue id="HardcodedText" severity="ignore"/> | ||
<issue id="GoogleAppIndexingWarning" severity="ignore"/> | ||
<issue id="Autofill" severity="ignore"/> | ||
<issue id="AllowBackup" severity="ignore"/> | ||
</lint> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,89 +4,70 @@ ext { | |
|
||
publishedGroupId = 'com.g00fy2' | ||
libraryName = 'versioncompare' | ||
artifact = 'versioncompare' | ||
|
||
libraryDescription = 'Lightweight library to compare version strings.' | ||
|
||
siteUrl = 'https://github.com/G00fY2/version-compare' | ||
issueUrl = 'https://github.com/G00fY2/version-compare/issues' | ||
gitUrl = 'https://github.com/G00fY2/version-compare.git' | ||
|
||
libraryVersion = '1.3.1' | ||
libraryVersion = '1.3.2' | ||
|
||
developerId = 'g00fy2' | ||
developerName = 'Thomas Wirth' | ||
developerEmail = '[email protected]' | ||
|
||
licenseName = 'The Apache Software License, Version 2.0' | ||
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
licenseUrl = 'https://www.apache.org/licenses/LICENSE-2.0.txt' | ||
allLicenses = ["Apache-2.0"] | ||
} | ||
|
||
// Maven | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
|
||
android.libraryVariants.all { variant -> | ||
def name = variant.buildType.name.capitalize() | ||
def task = project.tasks.create "jar${name}", Jar | ||
task.dependsOn variant.javaCompiler | ||
task.from variant.javaCompiler.destinationDir | ||
task.exclude '**/BuildConfig.class' | ||
task.exclude '**/R.class' | ||
task.exclude '**/R$*.class' | ||
artifacts.add('archives', task) | ||
} | ||
apply plugin: 'maven-publish' | ||
|
||
task sourcesJar(type: Jar) { | ||
from android.sourceSets.main.java.srcDirs | ||
classifier = 'sources' | ||
} | ||
|
||
task javadoc(type: Javadoc) { | ||
source = android.sourceSets.main.java.srcDirs | ||
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) | ||
archiveClassifier = 'sources' | ||
from sourceSets.main.allJava | ||
} | ||
|
||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
task javadocJar(type: Jar) { | ||
archiveClassifier = 'javadoc' | ||
from javadoc.destinationDir | ||
} | ||
|
||
artifacts { | ||
archives javadocJar | ||
archives sourcesJar | ||
} | ||
|
||
install { | ||
repositories.mavenInstaller { | ||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
artifactId = libraryName | ||
groupId = publishedGroupId | ||
version = libraryVersion | ||
|
||
pom { | ||
project { | ||
packaging 'aar' | ||
groupId publishedGroupId | ||
artifactId artifact | ||
from components.java | ||
artifact sourcesJar | ||
artifact javadocJar | ||
|
||
name libraryName | ||
description libraryDescription | ||
url siteUrl | ||
pom { | ||
name = libraryName | ||
description = libraryDescription | ||
url = siteUrl | ||
|
||
licenses { | ||
license { | ||
name licenseName | ||
url licenseUrl | ||
name = licenseName | ||
url = licenseUrl | ||
} | ||
} | ||
developers { | ||
developer { | ||
id developerId | ||
name developerName | ||
email developerEmail | ||
id = developerId | ||
name = developerName | ||
email = developerEmail | ||
} | ||
} | ||
scm { | ||
connection gitUrl | ||
developerConnection gitUrl | ||
url siteUrl | ||
connection = gitUrl | ||
developerConnection = gitUrl | ||
url = siteUrl | ||
} | ||
} | ||
} | ||
|
@@ -113,7 +94,7 @@ bintray { | |
name = bintrayName | ||
desc = libraryDescription | ||
websiteUrl = siteUrl | ||
issueTrackerUrl= issueUrl | ||
issueTrackerUrl = issueUrl | ||
vcsUrl = gitUrl | ||
licenses = allLicenses | ||
publicDownloadNumbers = true | ||
|
This file was deleted.
Oops, something went wrong.
File renamed without changes.