-
-
Save wobbals/ad82dcd41df96c7b07c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply from : 'common.gradle' | |
apply plugin: 'java' | |
apply plugin: 'maven' | |
group = 'tokbox' | |
version = "1.0.0-SNAPSHOT" | |
sourceCompatibility = 1.6 | |
dependencies { | |
compile group: 'org.codehaus.jackson', name: 'jackson-mapper-asl', version: '1.9.1' | |
compile group: 'log4j', name: 'log4j', version: '1.2.16' | |
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.6.1' | |
testCompile group: 'junit', name: 'junit', version: '4.10' | |
testCompile group: 'org.mockito', name: 'mockito-core', version: '1.9.5' | |
} | |
test { | |
// show standard out and standard error of the test JVM(s) on the console | |
testLogging.showStandardStreams = true | |
// set heap size for the test JVM(s) | |
minHeapSize = "512m" | |
maxHeapSize = "2048m" | |
// set JVM arguments for the test JVM(s) | |
jvmArgs '-Xmx2048m' | |
// listen to events in the test execution lifecycle | |
beforeTest { descriptor -> | |
logger.lifecycle("Running test: " + descriptor) | |
} | |
// listen to standard out and standard error of the test JVM(s) | |
onOutput { descriptor, event -> | |
logger.lifecycle("Test: " + descriptor + " produced standard out/err: " + event.message ) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
maven { | |
name "artifactory" | |
delegate.url("http://repo.jfrog.org/artifactory/gradle-plugins") | |
} | |
} | |
dependencies { | |
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:2.0.16' | |
} | |
} | |
apply plugin: 'org.jfrog.gradle.plugin.artifactory.ArtifactoryPlugin' | |
project.ext.set("artifactory_user", "foo") | |
project.ext.set("artifactory_password", "bar") | |
project.ext.set("artifactory_contextUrl", "http://repo.example.com/artifactory") | |
repositories { | |
maven { | |
url project.ext.artifactory_contextUrl | |
credentials { | |
username = project.ext.artifactory_user | |
password = project.ext.artifactory_password | |
} | |
} | |
} | |
configurations.all { | |
resolutionStrategy.cacheChangingModulesFor 0, 'minutes' | |
} | |
artifactory { | |
contextUrl = "http://repo.example.com/artifactory" //The base Artifactory URL if not overridden by the publisher/resolver | |
publish { | |
repository { | |
repoKey = 'libs-snapshot-local' | |
maven = true | |
username = project.ext.artifactory_user | |
password = project.ext.artifactory_password | |
} | |
} | |
resolve { | |
repository { | |
repoKey = 'libs-all' | |
maven = true | |
username = project.ext.artifactory_user | |
password = project.ext.artifactory_password | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
getting error : Plugin with id 'org.jfrog.gradle.plugin.artifactory.ArtifactoryPlugin' not found. can any one help on it.