Skip to content

Commit f01b2eb

Browse files
author
mrzhang
committed
upload to jenter
1 parent 19fa046 commit f01b2eb

File tree

15 files changed

+70
-98
lines changed

15 files changed

+70
-98
lines changed

build-gradle/build.gradle

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
apply plugin: 'groovy'
2-
apply plugin: 'maven'
2+
3+
ext {
4+
bintrayName = 'build-gradle'
5+
artifact = bintrayName
6+
libraryName = 'component build'
7+
libraryDescription = 'gradle plugin for buid component'
8+
libraryVersion = "0.0.1"
9+
licenseName = 'The Apache Software License, Version 2.0'
10+
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
11+
allLicenses = ["Apache-2.0"]
12+
}
13+
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
14+
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
315

416
dependencies {
517
compile 'com.android.tools.build:gradle:2.3.2'
@@ -10,17 +22,3 @@ dependencies {
1022
compile localGroovy()
1123
}
1224

13-
repositories {
14-
mavenCentral()
15-
}
16-
17-
group = 'com.luojilab.andcomponent'
18-
version = '0.0.1'
19-
20-
uploadArchives {
21-
repositories {
22-
mavenDeployer {
23-
repository(url: uri('../repo'))
24-
}
25-
}
26-
}

build.gradle

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,19 @@ buildscript {
44
repositories {
55
jcenter()
66
maven { url "https://jitpack.io" }
7-
maven {
8-
url uri('./repo')
9-
}
107
}
118
dependencies {
129
classpath 'com.android.tools.build:gradle:2.3.3'
13-
classpath 'com.luojilab.andcomponent:build-gradle:0.0.1'
10+
// classpath 'com.luojilab.andcomponent:build-gradle:0.0.1'
11+
classpath 'com.luojilab.ddcomponent:build-gradle:0.0.1'
12+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
13+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
1414
}
1515
}
1616

1717
allprojects {
1818
repositories {
1919
jcenter()
2020
maven { url "https://jitpack.io" }
21-
maven {
22-
url uri('./repo')
23-
}
2421
}
2522
}

componentlib/build.gradle

Lines changed: 14 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@ apply plugin: 'com.android.library'
33
sourceCompatibility = "1.7"
44
targetCompatibility = "1.7"
55

6+
7+
ext {
8+
bintrayName = 'componentlib'
9+
artifact = bintrayName
10+
libraryName = 'component build lib '
11+
libraryDescription = 'component build lib '
12+
libraryVersion = "0.0.2"
13+
licenseName = 'The Apache Software License, Version 2.0'
14+
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
15+
allLicenses = ["Apache-2.0"]
16+
}
17+
618
android {
719
compileSdkVersion 26
820
buildToolsVersion "26.0.0"
@@ -36,34 +48,5 @@ dependencies {
3648
}
3749

3850

39-
def sdk_appendix = "baselib"
40-
def sdk_baseName = "component"
41-
def sdk_version = "0.0.2"
42-
43-
task buildJar(dependsOn: ['compileReleaseJavaWithJavac'], type: Jar) {
44-
45-
appendix = sdk_appendix
46-
baseName = sdk_baseName
47-
version = sdk_version
48-
//classifier = "release"
49-
//后缀名
50-
extension = "jar"
51-
//最终的Jar 包名 , 如果没设置 , 默认为[baseName] - [appendix] - [version] - [classifier].[extension]
52-
53-
// 需打包的资源所在的路径集
54-
def srcClassDir = [project.buildDir.absolutePath + "/intermediates/classes/release"];
55-
//初始化资源路径集
56-
from srcClassDir
57-
58-
//排除这两个文件
59-
include("com/luojilab/**/*.class")
60-
exclude("com/luojilab/component/componentlib/BuildConfig.class",
61-
"com/luojilab/component/componentlib/R.class",
62-
"com/luojilab/component/componentlib/R\$*.class")
63-
}
64-
65-
task buildJarAndCopy(dependsOn: "buildJar", type: Copy) {
66-
from(project.buildDir.absolutePath + "/libs")
67-
include(sdk_baseName + "-" + sdk_appendix + "-" + sdk_version + ".jar")
68-
into("release")
69-
}
51+
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
52+
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'

gradle.properties

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
# Project-wide Gradle settings.
2-
32
# IDE (e.g. Android Studio) users:
43
# Gradle settings configured through the IDE *will override*
54
# any settings specified in this file.
6-
75
# For more details on how to configure your build environment visit
86
# http://www.gradle.org/docs/current/userguide/build_environment.html
9-
107
# Specifies the JVM arguments used for the daemon process.
118
# The setting is particularly useful for tweaking memory settings.
129
org.gradle.jvmargs=-Xmx1536m
13-
1410
# When configured, Gradle will run in incubating parallel mode.
1511
# This option should only be used with decoupled projects. More details, visit
1612
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1713
# org.gradle.parallel=true
1814
mainmodulename=app
15+
bintrayRepo=compbuild
16+
publishedGroupId=com.luojilab.ddcomponent
17+
siteUrl=https://github.com/luojilab/DDComponentForAndroid
18+
gitUrl=https://github.com/luojilab/DDComponentForAndroid.git
19+
developerId=mqzhang
20+
developerName=mqzhang
21+
developerEmail=[email protected]
Binary file not shown.

repo/com/luojilab/andcomponent/build-gradle/0.0.1/build-gradle-0.0.1.jar.md5

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

repo/com/luojilab/andcomponent/build-gradle/0.0.1/build-gradle-0.0.1.jar.sha1

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

repo/com/luojilab/andcomponent/build-gradle/0.0.1/build-gradle-0.0.1.pom

Lines changed: 0 additions & 22 deletions
This file was deleted.

repo/com/luojilab/andcomponent/build-gradle/0.0.1/build-gradle-0.0.1.pom.md5

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

repo/com/luojilab/andcomponent/build-gradle/0.0.1/build-gradle-0.0.1.pom.sha1

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

0 commit comments

Comments
 (0)