Skip to content

Commit cefc422

Browse files
committed
Merge branch 'release/1.3.2'
2 parents 0508965 + 5f04889 commit cefc422

File tree

10 files changed

+52
-71
lines changed

10 files changed

+52
-71
lines changed

build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@ buildscript {
55
}
66
dependencies {
77
classpath 'com.android.tools.build:gradle:3.3.2'
8-
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
98
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
10-
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.4'
119
}
1210
}
1311

1412
allprojects {
1513
repositories {
1614
google()
17-
jcenter()
15+
mavenCentral()
1816
}
1917
}
2018

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ org.gradle.jvmargs=-Xmx1536m
1515
# This option should only be used with decoupled projects. More details, visit
1616
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1717
# org.gradle.parallel=true
18+
android.enableR8=true

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.3.1-all.zip

sample/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
/build
2+
/debug
3+
/release

sample/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ apply plugin: 'kotlin-android-extensions'
55
android {
66
compileSdkVersion 28
77
defaultConfig {
8-
applicationId "com.g00fy2.versioncomparesample"
8+
applicationId 'com.g00fy2.versioncomparesample'
99
minSdkVersion 14
1010
targetSdkVersion 28
1111
versionCode 1
12-
versionName "1.0"
12+
versionName '1.0'
1313
}
1414
buildTypes {
1515
release {
1616
shrinkResources true
1717
minifyEnabled true
18-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
1919
}
2020
}
2121
sourceSets {

sample/lint.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<lint>
3+
<issue id="HardcodedText" severity="ignore"/>
4+
<issue id="GoogleAppIndexingWarning" severity="ignore"/>
5+
<issue id="Autofill" severity="ignore"/>
6+
<issue id="AllowBackup" severity="ignore"/>
7+
</lint>

versioncompare/build.gradle

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
1-
apply plugin: 'com.android.library'
2-
apply plugin: 'jacoco-android'
3-
4-
android {
5-
compileSdkVersion 28
6-
defaultConfig {
7-
minSdkVersion 14
8-
consumerProguardFiles 'proguard-rules.pro'
9-
}
10-
}
1+
apply plugin: 'java-library'
2+
apply plugin: 'jacoco'
113

124
dependencies {
135
compileOnly 'com.google.code.findbugs:jsr305:3.0.2' // only required at compile time
@@ -16,13 +8,14 @@ dependencies {
168
}
179

1810
jacoco {
19-
toolVersion = "0.8.3"
11+
toolVersion = '0.8.3'
2012
}
2113

22-
jacocoAndroidUnitTestReport {
23-
csv.enabled false
24-
html.enabled true
25-
xml.enabled true
14+
jacocoTestReport {
15+
reports {
16+
xml.enabled true
17+
csv.enabled false
18+
}
2619
}
2720

2821
apply from: 'deploy.gradle'

versioncompare/deploy.gradle

Lines changed: 29 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -4,89 +4,70 @@ ext {
44

55
publishedGroupId = 'com.g00fy2'
66
libraryName = 'versioncompare'
7-
artifact = 'versioncompare'
87

98
libraryDescription = 'Lightweight library to compare version strings.'
109

1110
siteUrl = 'https://github.com/G00fY2/version-compare'
1211
issueUrl = 'https://github.com/G00fY2/version-compare/issues'
1312
gitUrl = 'https://github.com/G00fY2/version-compare.git'
1413

15-
libraryVersion = '1.3.1'
14+
libraryVersion = '1.3.2'
1615

1716
developerId = 'g00fy2'
1817
developerName = 'Thomas Wirth'
1918
developerEmail = '[email protected]'
2019

2120
licenseName = 'The Apache Software License, Version 2.0'
22-
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
21+
licenseUrl = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
2322
allLicenses = ["Apache-2.0"]
2423
}
2524

2625
// Maven
27-
apply plugin: 'com.github.dcendents.android-maven'
28-
29-
android.libraryVariants.all { variant ->
30-
def name = variant.buildType.name.capitalize()
31-
def task = project.tasks.create "jar${name}", Jar
32-
task.dependsOn variant.javaCompiler
33-
task.from variant.javaCompiler.destinationDir
34-
task.exclude '**/BuildConfig.class'
35-
task.exclude '**/R.class'
36-
task.exclude '**/R$*.class'
37-
artifacts.add('archives', task)
38-
}
26+
apply plugin: 'maven-publish'
3927

4028
task sourcesJar(type: Jar) {
41-
from android.sourceSets.main.java.srcDirs
42-
classifier = 'sources'
43-
}
44-
45-
task javadoc(type: Javadoc) {
46-
source = android.sourceSets.main.java.srcDirs
47-
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
29+
archiveClassifier = 'sources'
30+
from sourceSets.main.allJava
4831
}
4932

50-
task javadocJar(type: Jar, dependsOn: javadoc) {
51-
classifier = 'javadoc'
33+
task javadocJar(type: Jar) {
34+
archiveClassifier = 'javadoc'
5235
from javadoc.destinationDir
5336
}
5437

55-
artifacts {
56-
archives javadocJar
57-
archives sourcesJar
58-
}
59-
60-
install {
61-
repositories.mavenInstaller {
38+
publishing {
39+
publications {
40+
mavenJava(MavenPublication) {
41+
artifactId = libraryName
42+
groupId = publishedGroupId
43+
version = libraryVersion
6244

63-
pom {
64-
project {
65-
packaging 'aar'
66-
groupId publishedGroupId
67-
artifactId artifact
45+
from components.java
46+
artifact sourcesJar
47+
artifact javadocJar
6848

69-
name libraryName
70-
description libraryDescription
71-
url siteUrl
49+
pom {
50+
name = libraryName
51+
description = libraryDescription
52+
url = siteUrl
7253

7354
licenses {
7455
license {
75-
name licenseName
76-
url licenseUrl
56+
name = licenseName
57+
url = licenseUrl
7758
}
7859
}
7960
developers {
8061
developer {
81-
id developerId
82-
name developerName
83-
email developerEmail
62+
id = developerId
63+
name = developerName
64+
email = developerEmail
8465
}
8566
}
8667
scm {
87-
connection gitUrl
88-
developerConnection gitUrl
89-
url siteUrl
68+
connection = gitUrl
69+
developerConnection = gitUrl
70+
url = siteUrl
9071
}
9172
}
9273
}
@@ -113,7 +94,7 @@ bintray {
11394
name = bintrayName
11495
desc = libraryDescription
11596
websiteUrl = siteUrl
116-
issueTrackerUrl= issueUrl
97+
issueTrackerUrl = issueUrl
11798
vcsUrl = gitUrl
11899
licenses = allLicenses
119100
publicDownloadNumbers = true

versioncompare/src/main/AndroidManifest.xml

Lines changed: 0 additions & 1 deletion
This file was deleted.

versioncompare/proguard-rules.pro renamed to versioncompare/src/main/resources/META-INF/proguard/versioncompare.pro

File renamed without changes.

0 commit comments

Comments
 (0)