Permalink
Browse files

add first version of gradle build script

  • Loading branch information...
Zasch committed Jun 18, 2014
1 parent 6392050 commit 9299a79e0ad15d58ddd238af772b68d7fb49b00a
Showing 1,102 changed files with 11,014 additions and 3,367 deletions.
View
@@ -13,3 +13,4 @@
/junitvmwatcher4615577556086699874.properties
/junitvmwatcher7015473125784659852.properties
/junitvmwatcher7720677413329481740.properties
@@ -0,0 +1 @@
#Wed Jun 18 15:16:29 CEST 2014
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
@@ -0,0 +1,41 @@
buildscript {
repositories {
maven {
url 'https://se.cs.uni-kassel.de/artifactory/plugins-release'
credentials {
username = "${artifactory_user}"
password = "${artifactory_password}"
}
}
}
dependencies {
classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '2.0.9')
}
}
allprojects {
apply plugin: 'artifactory'
}
artifactory {
contextUrl = "${artifactory_contextUrl}" //The base Artifactory URL if not overridden by the publisher/resolver
publish {
repository {
repoKey = 'libs-snapshot-local'
username = "${artifactory_user}"
password = "${artifactory_password}"
maven = true
}
}
resolve {
repository {
repoKey = 'libs-release'
username = "${artifactory_user}"
password = "${artifactory_password}"
maven = true
}
}
}
View
@@ -1,46 +1,63 @@
apply plugin: 'java'
apply plugin: 'maven'
//apply plugin: 'jacoco'
//apply from file: 'artifactory.gradle'
buildscript {
repositories {
maven {
url 'https://se.cs.uni-kassel.de/artifactory/plugins-release'
credentials {
username = "${artifactory_user}"
password = "${artifactory_password}"
}
}
}
dependencies {
classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '2.0.9')
}
version = '1.1-SNAPSHOT' //getCheckedOutGitCommitHash() + '-SNAPSHOT'
group = 'org.sdmlib'
sourceSets {
main.java.srcDirs = ['src', 'NetworkParser']
main.resources.srcDir 'src/resources'
test.java.srcDir 'examples'
test.resources.srcDir 'test/resources'
}
def getCheckedOutGitCommitHash() {
def gitFolder = "$projectDir/.git/"
def takeFromHash = 12
/*
* '.git/HEAD' contains either
* in case of detached head: the currently checked out commit hash
* otherwise: a reference to a file containing the current commit hash
*/
def head = new File(gitFolder + "HEAD").text.split(":") // .git/HEAD
def isCommit = head.length == 1 // e5a7c79edabbf7dd39888442df081b1c9d8e88fd
// def isRef = head.length > 1 // ref: refs/heads/master
allprojects {
apply plugin: 'artifactory'
}
if(isCommit) return head[0].trim().take(takeFromHash) // e5a7c79edabb
artifactory {
contextUrl = "${artifactory_contextUrl}" //The base Artifactory URL if not overridden by the publisher/resolver
publish {
repository {
repoKey = 'libs-snapshot-local'
username = "${artifactory_user}"
password = "${artifactory_password}"
maven = true
}
def refHead = new File(gitFolder + head[1].trim()) // .git/refs/heads/master
refHead.text.trim().take takeFromHash
}
repositories {
maven {
url 'http://141.51.167.92/nexus/content/repositories/snapshots'
}
resolve {
repository {
repoKey = 'libs-release'
username = "${artifactory_user}"
password = "${artifactory_password}"
maven = true
}
maven {
url 'http://141.51.167.92/nexus/content/repositories/central'
}
}
group = 'org.sdmlib'
dependencies {
compile group: "junit", name: "junit", version: "4.11"
}
test {
testLogging {
showStandardStreams = true
showStackTraces = true
exceptionFormat = "full"
}
}
// Java Compiler Args
tasks.withType(JavaCompile) {
//Suppress underscore warnings
options.compilerArgs << '-Xlint:none'
//Fix java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager on Jenkins
// options.compilerArgs << '-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager'
}
View
@@ -0,0 +1,63 @@
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'jacoco'
//apply from file: 'artifactory.gradle'
version = '1.1-SNAPSHOT' //getCheckedOutGitCommitHash() + '-SNAPSHOT'
group = 'org.sdmlib'
sourceSets {
main.java.srcDirs = ['src', 'NetworkParser']
main.resources.srcDir 'src/resources'
test.java.srcDir 'examples'
test.resources.srcDir 'test/resources'
}
def getCheckedOutGitCommitHash() {
def gitFolder = "$projectDir/.git/"
def takeFromHash = 12
/*
* '.git/HEAD' contains either
* in case of detached head: the currently checked out commit hash
* otherwise: a reference to a file containing the current commit hash
*/
def head = new File(gitFolder + "HEAD").text.split(":") // .git/HEAD
def isCommit = head.length == 1 // e5a7c79edabbf7dd39888442df081b1c9d8e88fd
// def isRef = head.length > 1 // ref: refs/heads/master
if(isCommit) return head[0].trim().take(takeFromHash) // e5a7c79edabb
def refHead = new File(gitFolder + head[1].trim()) // .git/refs/heads/master
refHead.text.trim().take takeFromHash
}
repositories {
maven {
url 'http://141.51.167.92/nexus/content/repositories/snapshots'
}
maven {
url 'http://141.51.167.92/nexus/content/repositories/central'
}
}
dependencies {
compile group: "junit", name: "junit", version: "4.11"
}
test {
testLogging {
showStandardStreams = true
showStackTraces = true
exceptionFormat = "full"
}
}
// Java Compiler Args
tasks.withType(JavaCompile) {
//Suppress underscore warnings
options.compilerArgs << '-Xlint:none'
//Fix java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager on Jenkins
// options.compilerArgs << '-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager'
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.

0 comments on commit 9299a79

Please sign in to comment.