Skip to content

Commit

Permalink
refector publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
cgspine committed Jul 17, 2019
1 parent a457963 commit cc25e96
Show file tree
Hide file tree
Showing 29 changed files with 297 additions and 568 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
/build
/local.properties
/captures
/gradle/deploy.properties
12 changes: 10 additions & 2 deletions arch-annotation/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
apply plugin: 'java'
apply plugin: 'java-library'

version = QMUI_ARCH_VERSION

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
implementation fileTree(dir: 'libs', include: ['*.jar'])
}

sourceCompatibility = "1.7"
targetCompatibility = "1.7"

// deploy
File deployConfig = rootProject.file('gradle/deploy.properties')
if (deployConfig.exists()) {
apply from: rootProject.file('gradle/deploy.gradle')
}
17 changes: 13 additions & 4 deletions arch-compiler/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
apply plugin: 'java'
apply plugin: 'java-library'

version = QMUI_ARCH_VERSION

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':arch-annotation')
compile 'com.squareup:javapoet:1.10.0'
compile 'com.google.auto.service:auto-service:1.0-rc2'
implementation project(':arch-annotation')
implementation 'com.squareup:javapoet:1.10.0'
implementation 'com.google.auto.service:auto-service:1.0-rc2'
annotationProcessor 'com.google.auto.service:auto-service:1.0-rc2'
}

sourceCompatibility = "1.7"
targetCompatibility = "1.7"

// deploy
File deployConfig = rootProject.file('gradle/deploy.properties')
if (deployConfig.exists()) {
apply from: rootProject.file('gradle/deploy.gradle')
}
14 changes: 6 additions & 8 deletions arch/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
apply plugin: 'com.android.library'

group = 'com.qmuiteam'
version = "0.3.1"
version = QMUI_ARCH_VERSION

android {

compileSdkVersion parent.ext.compileSdkVersion
buildToolsVersion parent.ext.buildToolsVersion
lintOptions {
abortOnError false
}
Expand All @@ -26,15 +24,15 @@ android {
}

dependencies {
implementation "androidx.appcompat:appcompat:$appcompatVersion"
implementation "androidx.fragment:fragment:1.1.0-beta01"
api "androidx.appcompat:appcompat:$appcompatVersion"
api "androidx.fragment:fragment:1.1.0-beta01"
api project(':arch-annotation')
compileOnly project(':qmui')
testImplementation 'junit:junit:4.12'
}

// deploy
File deployConfig = project.file('deploy.properties')
File deployConfig = rootProject.file('gradle/deploy.properties')
if (deployConfig.exists()) {
apply from: "deployMaven.gradle"
apply from: "deployBintray.gradle"
apply from: rootProject.file('gradle/deploy.gradle')
}
84 changes: 0 additions & 84 deletions arch/deployBintray.gradle

This file was deleted.

53 changes: 0 additions & 53 deletions arch/deployMaven.gradle

This file was deleted.

12 changes: 0 additions & 12 deletions arch/project.properties

This file was deleted.

3 changes: 1 addition & 2 deletions arch/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
<manifest package="com.qmuiteam.qmui.arch"
xmlns:android="http://schemas.android.com/apk/res/android"/>
<manifest package="com.qmuiteam.qmui.arch"/>
9 changes: 6 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.0'
classpath 'com.android.tools.build:gradle:3.4.2'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
}
}

subprojects { project ->
group = GROUP
}

allprojects {
repositories {
jcenter()
Expand Down
11 changes: 6 additions & 5 deletions compiler/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
apply plugin: 'java'
apply plugin: 'java-library'

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':lib')
compile 'com.squareup:javapoet:1.10.0'
compile 'com.google.auto.service:auto-service:1.0-rc2'
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':lib')
implementation 'com.squareup:javapoet:1.10.0'
implementation 'com.google.auto.service:auto-service:1.0-rc2'
annotationProcessor 'com.google.auto.service:auto-service:1.0-rc2'
}

sourceCompatibility = "1.7"
Expand Down
10 changes: 9 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,12 @@ org.gradle.jvmargs=-Xmx1536m

android.injected.testOnly=false
android.useAndroidX=true
android.enableJetifier=true
android.enableJetifier=true

GROUP=com.qmuiteam
QMUI_VERSION=1.4.0
QMUI_ARCH_VERSION=0.6.0
QMUI_LINT_VERSION = 1.1.0

POM_GIT_URL=https://github.com/Tencent/QMUI_Android/
POM_SITE_URL=https://qmuiteam.com/android
Loading

0 comments on commit cc25e96

Please sign in to comment.