Skip to content

Commit

Permalink
Fixed local maven deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
belyaev-andrey committed Dec 18, 2018
1 parent 542b1c7 commit 1cd3327
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions build.gradle
@@ -1,18 +1,16 @@

buildscript {
ext.cubaVersion = '6.10.1'
repositories {

mavenLocal()
maven {
url 'https://repo.cuba-platform.com/content/groups/work'
credentials {
username(rootProject.hasProperty('repoUser') ? rootProject['repoUser'] : 'cuba')
password(rootProject.hasProperty('repoPass') ? rootProject['repoPass'] : 'cuba123')
}
}

}

dependencies {
classpath "com.haulmont.gradle:cuba-plugin:$cubaVersion"
}
Expand Down Expand Up @@ -54,6 +52,7 @@ configure([globalModule, coreModule]) {

configure(globalModule) {
apply(plugin: 'maven')
apply(plugin: 'maven-publish')

task sourceJar(type: Jar) {
from file('src')
Expand Down Expand Up @@ -84,7 +83,20 @@ configure(globalModule) {
}
}


publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact(sourceJar) {
classifier = 'sources'
}
}
}
repositories {
mavenLocal()
}
}

}

configure(coreModule) {
Expand Down

0 comments on commit 1cd3327

Please sign in to comment.