This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-android/build.gradle

63 lines
1.6 KiB
Groovy
Raw Normal View History

2019-12-04 14:11:47 +08:00
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
2020-08-03 12:02:36 +08:00
classpath 'com.android.tools.build:gradle:4.0.1'
2019-12-04 14:11:47 +08:00
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
2021-03-26 23:10:18 +08:00
mavenCentral()
2019-12-04 14:11:47 +08:00
maven { url 'https://jitpack.io' }
}
2019-12-04 18:58:28 +08:00
def needReplaceLocal = true
gradle.startParameter.taskNames.each {
if (it.contains('uploadArchives')) {
needReplaceLocal = false
}
}
if (needReplaceLocal) {
configurations.all {
resolutionStrategy {
dependencySubstitution {
substitute module('pub.doric:core') with project(":doric")
substitute module('pub.doric:devkit') with project(":devkit")
substitute module('pub.doric:jse') with project(":jsvalue")
2019-12-04 18:58:28 +08:00
}
}
}
}
2019-12-04 14:11:47 +08:00
}
task clean(type: Delete) {
delete rootProject.buildDir
}
2019-12-04 18:58:28 +08:00
Properties properties = new Properties()
properties.load(project.rootProject.file('version.properties').newDataInputStream())
ext {
Version = properties.version
}
task publisCore dependsOn(":doric:uploadArchives") {
println "doric published"
}
task publishDevKit dependsOn(publisCore, ":devkit:uploadArchives") {
println "devkit published"
}
task PublishAll dependsOn(publisCore, publishDevKit) {
println "All published"
}