Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 44 additions & 17 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,27 +1,54 @@
allprojects {
// this is just to check if stuff is working
task hello << { task ->
println "I'm $task.project.name"
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:3.0.1"
}
}

allprojects {
}

subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.artifactory'

repositories {
jcenter()
repositories {
jcenter()
}
publishing {
publications {
main(MavenPublication) {
from components.java
}
}
}
}

task explodedDist << {
File explodedDist = mkdir("$buildDir/allJars")
subprojects.each { project ->
project.tasks.withType(Jar).each {archiveTask ->
copy {
from archiveTask.archivePath
into explodedDist
}
}
}
artifactory {
contextUrl = "${artifactory_contextUrl}" //The base Artifactory URL if not overridden by the publisher/resolver
publish {
repository {
repoKey = 'libs-release-local'
username = "${artifactory_user}"
password = "${artifactory_password}"
maven = true

}
defaults {
publications 'main'
}
}
resolve {
repository {
repoKey = 'libs-release'
username = "${artifactory_user}"
password = "${artifactory_password}"
maven = true

}
}
}

5 changes: 5 additions & 0 deletions core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
group = 'com.nexmo'
version = '1.0'

dependencies {
compile 'org.apache.commons:commons-lang3:3.3.2'
testCompile 'junit:junit:4.12'
}


3 changes: 2 additions & 1 deletion frontend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ apply plugin: 'application'
mainClassName = "frontend.FrontEndApplication"

dependencies {
compile project(':core'), project(':client')
compile 'com.nexmo:core:1.0'
compile project(':client')
compile 'io.dropwizard:dropwizard-core:0.7.1'

testCompile 'junit:junit:4.12'
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
artifactory_user=admin
artifactory_password=password
artifactory_contextUrl=http://172.16.16.80:8081/artifactory