Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 99e7e0f

Browse files
author
Chris Board
committed
Fixed issue where certain MySQL Servers contain non numeric characters in the version number which caused a NumberFormatException. E.g. 5.7.22-log
Added global variable called "publishToMavenLocal" so you can publish it to a local maven repository for local testing and linking to your own app, until ready for committing to GitHub.
1 parent 1f14fd3 commit 99e7e0f

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

build.gradle

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

3+
34
buildscript {
4-
5+
6+
ext {
7+
publishToMavenLocal = false
8+
}
9+
510
repositories {
11+
if (publishToMavenLocal)
12+
{
13+
mavenLocal()
14+
}
615
jcenter()
16+
google()
717
}
818
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.1.2'
10-
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
19+
classpath 'com.android.tools.build:gradle:3.1.3'
20+
if (!publishToMavenLocal) {
21+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
22+
}
1123

1224

1325
// NOTE: Do not place your application dependencies here; they belong
@@ -17,8 +29,13 @@ buildscript {
1729

1830
allprojects {
1931
repositories {
32+
if (publishToMavenLocal)
33+
{
34+
mavenLocal()
35+
}
2036
jcenter()
2137
mavenCentral()
38+
google()
2239
}
2340
}
2441

0 commit comments

Comments
 (0)