Skip to content

Commit

Permalink
add local repo
Browse files Browse the repository at this point in the history
  • Loading branch information
leobert-lan committed May 10, 2018
1 parent 0a6dd65 commit a4259f5
Show file tree
Hide file tree
Showing 7 changed files with 116 additions and 21 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
/.idea
.DS_Store
/build
/captures
/captures
/local_repo
27 changes: 23 additions & 4 deletions jimu-core/build-gradle/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
apply plugin: 'groovy'


def MAVEN_LOCAL_PATH = uri('../../local_repo')
def ARTIFACT_ID = 'build-gradle'
def VERSION_NAME = '1.2.1'
def GROUP_ID = 'com.github.jimu'

ext {
bintrayName = 'build-gradle'
artifact = bintrayName
libraryName = 'component build'
bintrayRepo = 'maven'
bintrayName = ARTIFACT_ID
artifact = ARTIFACT_ID
libraryName = ARTIFACT_ID
libraryVersion = VERSION_NAME
libraryDescription = 'gradle plugin for buid component'
libraryVersion = "1.2.0"
licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
Expand All @@ -24,3 +31,15 @@ dependencies {

}

uploadArchives() {
repositories {
mavenDeployer {
repository(url: MAVEN_LOCAL_PATH)
pom.project {
groupId GROUP_ID
artifactId ARTIFACT_ID
version VERSION_NAME
}
}
}
}
4 changes: 4 additions & 0 deletions jimu-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,9 @@ allprojects {
url 'https://maven.google.com/'
name 'Google'
}
maven {
url uri('../local_repo')
name 'local-repo'
}
}
}
28 changes: 24 additions & 4 deletions jimu-core/componentlib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ sourceCompatibility = "1.7"
targetCompatibility = "1.7"



def MAVEN_LOCAL_PATH = uri('../../local_repo')
def ARTIFACT_ID = 'componentlib'
def VERSION_NAME = '1.3.1'
def GROUP_ID = 'com.github.jimu'

ext {
bintrayName = 'componentlib'
artifact = bintrayName
libraryName = 'component build lib '
bintrayName = ARTIFACT_ID
artifact = ARTIFACT_ID
libraryName = ARTIFACT_ID
libraryDescription = 'component build lib '
libraryVersion = "1.3.1"
libraryVersion = VERSION_NAME
licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
Expand Down Expand Up @@ -53,3 +59,17 @@ dependencies {

apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'

uploadArchives() {
repositories {
mavenDeployer {
repository(url: MAVEN_LOCAL_PATH)
pom.project {
groupId GROUP_ID
artifactId ARTIFACT_ID
version VERSION_NAME
packaging 'aar'
}
}
}
}
32 changes: 27 additions & 5 deletions jimu-core/router-anno-compiler/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
apply plugin: 'java'


def MAVEN_LOCAL_PATH = uri('../../local_repo')
def ARTIFACT_ID = 'router-anno-compiler'
def VERSION_NAME = '1.0.1'
def GROUP_ID = 'com.github.jimu'

ext {
bintrayName = 'router-anno-compiler'
artifact = bintrayName
libraryName = 'router-anno-compiler'
libraryDescription = 'router-anno-compiler'
libraryVersion = "1.0.1"
bintrayRepo = 'maven'
bintrayName = ARTIFACT_ID
artifact = ARTIFACT_ID
libraryName = ARTIFACT_ID
libraryDescription = 'component build lib '
libraryVersion = VERSION_NAME
licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
}

apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'

Expand All @@ -32,3 +39,18 @@ compileJava {
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
}


uploadArchives() {
repositories {
mavenDeployer {
repository(url: MAVEN_LOCAL_PATH)
pom.project {
groupId GROUP_ID
artifactId ARTIFACT_ID
version VERSION_NAME
packaging 'aar'
}
}
}
}
33 changes: 27 additions & 6 deletions jimu-core/router-annotation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@ apply plugin: 'java'

group="com.github.jimu"


def MAVEN_LOCAL_PATH = uri('../../local_repo')
def ARTIFACT_ID = 'router-annotation'
def VERSION_NAME = '1.0.1'
def GROUP_ID = 'com.github.jimu'

ext {
bintrayRepo = 'maven'
bintrayName = 'router-annotation'
artifact = bintrayName
libraryName = 'router-annotation '
libraryDescription = 'router-annotation '
libraryVersion = "1.0.1"
bintrayName = ARTIFACT_ID
artifact = ARTIFACT_ID
libraryName = ARTIFACT_ID
libraryDescription = 'component build lib '
libraryVersion = VERSION_NAME
licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
Expand All @@ -24,4 +30,19 @@ compileJava {
}

apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'

uploadArchives() {
repositories {
mavenDeployer {
repository(url: MAVEN_LOCAL_PATH)
pom.project {
groupId GROUP_ID
artifactId ARTIFACT_ID
version VERSION_NAME
packaging 'aar'
}
}
}
}

10 changes: 9 additions & 1 deletion jimu-sample-project/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ buildscript {
'componentLib' : 'com.github.jimu:componentlib:1.3.1',
'router_anno' : 'com.github.jimu:router-annotation:1.0.1',
'router_anno_compiler': 'com.github.jimu:router-anno-compiler:1.0.1',
'gradle_plugin' : 'com.luojilab.ddcomponent:build-gradle:1.1.0'
'gradle_plugin' : 'com.github.jimu:build-gradle:1.2.1'
],

gson : 'com.google.code.gson:gson:2.8.2',
Expand All @@ -81,6 +81,10 @@ buildscript {
maven {
url 'https://dl.bintray.com/leobert-lan-oss/maven/'
}
maven {
url uri('../local_repo')
name 'local-repo'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
Expand All @@ -104,5 +108,9 @@ allprojects {
url 'https://maven.google.com/'
name 'Google'
}
maven {
url uri('../local_repo')
name 'local-repo'
}
}
}

0 comments on commit a4259f5

Please sign in to comment.