Update gradle build config
This commit is contained in:
parent
4428bae5a8
commit
a39450ed56
@ -65,7 +65,7 @@ Please visit [documentation] web-site for further reference
|
|||||||
* Images (`img` will require configured image loader)
|
* Images (`img` will require configured image loader)
|
||||||
* Blockquote (`blockquote`)
|
* Blockquote (`blockquote`)
|
||||||
* Heading (`h1`, `h2`, `h3`, `h4`, `h5`, `h6`)
|
* Heading (`h1`, `h2`, `h3`, `h4`, `h5`, `h6`)
|
||||||
* there is support to render any HTML tags
|
* there is support to render any HTML tag
|
||||||
* Task lists:
|
* Task lists:
|
||||||
- [ ] Not _done_
|
- [ ] Not _done_
|
||||||
- [X] **Done** with `X`
|
- [X] **Done** with `X`
|
||||||
|
42
build.gradle
42
build.gradle
@ -19,18 +19,6 @@ allprojects {
|
|||||||
}
|
}
|
||||||
version = VERSION_NAME
|
version = VERSION_NAME
|
||||||
group = GROUP
|
group = GROUP
|
||||||
|
|
||||||
project.afterEvaluate {
|
|
||||||
if (project.hasProperty('android')) {
|
|
||||||
project.android.testOptions.unitTests.all {
|
|
||||||
testLogging {
|
|
||||||
events "passed", "skipped", "failed"
|
|
||||||
exceptionFormat "short"
|
|
||||||
showStandardStreams = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
task clean(type: Delete) {
|
task clean(type: Delete) {
|
||||||
@ -52,11 +40,6 @@ if (hasProperty('local')) {
|
|||||||
|
|
||||||
ext {
|
ext {
|
||||||
|
|
||||||
// Config
|
|
||||||
BUILD_TOOLS = '27.0.3'
|
|
||||||
TARGET_SDK = 27
|
|
||||||
MIN_SDK = 16
|
|
||||||
|
|
||||||
config = [
|
config = [
|
||||||
'build-tools' : '27.0.3',
|
'build-tools' : '27.0.3',
|
||||||
'compile-sdk' : 27,
|
'compile-sdk' : 27,
|
||||||
@ -99,9 +82,34 @@ ext {
|
|||||||
'commons-io' : 'commons-io:commons-io:2.6',
|
'commons-io' : 'commons-io:commons-io:2.6',
|
||||||
'mockito' : 'org.mockito:mockito-core:2.21.0'
|
'mockito' : 'org.mockito:mockito-core:2.21.0'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
registerArtifact = this.®isterArtifact
|
||||||
}
|
}
|
||||||
|
|
||||||
task checkUpdates {
|
task checkUpdates {
|
||||||
apply plugin: 'com.github.ben-manes.versions'
|
apply plugin: 'com.github.ben-manes.versions'
|
||||||
dependsOn 'dependencyUpdates'
|
dependsOn 'dependencyUpdates'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def registerArtifact(project) {
|
||||||
|
|
||||||
|
if (hasProperty('release')) {
|
||||||
|
project.apply from: config['push-aar-gradle']
|
||||||
|
}
|
||||||
|
|
||||||
|
project.afterEvaluate {
|
||||||
|
|
||||||
|
// disable generation of BuildConfig files
|
||||||
|
project.generateDebugBuildConfig.enabled = false
|
||||||
|
project.generateReleaseBuildConfig.enabled = false
|
||||||
|
|
||||||
|
// print test status (for CI)
|
||||||
|
project.android.testOptions.unitTests.all {
|
||||||
|
testLogging {
|
||||||
|
events "passed", "skipped", "failed"
|
||||||
|
exceptionFormat "short"
|
||||||
|
showStandardStreams = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -47,7 +47,7 @@ listed in <Link name="commonmark-spec" /> are supported (including support for *
|
|||||||
* Images (`img` will require configured image loader)
|
* Images (`img` will require configured image loader)
|
||||||
* Blockquote (`blockquote`)
|
* Blockquote (`blockquote`)
|
||||||
* Heading (`h1`, `h2`, `h3`, `h4`, `h5`, `h6`)
|
* Heading (`h1`, `h2`, `h3`, `h4`, `h5`, `h6`)
|
||||||
* there is support to render any HTML tags, but it will require to create a special `TagHandler`,
|
* there is support to render any HTML tag, but it will require to create a special `TagHandler`,
|
||||||
more information can be found in [HTML section](/docs/html.md#custom-tag-handler)
|
more information can be found in [HTML section](/docs/html.md#custom-tag-handler)
|
||||||
* Task lists:
|
* Task lists:
|
||||||
- [ ] Not _done_
|
- [ ] Not _done_
|
||||||
|
@ -20,11 +20,4 @@ dependencies {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
afterEvaluate {
|
registerArtifact(this)
|
||||||
generateDebugBuildConfig.enabled = false
|
|
||||||
generateReleaseBuildConfig.enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hasProperty('release')) {
|
|
||||||
apply from: config['push-aar-gradle']
|
|
||||||
}
|
|
||||||
|
@ -28,11 +28,4 @@ dependencies {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
afterEvaluate {
|
registerArtifact(this)
|
||||||
generateDebugBuildConfig.enabled = false
|
|
||||||
generateReleaseBuildConfig.enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hasProperty('release')) {
|
|
||||||
apply from: config['push-aar-gradle']
|
|
||||||
}
|
|
||||||
|
@ -34,10 +34,4 @@ dependencies {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
afterEvaluate {
|
registerArtifact(this)
|
||||||
generateReleaseBuildConfig.enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hasProperty('release')) {
|
|
||||||
apply from: config['push-aar-gradle']
|
|
||||||
}
|
|
||||||
|
@ -23,10 +23,4 @@ dependencies {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
afterEvaluate {
|
registerArtifact(this)
|
||||||
generateReleaseBuildConfig.enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hasProperty('release')) {
|
|
||||||
apply from: config['push-aar-gradle']
|
|
||||||
}
|
|
||||||
|
@ -22,10 +22,4 @@ dependencies {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
afterEvaluate {
|
registerArtifact(this)
|
||||||
generateReleaseBuildConfig.enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hasProperty('release')) {
|
|
||||||
apply from: config['push-aar-gradle']
|
|
||||||
}
|
|
||||||
|
@ -37,10 +37,4 @@ dependencies {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
afterEvaluate {
|
registerArtifact(this)
|
||||||
generateReleaseBuildConfig.enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hasProperty('release')) {
|
|
||||||
apply from: config['push-aar-gradle']
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user