Commit 4d46abec by PWF-WK01\pengwufeng

调整maven

parent b3f4ca44
...@@ -2,14 +2,18 @@ buildscript { ...@@ -2,14 +2,18 @@ buildscript {
if ("local".equals(mavenRepo)) { if ("local".equals(mavenRepo)) {
repositories { repositories {
maven { maven {
url localPluginRepoUrl credentials {
username getUsername
password getPassword
}
url mavenPluginRepoUrl
} }
} }
dependencies { dependencies {
// if ("true".equals(useEcj)) { if ("true".equals(useEcj)) {
// classpath "com.beecode:ecj-plugin:0.5.1" classpath "com.beecode:ecj-plugin:0.5.1"
// } }
// classpath "com.beecode:mk-gradle-plugin:1.1.0" classpath "com.beecode:mk-gradle-plugin:1.1.0"
} }
} }
} }
...@@ -19,10 +23,10 @@ apply plugin: "eclipse" ...@@ -19,10 +23,10 @@ apply plugin: "eclipse"
configure(subprojects) { project -> configure(subprojects) { project ->
apply from: "../common.gradle" apply from: "../common.gradle"
if ("local".equals(mavenRepo)) { if ("local".equals(mavenRepo)) {
// if ("true".equals(useEcj) && "local".equals(mavenRepo)) { if ("true".equals(useEcj) && "local".equals(mavenRepo)) {
// apply plugin: 'com.beecode.enzyme.ecj-plugin' apply plugin: 'com.beecode.enzyme.ecj-plugin'
// } }
// apply plugin: 'com.beecode.mk-plugin' apply plugin: 'com.beecode.mk-plugin'
} }
repositories { repositories {
...@@ -36,11 +40,15 @@ configure(subprojects) { project -> ...@@ -36,11 +40,15 @@ configure(subprojects) { project ->
} }
} else if ("local".equals(mavenRepo)) { } else if ("local".equals(mavenRepo)) {
maven { maven {
url mavenRepoUrl credentials {
username getUsername
password getPassword
} }
maven { url mavenRepoUrl
url aliRepoUrl
} }
//maven {
// url aliRepoUrl
//}
} else { } else {
// default // default
jcenter() jcenter()
......
...@@ -16,14 +16,18 @@ buildscript { ...@@ -16,14 +16,18 @@ buildscript {
} else if ("local".equals(mavenRepo)) { } else if ("local".equals(mavenRepo)) {
repositories { repositories {
maven { maven {
url localPluginRepoUrl credentials {
username getUsername
password getPassword
}
url mavenPluginRepoUrl
} }
} }
configurations.all { configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds' resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
} }
dependencies { dependencies {
// classpath "com.beecode:mk-gradle-plugin:1.1.0" classpath "com.beecode:mk-gradle-plugin:1.1.0"
} }
} else { } else {
// default // default
...@@ -69,6 +73,10 @@ repositories { ...@@ -69,6 +73,10 @@ repositories {
} }
} else if ("local".equals(mavenRepo)) { } else if ("local".equals(mavenRepo)) {
maven { maven {
credentials {
username getUsername
password getPassword
}
url mavenRepoUrl url mavenRepoUrl
} }
maven { maven {
......
group=com.beecode group=com.beecode
version=1.0.0-SNAPSHOT version=1.0.0-SNAPSHOT
localPluginRepoUrl=http://10.2.37.35:8081/repository/maven-public/ localPluginRepoUrl=http://10.2.37.35:8081/repository/maven-public/
mavenPluginRepoUrl=http://maven.ifengban.com/repository/maven-all/
mavenRepo=local mavenRepo=local
getUsername=maven-kunlun
getPassword=maven-kunlun
aliRepoUrl=http://maven.aliyun.com/nexus/content/groups/public/ aliRepoUrl=http://maven.aliyun.com/nexus/content/groups/public/
mavenRepoUrl=http://maven.ifengban.com/repository/maven-release/ mavenRepoUrl=http://maven.ifengban.com/repository/maven-all/
outFile=build/result.xml outFile=build/result.xml
group=com.beecode group=com.beecode
version=1.0.0-SNAPSHOT version=1.0.0-SNAPSHOT
localPluginRepoUrl=http://10.2.37.35:8081/repository/maven-public/ localPluginRepoUrl=http://10.2.37.35:8081/repository/maven-public/
useEcj=false mavenPluginRepoUrl=http://maven.ifengban.com/repository/maven-all/
useEcj=true
mavenRepo=local mavenRepo=local
aliRepoUrl=http://maven.aliyun.com/nexus/content/groups/public/ aliRepoUrl=http://maven.aliyun.com/nexus/content/groups/public/
mavenRepoUrl=http://maven.ifengban.com/repository/maven-release/ mavenRepoUrl=http://maven.ifengban.com/repository/maven-all/
publishReleaseRepo= publishReleaseRepo=
publishSnapshotRepo= publishSnapshotRepo=
getUsername=maven-kunlun
getPassword=maven-kunlun
publishUsername= publishUsername=
publishPassword= publishPassword=
systemProp.sonar.host.url=http://10.2.7.176:9000/sonar systemProp.sonar.host.url=http://10.2.7.176:9000/sonar
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment